You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Service(Exported = false)]
[IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
public class MyFirebaseMessagingService : FirebaseMessagingService
{
public override void OnNewToken(string p0)
{
var deviceToken = p0;
}
}
This setup is working on Debug mode. But when I compile using Release mode, OnNewToken never gets called. Even if I uninstall & reinstall my application.
By searching the internet I found out I had to add my SHA-1 release certificate to my firebase console (which I did) and download the updated google-services.json.
But that doesn't solve my issue either. What am I missing?
This discussion was converted from issue #409 on April 15, 2025 19:57.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using .net8.0-android for this.
This is my setup:
.cproj
AndroidManifest.xml
Service
This setup is working on Debug mode. But when I compile using Release mode, OnNewToken never gets called. Even if I uninstall & reinstall my application.
By searching the internet I found out I had to add my SHA-1 release certificate to my firebase console (which I did) and download the updated google-services.json.
But that doesn't solve my issue either. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions