Android Nfc Tag With Url Opening Browser, Not My App
Solution 1:
Your intent filter looks good and works a sample app I wrote. I get prompted to open the tag with my app or Chrome.
I expect at one point you told Chrome to open http://example.com tags or all URL tags and now Chrome grabs the intent before your app can launch.
If fixed this by resetting all app preferences. Settings -> Device -> Apps -> Menu -> "Reset App Preferences" See https://support.google.com/nexus/answer/6271667?hl=en
After resetting the preference Android prompted me again to choose an app when I scanned the tag. I chose complete action using NFCLaunch (my app) always. Now tags with http://example.com open my app but other tags with http://android.com will still open in Chrome.
Another option is to: disable Chrome, scan the tag, choose the app, re-enable Chrome.
Post a Comment for "Android Nfc Tag With Url Opening Browser, Not My App"