Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Samsung browser detection logic #8

Closed
ameshkov opened this issue May 12, 2016 · 2 comments
Closed

Change Samsung browser detection logic #8

ameshkov opened this issue May 12, 2016 · 2 comments
Assignees

Comments

@ameshkov
Copy link
Member

ameshkov commented May 12, 2016

  1. If you want to check whether the Content Blocker feature is available or not with current device, you can use below logic.
    ( starting from 4.0, Samsung Internet for Android supports Content Blocker)
               Intent intent = new Intent();
               intent.setAction("com.samsung.android.sbrowser.contentBlocker.ACTION_SETTING");
               List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);
               if(list.size() > 0) {    
                   // Samsung Internet 4.0 was installed. 
               }
   If the user didn't install Samsung Internet 4.0 for content blocker, you can guide the user to do so by providing an option to access to Play Store Link. 
   - Samsung Internet in Google Play : https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser
@Revertron
Copy link

I am doing it like this exactly.

@ameshkov
Copy link
Member Author

Ah, ok, nice.

nkartyshov pushed a commit that referenced this issue Aug 31, 2018
…list_for_yandex to master

* commit 'ba5858db36a14d40cafe527256e329aa57920ecb':
  Added todo
  Fixed whitelist rule for the Yandex Browser
  Fixed whitelist rule for yandex browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants