WebAPI/WebNFC/WebNFCv2 draft

From MozillaWiki
Jump to navigation Jump to search

Current NFC API

Current System App and Gaia app

New API proposal

System app and Gaia app using new NFC API

TBD

Use cases

  1. Dispatch tag through MozActivity. https://docs.google.com/a/mozilla.com/drawings/d/1t_2IUquV515UHhgqqqoTOjLrpTLCqa8_bt4RhiwPpYo/
  2. Dispatch tag to foreground app. https://docs.google.com/a/mozilla.com/drawings/d/1Tf4AnRBIS225dWrcBqr7QuR7dch6EPsX_AeQPk2_bhs/
  3. Dispatch tag to System app if foreground cannot handle it. https://docs.google.com/a/mozilla.com/drawings/d/1pyKZke1T7dSktTRU5e_Cw2YhmPZEIzMQUDTajf8Khj8/
  4. Send ontag/peerfound to the previous foreground app. https://docs.google.com/a/mozilla.com/drawings/d/1HylWI_Q2YezHNOa1DPbRRlO3qzNXD6jPAVQu7WAkw_8/
  5. Don't send ontaglost to the previous foreground app if it didn't receive ontagfound before. https://docs.google.com/a/mozilla.com/drawings/d/1mWnTuAKw6ZAoT8YL6H8-v6Rh_nvQE2ZHwPCTo3t97pg/
  6. Don't send ontaglost to the previous foreground app if it didn't receive ontagfound before. Another case. https://docs.google.com/a/mozilla.com/drawings/d/1U-pCqu-Dh_zySKNgN8cy15X5FSjv2n-O9dHi1ZyKKYw/
  7. onpeerfound callback. https://docs.google.com/a/mozilla.com/drawings/d/13AZmUzItldz_of6P3b1Kc2AyAJwOzcDbpcrwravSMiI/
  8. Dispatch NFCPeer to foreground app. https://docs.google.com/a/mozilla.com/drawings/d/1Jtlcxegam5Lls3S-4E0zrRXRKu2sG8clDfBL6uYVMTg/