GCM with PHP (Google Cloud Messaging)
Update: GCM is deprecated, use FCM How can I integrate the new Google Cloud Messaging in a PHP backend? 13 Answers 13
Update: GCM is deprecated, use FCM How can I integrate the new Google Cloud Messaging in a PHP backend? 13 Answers 13
My app generates a notification, but the icon I set for that notification is not being displayed. Instead, I get a white square. I have tried resizing the png of the icon (dimensions 720×720, 66×66, 44×44, 22×22). Curiously, when using smaller dimensions the white square is smaller. I have googled this problem, as well as … Read more
I’m starting with the new Google service for the notifications, Firebase Cloud Messaging. Thanks to this code https://github.com/firebase/quickstart-android/tree/master/messaging I was able to send notifications from my Firebase User Console to my Android device. Is there any API or way to send a notification without use the Firebase console? I mean, for example, a PHP API … Read more
Hope all of you aware of this class, used to get notification token whenever firebase notification token got refreshed we get the refreshed token from this class, From following method. @Override public void onTokenRefresh() { // Get updated InstanceID token. String refreshedToken = FirebaseInstanceId.getInstance().getToken(); Log.d(TAG, “Refreshed token: ” + refreshedToken); } To use this as … Read more
I’m working with Firebase and testing sending notifications to my app from my server while the app is in the background. The notification is sent successfully, it even appears on the notification centre of the device, but when the notification appears or even if I click on it, the onMessageReceived method inside my FCMessagingService is … Read more
Here is my manifest: <service android:name=”.fcm.PshycoFirebaseMessagingServices”> <intent-filter> <action android:name=”com.google.firebase.MESSAGING_EVENT” /> </intent-filter> </service> <service android:name=”.fcm.PshycoFirebaseInstanceIDService”> <intent-filter> <action android:name=”com.google.firebase.INSTANCE_ID_EVENT” /> </intent-filter> </service> When the app is in the background and a notification arrives, then the default notification comes and doesn’t run my code of onMessageReceived. Here is my onMessageReceived code. This is invoked if my app is … Read more