Skip to content

Struggling to see why there isn't a getInitialNotification anymore on iOS #563

Answered by mikehardy
BaloccoDev asked this question in Q&A
Discussion options

You must be logged in to vote

This happened right as the repository here transitioned from a commercial project to a fully open source one. In brief, the app transitions from inactive to active at exactly the moment the notification is pressed, sometimes triggering press events, sometimes triggering initial notification.

#136

The duplicate events were troublesome. The press event is most important though as it may be some action the user took, containing more information than just the initial notification, so it seems the best to listen to.

You can still use, for example, react-native's initial notification to see if it was an initial notification and de-conflict the two.

Or, if the app is just booting that typically …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BaloccoDev
Comment options

Answer selected by BaloccoDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants