globocom / react-native-ua

React Native module for Urban Airship
MIT License
37 stars 33 forks source link

Fix #32 : Add public dispatchNotificationEvent to ios implementation #33

Closed guilhermebruzzi closed 7 years ago

guilhermebruzzi commented 7 years ago

Add public dispatchNotificationEvent to ios implementation and explaining on README how to know on ios when the user accepted the notification.

rlepinski commented 7 years ago

This only works if the app is not set up for background push and could potentially dispatch the accepted event multiple times. Instead you should listen for http://docs.urbanairship.com/reference/libraries/ios/latest/Protocols/UARegistrationDelegate.html#/c:objc(pl)UARegistrationDelegate(im)notificationAuthorizedOptionsDidChange and dispatch a more generic event like "notification_authorization_changed" with the types that user currently has enabled for the app.

lucasts commented 7 years ago

Hey @emilianoeloi are you still working on this? Can we close it or follow @rlepinski suggestion

ShMcK commented 7 years ago

Any progress on this issue?

lucasts commented 7 years ago

@ShMcK I'm not actively working on this issue.

If you have time, an updated code with @rlepinski suggestions would be nice.