Hi,
Please provide the following:
- SDK Version: 36.0.0
- Platforms(Android/iOS/web/all): Android
I am trying to update my react native react app with Push notification. So I started with a demo react native app and tried following the steps from
/versions/v36.0.0/guides/push-notifications (steps 1 & 3 as this is still demo to see if it gets notifications)
&
/versions/v36.0.0/guides/using-fcm/
My App Code: GitHub - aonamrata/ReactAwesomeness at ReactExpoApp
I am getting both
let token = await Notifications.getExpoPushTokenAsync();
Ref: ReactAwesomeness/PushNotification.js at ReactExpoApp · aonamrata/ReactAwesomeness · GitHub
and
let deviceToken = await Notifications.getDevicePushTokenAsync({ gcmSenderId: "xxx" });
but for some reason in both the cases it gives me expo token. I tried adding the FCM google-settings file too but still same result.
I am testing it by building an APK and testing it on a real Android device.
Sending notification from Expo notification tool --Works.
Sending notification from FCM dashboard without device id --Works.
Sending notification from FCM for a particular device – Does not works.
Is there anything that i am missing? We have an existing notification and I want the actual device Id to plug into that system.
Thanks.