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)
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.
Comment 1•8 years ago
|
||
Vijay, can you set the tracking flags to indicate which release you want to land this on? Thanks!
Flags: needinfo?(vbudhram)
| Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(vbudhram)
| Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8911310 -
Flags: review?(sarentz)
Attachment #8911310 -
Flags: review?(jhugman)
Updated•8 years ago
|
Attachment #8911310 -
Flags: review?(jhugman) → review-
Updated•8 years ago
|
| Assignee | ||
Comment 3•8 years ago
|
||
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.
| Assignee | ||
Comment 4•8 years ago
|
||
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.
```
| Assignee | ||
Comment 5•8 years ago
|
||
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?
Updated•8 years ago
|
Attachment #8911310 -
Flags: review? → review+
Updated•8 years ago
|
Updated•8 years ago
|
Whiteboard: [MobileCore][FxA] → [MobileCore][FxA][MMA]
| Assignee | ||
Comment 6•8 years ago
|
||
This was landed on master.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Whiteboard: [MobileCore][FxA][MMA] → [MobileCore][FxA][MMA][needsuplift]
Updated•8 years ago
|
Summary: Add feature flag for FxA Leanplum A/B test → Add Custom leanplum template for FxA A/B testing
Comment 7•8 years ago
|
||
Uplifted to v9.x and v10.x - Currently only enabled on Beta.
Updated•8 years ago
|
Whiteboard: [MobileCore][FxA][MMA][needsuplift] → [MobileCore][FxA][MMA]
Updated•8 years ago
|
Attachment #8911310 -
Flags: review?(sarentz) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•