简体   繁体   中英

Is it possible for iOS triggering onNewIntent() in aos?

I hope to develop applications to exchange data via NFC between aOS and iOS . For aOS to iOS , it is possible to emulate a tag in android and read from iOS. However, as iOS CoreNFC did not open up HCE mode . I'm wondering whether there's any method to trigger the onNewIntent() function in aOS by iOS so that I can pass data from iOS to aOS through onNewIntent()

Yes it is possible to emulate a NFC Tag in Android, but you don't use onNewIntent that is for reading NFC cards

See the Host Card Emulation documentationhttps://developer.android.com/guide/topics/connectivity/nfc/hce

You will then need to emulate a Type 4 NFC card that is storing a NDEF message with the Android Device as iOS will only read (and write in iOS 13) NDEF messages from Type 4 cards.

The specification on how to emulate a Type 4 Card with NDEF on it is in Section 5 of http://apps4android.org/nfc-specifications/NFCForum-TS-Type-4-Tag_2.0.pdf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM