https://fcm.googleapis.com/fcm/send
Headers | Value |
---|---|
Authorization | key=<YOUR SERVER KEY> |
Content-Type | application/json |
/* | |
* Copyright 2016 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
public class LocalBroadcastReceiver extends BroadcastReceiver { | |
@Override public void onReceive(Context context, Intent intent) { | |
Log.d("LocalBroadcastReceiver", "onReceive()"); | |
// Tell the result receiver to CANCEL some specific action. | |
// eg. do not display System Notification | |
setResultCode(Activity.RESULT_CANCELED); | |
} | |
} |
println object.properties | |
.sort{it.key} | |
.collect{it} | |
.findAll{!['class', 'active'].contains(it.key)} | |
.join('\n') |