question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] userInteraction not behaving as expected

See original GitHub issue

Hi 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:

  1. 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)
  2. 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:closed
  • Created 7 years ago
  • Reactions:15
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
damvanhuongcommented, Jan 15, 2018

+1 waiting the solution

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found