Push Notification Raw Token

#1

Hi!

I want to use the push notification feature for my app, but I don’t want to user the expo server to send my notification. If you want to user other services (like Firebase Cloud Message or Amazon Web Services: SNS), you need a device token. The problem is that the notification token given by Expo Notifications modules is custom to it. I learned recently that there is a way (undocumented) to get the raw token and use it to send Notification to your own services.

How do you access it? I check the Notification module of expo and it seems it use a nativeModules to get it.

Thanks!

0 Likes

#2

To use a different service would require detaching to ExpoKit. See https://docs.expo.io/versions/latest/introduction/why-not-expo.html

0 Likes