I tried sending notifications to GCM user using FCM console. But the notification delivered twice.
Is it possible to send notification to GCM registrations using FCM console.
Is there any way?
Related
I have questions about migrating from gcm to fcm.
we are going to migrate from gcm to fcm. we have lots of users with gcm tokens and we have already sent them push notifications from onesignal panel. now when we migrate to fcm,what happens to old users with gcm tokens? I know if we force our users to update their android version to new version(the one with fcm) the new fcm token will be generated for users. but what if we don't want to force our users to update? Is it possible to send notification from firebase console to old users that have gcm tokens?
I have already done the migration procedure according to this link:
https://developers.google.com/cloud-messaging/android/android-migrate-fcm
I tried same but gcm people is not getting notification so i make 2 payload 1 for fcm and 1 for gcm and sending massage for both fcm and gcm at same time so i m getting gcm notification but you have to handle crash for gcm notification in fire-base app. means it will crash when you receive gcm notification on fcm but when fcm notification come it will diaplay
there are some events that are logged on Firebase Analytics when you send an notification through the Firebase Notifications on Console (notification_receive, notification_dismiss, notification_foreground, notification_open).
I would like to know if it is possible to log those same events sending the Push Notification through the API (Firebase Cloud Messaging - FCM).
t-0: Someone has a server X that uses GCM to send notifications on certain events
t-1: I build my android app against server X and implement GCM. And it works great.
t-2: Firebase has a nice feature that lets you send notification from a console (similar to how Facebook's Parse used to work)
t-3: I change from GCM to FCM.
t-4: My android app can no longer receive notifications from server X
Now Firebase claims, and I quote
Updating these endpoints is not strictly required, as Google will
continue to support the existing GCM endpoints.
For the skeptics: I am working on two different git branches fcm and gcm. When I am on branch gcm notification works; but on fcm I cannot get notification from server X (but it works from the Console, yay!)
You'll have to continue using the old method you were using to send push notifications to GCM users and for the users who registers through FCM will only be able to receive push notifications through FCM or Firebase Notification console.
You can't send push notification to GCM registration tokens through FCM.
I'm using Sinch for App-to-App messaging with ManagedPush set to true which states that
NOTE: Using setSupportManagedPush(true) will register a token with Google Cloud Messaging using a Sender ID connected to Sinch, which will implicitly unregister your own token. You should not register any token with GCM if using Sinch push notifications.
Now beside push notifications from Sinch for Instant messaging, There are also other notifications i want to receive from my own server like general Ad etc for all users, I done some R&D but not able to figure out following
As Sinch registers GCM token itself so can i use the same token to send push notification from my own server?
If Answer for 1 is yes then how can i get Sinch registered token to send to my own server to receive notifications from my own server too along with one's sent via Sinch?
Or is there any way to get GCM token registered via Sinch from Google server?
If you already have your infrastrucutre to send push, I would use that instead of managed push. So instead of setSupportManagedPush(true) set setSupportPush(true) and then send the push to your server in onShouldSendPush event
I'm working on app, using Parse push notifications and Pubnub notification. I need GCM registration id for Pubnub, so when I register gcm and get the reg_id and subscribe for Pubnub channels, Pubnub starts working, but Parse stops working and when I use Parse's device token as Pubnub's reg_id then I don't receive Pubnub's notifications.
String reg_id =
ParseInstallation.getCurrentInstallation().getString("deviceToken");
With above reg_id I subscribe for pubnub notifications, I don't receive notifications on pubnub. I need both working together, how can I achieve this.