Facing FCM token issue in Release mode using Xamarin forms with C#
Raju Gadda
66
Reputation points
Hello Guys ... I am facing issue a with this module. I have everything in place and it is working when I built the debug apk of the app or when I build it in the android emulator or in a physical device and the token is generating fine ... but when I build a release apk the FCM_ token stops generating. I have tried everything and can't seem to find the issue ... What could be wrong here ?
This is my code to generate the FCM token in MyFirebseIIDService.cs:
public override void OnTokenRefresh()
{
NewToken = FirebaseInstanceId.Instance.Token;
Xamarin.Forms.Application.Current.Properties["SaveNewToken"] = NewToken;
Xamarin.Forms.Application.Current.SavePropertiesAsync();
// SendRegistrationToServer(NewToken);
}
Developer technologies | .NET | Xamarin
Developer technologies | .NET | Xamarin
A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Sign in to answer