Skip to content Skip to sidebar Skip to footer

Android Nfc Tag With Url Opening Browser, Not My App

I followed instructions to setup NFC to launch my app on Android. The first record in the tag is a url to my website. ex. example.com The AndroidManifest.xml file has the followi

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.

Android prompts for app open

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"