fix: support userInteraction for didReceiveRemoteNotification #434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No matter which type of push notification (local or remote) is clicked, I expected the recommended API, didReceiveNotificationResponse, to work.
However, it's not functioning as expected some environment.(maybe firebase integration problem?)
When didReceiveNotificationResponse doesn't work, didReceiveRemoteNotification works even when the notification is clicked. 馃
Following the guide, I tried to implement it, but userInteraction isn't always present.
Although it's a very hacky, the point of clicking in the background and opening the status bar to click on the push banner is considered an inactive state. So, it works using this approach.
If there's a better way, please let me know. A video is attached for reference.
980ebce1-ebd6-4298-8450-be9c3c79e9da.mp4