chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 559 forks source link

Launching app when any NFC tag is scanned. #121

Closed mletynski closed 10 years ago

mletynski commented 10 years ago

Hi, I have a question. Can we configure android intent in a way that our app will be opened if any nfc tag will be scanned ? Without writing custom mimetype on it ?

JohnMcLear commented 10 years ago

afafik no

don commented 10 years ago

Yes see http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#filtering-intents

JohnMcLear commented 10 years ago

@don wont that prompt the user which app to use? He said "our app will be opened"

don commented 10 years ago

Correct, if there are multiple applications that handle the intent, the user will be prompted and must choose. Ideally the intent can be as specific as possible to which tags are handled by your app.