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

Notification event listener is not logging any response #30

Closed
krajay015 opened this issue Feb 26, 2019 · 4 comments
Closed

Notification event listener is not logging any response #30

krajay015 opened this issue Feb 26, 2019 · 4 comments

Comments

@krajay015
Copy link

krajay015 commented Feb 26, 2019

I'm working with iOS for VoIP notification and I've used react-native-callkit and react-native-voip-push-notification to handle my VoIP calls.

I'm able to trigger localNotification using the following code:

VoipPushNotification.presentLocalNotification({alertBody: "Local Notification Test"})

but my localNotification listener is not logging out any notifications (my app is on):

VoipPushNotification.addEventListener('localNotification', notification => {
      console.log('localnotification notify : ', notification)
    });

I've enabled push notification, Background mode (VoIP notification, Background fetch, and Remote notification) from x-code capabilities. I'm using RN0.58. Is something I'm missing?

Thanks in advance

@glocore
Copy link

glocore commented Feb 26, 2019

@krajay015 Try enabling "Remote notifications" and "Background fetch" under Background Modes.

@krajay015
Copy link
Author

@platonish already done that. Still not getting log in eventListener

@minh265tv
Copy link

same issue, did anyone resolve that?

@zxcpoiu
Copy link
Member

zxcpoiu commented Mar 11, 2020

Local notification event should be triggered when user click to presented notification.
If you want to receive remote voip push notification, should use event 'notification', and before that, should ask permission and register a valid voip token

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

4 participants