Task/Issue URL: https://app.asana.com/0/35672304057861/619654283307010
- A/B implementation: https://app.asana.com/0/414235014887631/640129010472305
- CTA and instructions: https://app.asana.com/0/414235014887631/640129010472306
- Reminder notification: https://app.asana.com/0/414235014887631/648387649699574
- Variant in feedback: https://app.asana.com/0/414235014887631/653505507697886
Tech Design URL:
- A/B: https://app.asana.com/0/392891325557410/640129010472304
CC:
Description:
For new installs only: * adds a call to action on the home screen to launch a video showing how to add the app to the dock * 3 days after the install (and if the CTA was dismissed without showing the instructions) a reminder will show in the form of a notification when the user does a search (or selects from the autocomplete)
For all installs: * Setting screen allows user to launch instructions * Home screen shows Dax up front and centre but keyboard is down by default * When opening a new tab from the tab switcher it shows the keyboard * When playing the instruction video ensure background audio is not stopped
Useful info when testing:
Override the default variant by replacing currentVariant in DefaultVariantManager with something that returns the variant you want directly from the array in Variant.defaultVariants
Steps to test this PR:
Existing install and all variants:
- note keyboard is open by default - tap home screen to lose focus from omni bar
- go to settings and tap "Add DuckDuckGo to your dock" - instructions are launched
- Check looks OK in landscape and portrait
- Check other settings options still work as expected
- Tap send feedback and ensure current variant is in the body (or "-" if existing install/no variant)
With an existing install:
- launch the app - no CTA
- forward the device's date by 1 day and perform a search - no reminder
- forward the device's date by 2 days and perform a search - no reminder
- forward the device's date by 3 days and perform a search - no reminder
- check that atb sent with requests has not been altered
New install - m1 variant
- Should behave the same as an existing install.
- check that atb sent with requests has includes m1 variant
New install - m2 variant
- launch the app - after onboarding CTA should be on home screen
- tap the CTA - the instructions launch
- forward the device's date by 1 day and perform a search - no reminder
- forward the device's date by 2 days and perform a search - no reminder
- forward the device's date by 3 days and perform a search - no reminder
- repeat above but dismiss CTA instead of tapping it
- check that atb sent with requests has includes m2 variant
New install - m3 variant
- launch the app - after onboarding CTA should be on home screen
- dismiss the CTA
- forward the device's date by 1 day and perform a search - no reminder
- forward the device's date by 2 days and perform a search - no reminder
- forward the device's date by 3 days and perform a search - reminder is shown
- check looks OK in landscape and portrait
- repeat above fresh install but tap CTA instead of tapping it - reminder should not be shown
- check subsequent searches don't show reminder
- check that atb sent with requests has includes m3 variant
New install - random variant
- Disable the variant override
- Do a new install of the app
- Confirm variant added to atb requests
- Repeat several times to confirm that variant is random
Internal references:
Software Engineering Expectations Technical Design Template
该提问来源于开源项目:duckduckgo/iOS