Hello,
You used Xamarin.Firsbase.lid 121.1.0.7, it depends on the android version is 12.
You need to edit [Services]
to [Services(Exported = true)]
for android 12 or later,
Please notice: firebaseinstanceidservice is deprecated
You could use FirebaseMessagingService
.
public class MyFirebaseIIDService : FirebaseMessagingService
{
public override void OnNewToken(string token)
{
base.OnNewToken(token);
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.