react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
745 stars 285 forks source link

Add userInteraction attr for user opened push #122

Closed xvonabur closed 4 years ago

xvonabur commented 4 years ago

Summary

In my app I need to run some JS code after user clicked on local notification. I didn't find any way to determine the moment user clicked on it. This PR adds additional userInteraction attribute to userInfo for push messages that was opened by user.

If somebody approve this changes, I'll add an example.

Compatibility

OS Implemented
iOS ✅❌
Android ✅❌
TaraSinghDanu commented 4 years ago

Not working...Always getting false

nishanttatva commented 4 years ago

@Dallas62 @xvonabur ETA when this will be merged?

Dallas62 commented 4 years ago

Hi @nishanttatva We are not able to merge, so the answer is no 😉

xvonabur commented 4 years ago

@Dallas62 I've added requested changes. Feel free to review it again.

Dallas62 commented 4 years ago

@Naturalclar It would be great if you find time to look at this PR 😉

Naturalclar commented 4 years ago

@Dallas62 thanks for the ping! I'll take a look at it soon

xvonabur commented 4 years ago

@Naturalclar I've added example and information to README. Can you check it?

Naturalclar commented 4 years ago

@xvonabur thank you for the change! I've published 1.5.0 with the new feature :tada: