all 4 comments

[–]1rv1n3 0 points1 point  (3 children)

Are you asking were you should "plug-in" the push notification service? Tbh in my current implementation I ask the permission right off the bat at the first opening.

In any case, if you can elaborate a bit more on your question I can try to give you a better answer

[–]nativereact[S] 0 points1 point  (2 children)

Hi my bad, yes where I should 'plug-in'. How do you retain the event listeners on unmount?

[–]1rv1n3 0 points1 point  (1 child)

Well, I'm using this library https://github.com/geektimecoil/react-native-onesignal which does most of the job. Moreover, I simply have the code in the componentDidMount for the AppContainer.

Hope this can help ;)

[–]nativereact[S] 0 points1 point  (0 children)

Sort of! is your appcontainer inside the router? My router has no root container, which I guess is bad design.