CrossGeeks / AzurePushNotificationPlugin

Azure Push Notification Plugin for Xamarin iOS and Android
MIT License
67 stars 34 forks source link

Random Registration Issue #60

Open eyeveye opened 3 years ago

eyeveye commented 3 years ago

Hi,

For the production release, I encounter a random issue. Some devices at first launch it got registered but after a while, it will sort of de-register. These devices will not be able to receive any push notifications.

After I disable the "AutoRegistration", and On Demand RegisterForPushNotification, it works 100%. `#if DEBUG AzurePushNotificationManager.Initialize(this, Constants.ListenConnectionString, Constants.NotificationHubName, true, false);

else

             AzurePushNotificationManager.Initialize(this, Constants.ListenConnectionString, Constants.NotificationHubName, false, true,false);
              CrossAzurePushNotification.Current.RegisterForPushNotifications();

endif`

Please help to investigate if this is a real defect.

Thanks