Closed Bug 1400871 Opened 8 years ago Closed 8 years ago

Add Custom leanplum template for FxA A/B testing

Categories

(Firefox for iOS :: Firefox Accounts, enhancement)

Other
iOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 9.3 ---

People

(Reporter: vbudhram, Assigned: vbudhram)

Details

(Whiteboard: [MobileCore][FxA][MMA])

Attachments

(1 file)

To help support FxA push notification A/B testing we need to add a flag that does not automatically display native permissions dialog when a user signs in or up. Instead, it would rely on Leanplum framework to prime the user on why they should accept push notifications. We have started a feature doc that has details on the different types of messaging that will be used, ref: https://docs.google.com/document/d/1W7W5RxbijWAKGingzwltbXMXWjbUlFGcrCWT1U8QArs/edit To ensure everything is working as expected, this should be tested on non release users and be disabled when Leanplum is disabled.
Vijay, can you set the tracking flags to indicate which release you want to land this on? Thanks!
Flags: needinfo?(vbudhram)
Flags: needinfo?(vbudhram)
Attachment #8911310 - Flags: review?(jhugman) → review-
Had a vidyo with James and concluded that we need a callback on whether or not a user has allowed or not allowed permissions on the pre-push dialog. This would cover the following scenarios * User clicks `Yes` on pre-push and `Yes` on push permission dialog * Don't advance account state, state would be advanced when they allow permissions * User clicks `Yes` on pre-push and `No` on push permission dialog * Advance account with readyToSync * User clicks `No` on pre-push * Advance account with readyToSync I sent an email to Leanplum support to see if there was a way to get the callback.
Leanplum support recommends that we use a custom template and detect the pre-push dialog. ``` Thanks for outlining your use case. We provide the option with our Custom In-App templates being open sourced for you to make changes and change what happens on message button click. For this particular case what you can do is customize the default action when clicking either the accept or cancel for the Custom messages -> iOS -> https://github.com/Leanplum/Leanplum-iOS-SDK/blob/master/Leanplum-SDK/Classes/LPMessageTemplates.m#L506-L525 This would basically be adding a case inside the Accept/Cancel if the message is Push pre permissions and conducting your actions. Note when making this customization it's up to you to test engagement on all message types to verify they are still working as expected and QA to determine your code is being fired. ```
Comment on attachment 8911310 [details] [review] Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/3207 Updated this from previous conversation. Uses a custom leanplum template that gives us hooks on whether or not a user accept/declined pre-permissions. * If user clicks no, do ready for syncing * If user clicks yes, present native permissions dialog. To keep things simple, it utilizes a UIAlert and attaches to the top most view controller.
Attachment #8911310 - Flags: review- → review?
Attachment #8911310 - Flags: review? → review+
Whiteboard: [MobileCore][FxA] → [MobileCore][FxA][MMA]
This was landed on master.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [MobileCore][FxA][MMA] → [MobileCore][FxA][MMA][needsuplift]
Summary: Add feature flag for FxA Leanplum A/B test → Add Custom leanplum template for FxA A/B testing
Uplifted to v9.x and v10.x - Currently only enabled on Beta.
Whiteboard: [MobileCore][FxA][MMA][needsuplift] → [MobileCore][FxA][MMA]
Attachment #8911310 - Flags: review?(sarentz) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: