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

Cant register new device #220

Open Thuan60th4 opened 1 year ago

Thuan60th4 commented 1 year ago

When i use this listener,it doestnt pass in and dont console.log anything : NotificationHub.addEventListener('register', deviceToken => { remoteNotificationsDeviceToken = deviceToken; console.log(Device Token: ${deviceToken}); });

rt012 commented 11 months ago

I have the same problem.. always get an azureNotificationHubRegisteredError while registration.. seems like something changed on azure side.. did you have a solution @Thuan60th4 ?

Seems like this library is using a deprecated dependency. The right one is:

implementation 'com.microsoft.azure:notification-hubs-android-sdk-fcm:1.1.4'

I try to fork the lib. I fixed it locally and seems like it works again

edit:

you can check my last commit at my fork:

https://github.com/rt012/react-native-azurenotificationhub

Its not completely finalized but in a state where its working again