Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant register new device #220

Open
Thuan60th4 opened this issue Aug 14, 2023 · 1 comment
Open

Cant register new device #220

Thuan60th4 opened this issue Aug 14, 2023 · 1 comment

Comments

@Thuan60th4
Copy link

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
Copy link

rt012 commented Sep 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants