DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

oulkelaa
oulkelaa

Posted on

Problem generating FCM token in apk release

Hello,
I have a quick question if you can help me please:
My react project is a simple Web view with integration of FCM notifications, and for that I have to send the token device by injection of javascript when calling the webview.

  • When I am locally, and I run run-android everything is fine, I receive my token
  • When I create my apk in release mode and I open and run it in Android Studio => everything is fine, I receive the token
  • but if I install the same apk on my phone, I don't get the token, it is still empty. Anyone have an idea please? Thank you

Top comments (0)

Let's Get Wacky


Use any Linode offering to create something unique or silly in the DEV x Linode Hackathon 2022 and win the Wacky Wildcard category

β†’ Join the Hackathon <-