Per https://github.com/mozilla-mobile/focus-android/issues/2816#issuecomment-402697895 @brampitoyo should think of a nice contextual hint to ask users to set default browser.

Cool @brampitoyo - when do we show this toast / tip?
@Sdaswani I think that the menu item should show up only when Focus isn’t set a default browser, but the toast and modal dialogue should show up whenever the menu item is tapped.
@brampitoyo this toast only shows up in the settings screen right?
Yes.
Looking at the data, out of 400 million foregrounds, settings has only be accessed some 2 millions times. Not very many people will ever see this tip. https://sql.telemetry.mozilla.org/dashboard/android-focus
@brampitoyo Is there an update here as well? See Susheel's last comment. Thx
Hi @kfontecilla
“Set default browser” can be a start screen tip that will lead to a one-tap action:

This solves the problem that Susheel outlined.
However, labelling the Settings menu item clearly (the initial idea up above) is still a good idea. It won’t hurt us to do it in parallel to the start screen tip.
@brampitoyo for the tips that can deep link straight to an action or a settings page, is the plan to demonstrate that by underlining the deep link, as above? If so, will this be the case for iOS and Android?
@Sdaswani Yes. My current plan is to simply underline the deep link, which would apply to both iOS and Android.
(Obviously, if the deep link leads to SUMO, we want to say something along the lines of “Learn More”).
@brampitoyo is this ready for eng-breakdown?
Yes. This issue is now ready for engineering breakdown.
Just to clarify that this issue contains 2 separate moving parts:
A description under the Settings menu item (the menu item title remains unchanged):
Set as default browser
Open every link in Firefox Focus
A system dialogue that appears when the user taps on the Settings menu item, or on the start screen tip.


@sblatz does the current default browser tip show the 'Open With' system modal dialogue? Or does it just link to settings?
Also @brampitoyo any objection getting this into 8.0 instead of 7.0?
[…] any objection getting this into 8.0 instead of 7.0?
No objection, for a few reasons:
@Sdaswani @brampitoyo This is the current functionality of the "make default browser" tip. I was under the impression that all we could do is push them to settings where they could change it themselves. Do other apps provide this alternative to setting default? cc @ekager

@sblatz I like the direct jump to changing the settings for 7.0. We can test conversion of course.
@sblatz
[…] all we could do is push them to settings where they could change it themselves.
It’s awesome that we don’t have to go to our Settings, then have our users tap to go to the system’s Settings. This will help our conversion rate.
This is the clearly better option.
I believe this needs closed since the tip has the deep linking and so does the settings option. @Sdaswani to confirm?
@sblatz I think this is trying to use the technique described here https://github.com/mozilla-mobile/focus-android/issues/2896#issuecomment-416441863, which shows you don't need to even leave the app.
@Sdaswani is correct.
Deep-linking to the system Settings.app is better than deep-linking to a menu item inside our own Settings.
But being able to set default browser without leaving Firefox Focus is even better than deep-linking. And this is the mechanism that we want to build in this issue.
After quite a bit of investigation, I've determined that this functionality is not possible exactly as described.
There are three situations when the user toggles to make us default:
User installed a new browser since setting their default: same behavior as above
User has a default set: this is where we run into problems. There's no way for us to get this system prompt. In this case, for example, Opera Mini asks the user to clear the default (seen below) which then takes them to, in my opinion, a much more confusing screen than the one we're presenting now. We _could_ shove the user to the "defaults" section in this case like we're doing now, though.


@brampitoyo @Sdaswani thoughts on this?
@sblatz thanks for the investigation. I look forward to @brampitoyo's feedback - I'm ok passing on this until we see how the current default browser formulation is performing in market.
It sounds like we could do a mix of the Opera Mini solution and what we're currently doing. I should note that the Intent we're currently opening (android.settings.MANAGE_DEFAULT_APPS_SETTINGS) is API 24+ and we fallback to opening the SUMO page.
Yeah, at the very least we should implement this for API <24.
@sblatz Thanks for your thorough research!
There are at least two ways out of this problem:
Instead of linking to the “Default apps” page inside system Settings, we always link directly to the “Browser app” sub-page. Then at least we’ll eliminate the need to find the correct sub-page to modify browser settings. Is there a way to do this?
Detect the user’s browser state, then offer the correct UI.
If we can’t do either of these, it seems like our current way of doing things (link to “Default apps”) is the least confusing compromise!
What do you think?
While option 1 is obviously ideal, Android's API does not allow us to do it. The best we can do is link to the general "default management" settings page.
I will move forward with implementing option 2!
New behavior:

That’s pretty cool @sblatz!
Looks great, @sblatz! This is exactly the functionality we wanted when there’s no default browser set.
@vesta0 @Sdaswani do we want any sort of new Telemetry to distinguish between the ways in which a user enabled us as the default browser? Or should this continue to use the same ping?
I think different named events for the various ways users enable / use a feature makes sense. But just go through data review.
@sblatz @liuche is on PTO and i'm not sure who is covering for her on data review. but i think this can go in 8.0 right so we have time?
@sblatz @Sdaswani yes this will go in 8.0
I noticed an issue with the implementation: The "always" option doesn't appear the first time I click on the preference. I have to select Focus and then I will have to click again and then I see the "always" option. Is this expected?
@sblatz? https://github.com/mozilla-mobile/focus-android/issues/2896#issuecomment-425009365
@pocmo that’s odd... what version of android are you running? I’ll investigate this today!
I've confirmed this is an issue if the user "opens with" another browser after focus is installed and have opened a ticket for this bug: #3504.
Most helpful comment
@sblatz @Sdaswani yes this will go in 8.0