Open
Description
Describe the bug
application_foregrounded
is described as:
This event is fired when a user opens the app or brings it back into the foreground of their device. This is only collected by the Swift library.
However, in reality the event is fired in many other situations:
- It is fired twice when the application becomes inactive
- It is fired once before backgrounding when the device is locked
Furthermore, it is fired alongsinde application_opened
which already fires every time the application is foregrounded, leading to a lot of confusion. What is the definition of the words: opened
, foregrounded
and backgrounded
. The current behaviour is terribly asymmetric and misleading.
To Reproduce
Steps to reproduce the behavior:
- Launch the application from a force-quit state (not included in the screenshot)
- Background the application (included)
- Foreground the application (included)
- Open the notifications center drawer (included)
- Close the notifications center drawer (included)
- Lock the phone (included)
Expected behavior
application_opened
&application_foregrounded
application_backgrounded
application_foregrounded
application_backgrounded
?application_foregrounded
?application_backgrounded
Platform (please complete the following information):
- Library Version in use: 1.7.3
- Platform being tested: iOS
- Integrations in use: Segment Firebase, 1.4.0, Firebase 11.12.0