mises-id / mises-browser-core

Mozilla Public License 2.0
22 stars 7 forks source link

Set as default browser #212

Closed 118-61-21-230 closed 8 months ago

118-61-21-230 commented 9 months ago

Even IF you set the browser as default, still that option is visible.

Screenshot_2024-01-21-17-57-05-62_d4b821f22c36211daa9077338f9854d0

Haoxiqiang commented 8 months ago

This is not entirely Mises' problem. In the Android platform, detecting who is the default browser is not accurate enough.

resolveInfo.activityInfo may return android or site.mises.browser.

should consider whether to relax some conditions.

// first time use strict
if (strict) {
    context.packageName == resolveInfo.activityInfo.packageName
} else {
    context.packageName == resolveInfo.activityInfo.packageName ||
        context.packageName == "android"
}
freshlife001 commented 8 months ago

fixed in #221