-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Engagement notification for inactive users #27949
Engagement notification for inactive users #27949
Comments
Just created this ticket from some ongoing product conversations. I also wanted to ask a few questions about the possible approach here: Questions
|
Clarification of these requirements:
This notification should occur 48 hours after Firefox for Android first started.
First use here means user have no interaction after 24 hours counting from the time Firefox for Android first started.
Default browser check will be done right before showing the notification. If Firefox is their default browser at that moment, we do not show the notification. |
Consider also that first use might happen at 1am and it might not be a great experience to send a notification at the same time on a different day. We should also do some testing to ensure this doesn't consider install time as first use. Auto-updates happen at night again, so 48 hours after that would be distributive to send a notification. It's not in the acceptance criteria, but shouldn't we have a Nimbus feature flag to disable this if we find a bug once this has already been released in order to limit affected users? |
This notification will only show up for a new user. No current user should get this notification. Auto-update should not trigger the scheduling of the re-engagement notification.
We do have another issue that tracks the Nimbus flag. However, I'll be implementing that at the same time as this issue. |
…nt notification
…nt notification
…nt notification
Tested on the latest Nightly 109.0a1 (2022-12-07) with Motorola Moto G9 plus (Android 11). @rocketsroger can you confirm this is the expected behaviour? |
Upon further testing I managed to receive the notification correctly following specific STR, after 48h of inactivity on Nightly 109.0a1 from 12/08. The following STR were used:
Observe the attached video for more information: Correctly_Received_App_Closed.mp4Please note the following inconsistencies observe during testing:
Apps_Opened.mp4
Regarding telemetry, the events for the engagement notification were correctly captured: Devices used:
Although the testing results seem to be depending on the timing and not on the devices used, the happy flow was only reproduced with Google Pixel 6 (Android 13) and the application closed. We will also test this by leaving the app inactive for 48h without changing the Time and Date from Settings. @onemahon , @rocketsroger if you have other proposal on how can be test this differently, please let us know. |
Thanks @delia-pop and @AdinaPetridean! I'm guessing the reason the notification doesn't arrive is because the app is still running in the background - even though the clock is set forward by two days. I think this edge case is likely acceptable (very few phones, if any, will maintain the app actively running in the background for 48 hours). I'll create a follow-up ticket for this case, but I'd vote we defer that fix until the next version. @channingcarter are you OK with that plan? (Note: if so, we should be vigilant looking at telemetry for unexpected data or behavior, just in case I'm wrong about the scale of impact. Not sure if this is possible, but in an ideal world, it would be helpful to have a chart of notification pings according to the amount of time between the @delia-pop as for this note:
It sounds like you're describing a new issue for the "set to default" notification, separate from the "try private browsing" notification - that's a little worrying, if so (just because I'm not sure why that would be affected). When you say "on multiple occasions" - was that rare, or frequent in your testing? |
I'm fine with that plan to defer the fix until 110 @onemahon . |
Thank you, @onemahon for your input and for reporting the edge case. I will close this ticket as Verified Fixed, but we will further test the notifications to make sure they work correctly. |
@delia-pop to answer your question. From my testing, when modifying system time, the app (Fenix in this case) has to be forced closed for it to work. If the app is not forced closed, I have to wait the full delay time even with system time modified. I don't think this is a bug but a difference in how Android OS determines when the delay time expires when the app is running vs app is closed. With the way we're currently using system time to test the notification, Fenix will have to be forced closed for that to work. However, I did test (with a shorter delay) that without force closing the app, the notification will still show up. |
@AdinaPetridean, It's not expected that we have to open the app for the notification to show. Workmanager takes different considerations when determining what's the best time to perform the task (In this case showing the notification). It's not very precise. In this case when you opened Fenix, it determined that it's the best time to perform the task since the app is running. I would suggest waiting 1 to 2 hours past 48 hours to make sure the notification shows up without user interaction with Fenix. Thanks |
… for inactive users
…or re-engagement notification
User Story
We'd like to use a local notification to encourage new users to re-engage with the app after an absence of usage as a way to try to convert them into regularly active users.
Acceptance Criteria
Telemetry
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: