[iOS] userInteraction not behaving as expected
See original GitHub issueHi team,
We’re going by this definition:
userInteraction: false, // BOOLEAN: If the notification was opened by the user from the notification area or not
We notice this behavior:
- When app is running, and in background (
AppState.currentState === 'background'
) … a. … and app receives a remote PN,userInteraction === false
(good) b. … and the user taps/swipes on a PN from the lock screen,userInteraction === false
(unexpected) - When the app is running, and in the foreground (
AppState.currentState !== 'background'
) … a. … and app receives a remote push notification,userInteraction === true
(unexpected) b. … and the user taps/swipes a PN from the notification tray (drags open from status bar),userInteraction === false
(unexpected)
Looking at the implementation, it’s not clear how this could be expected to work, unless react-native were to provide some data.foreground
, which it’s not.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:16 (3 by maintainers)
Top Results From Across the Web
beginIgnoringInteractionEvents or userInteractionEnabled ...
I mean the events should not be passed to the previous and next buttons which are on the main view while the overlay...
Read more >How can I fix action button after … | Apple Developer Forums
My action buttons stopped working after Xcode update (Xcode 12). When I clicked the buttons, I saw that the functions did not working...
Read more >Hex color code with opacity is not working as expected in iOS ...
Coding example for the question Hex color code with opacity is not working as expected in iOS-swift.
Read more >THE ACCESSIBLE USER INTERACTION FRAMEWORK FOR ...
The mobile operating systems reviewed include Android, iOS, and. Windows Phone. ... Expected input is in the form of “Yes” or “No”. •...
Read more >Aspect-Oriented Approach for User Interaction Logging of iOS ...
Todays mobile devices not only allow to use an application anywhere anytime but also offer a variety of interaction modalities (touch, gestures, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it’s worked for me https://stackoverflow.com/questions/34337117/detect-whether-react-native-ios-app-was-opened-via-push-notification
+1 waiting the solution