It inherits the reliable and scalable GCM infrastructure, plus new features! See the FAQ to learn more. If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future..
String TAG = "MyFirebaseIIDService"; @Override public void onTokenRefresh() { // If you need to handle the generation of a token, initially or // after a refresh this is where you should do that. String token = FirebaseInstanceId.getInstance().getToken(); Log.d(TAG, "FCM Token: " + token);
String TAG = "MyFirebaseIIDService"; @Override public void onTokenRefresh() { // If you need to handle the generation of a token, initially or // after a refresh this is where you should do that. String token = FirebaseInstanceId.getInstance().getToken(); Log.d(TAG, "FCM Token: " + token); FirebaseMessaging.getInstance().subscribeToTopic("global");
"condition" : " 'TopicA' in topics && ('TopicB' in topics || 'TopicC' in topics) " } https://fcm.googleapis.com/fcm/send POST https://fcm.googleapis.com/fcm/send