Changes

Jump to: navigation, search

WebAPI/WebNFC

1,017 bytes removed, 22:49, 18 March 2014
When to use the APIs
== Sending/Writing NDEF messages in Passive Tag mode ==
'''TBD''': Similar API needs to be added for a passive Tag scenario. foreground dispatch is still under discussion. {{bug|937430}}
 
== When to use the APIs ==
1. Gaia applications, in order to read NDEF messages from a passive tag (or) P2P phone, should declare 'nfc-ndef-discovered' in their manifest file.This implies that the Gaia application shall be listed in activity picker whenever an NDEF message is about to be read. However, if the Gaia application wishes to perform write operation after reading, it can choose to do so by using the API 'writeNDEF()'. (provided user has chosen the appropriate Nfc Application on the activity picker)
 
2. In order to write NDEF message (No need to declare 'nfc-ndef-discovered' in the application's manifest file)
 
- In a P2P mode, Gaia applications shall register for 'onpeerready' as described above
 
- In Passive Tag mode, {{bug|937430}} is still under discussion.
 
These APIs should be used if the application wants to bypass the normal activity picker. As you may also have noted , for these event handlers to be fired, the Nfc Gaia
application should be the top-visible / foreground application.
= Application Permissions =
Confirm
118
edits

Navigation menu