Open Thuan60th4 opened 1 year 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
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}
); });