Skip to content

OnTokenRefresh not fired on iOS (versions 3.3.9 and upper) #361

@AnnaBagriy

Description

@AnnaBagriy

🐛 Bug Report

My iOS project is configured as it is provided in readme file. Everything works fine up to the plugin version 3.1.6. But beginning from stable 3.3.9 notifications are not working and OnTokenRefresh event is not triggered.
But I need to upgrade this plugin because I have another dependency on Firebase, which is not compatible with version 3.1.6 of this plugin.

Also, I noticed that this line of code throws NullReferenceException var token = CrossFirebasePushNotification.Current.Token meanwhile CrossFirebasePushNotification.Current is not null by itself.

Expected behavior

OnTokenRefresh event is fired and notifications are received in plugin version 3.3.9.

Configuration

Xamarin.Forms 4.6.0.1180-4.8.0.1451

Version: beginning from 3.2.6 beta up to 3.3.13 beta

Platform:

  • iPhone X, iOS 14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions