CatalystCode / react-native-azurenotificationhub

React Native module to support Azure Notification Hub push notifications on Android, iOS, and Windows.
MIT License
47 stars 75 forks source link

Issue in some Android registrations (Unauthorized) #170

Open BrenoGO opened 4 years ago

BrenoGO commented 4 years ago

Report

Environment

Sometimes, some user tries to register in NotificationHub and in the "then" of the NotificationHub.register everything is fine, but then the event of azureNotificationHubRegisteredError is called, instead of azureNotificationHubRegistered. The error received in onAzureNotificationHubRegisteredError is "Unauthorized". When it happens, every time this user open the app I try to register him again, and the same behavior happens.. Could it be some problem with the user's device? In general, the registrations are fine. That happens just with some users.