[英]Is it possible for iOS triggering onNewIntent() in aos?
I hope to develop applications to exchange data via NFC between aOS and iOS .我希望开发应用程序在 aOS 和 iOS 之间通过 NFC 交换数据。 For aOS to iOS , it is possible to emulate a tag in android and read from iOS.
对于aOS 到 iOS ,可以在 android 中模拟标签并从 iOS 读取。 However, as iOS CoreNFC did not open up HCE mode .
但是,由于iOS CoreNFC没有开放HCE 模式。 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()
我想知道是否有任何方法,通过iOS系统触发AOS的onNewIntent()函数,这样我可以从iOS版通过onNewIntent数据传递到AOS()
Yes it is possible to emulate a NFC Tag in Android, but you don't use onNewIntent
that is for reading NFC cards是的,可以在 Android 中模拟 NFC 标签,但您不使用用于读取 NFC 卡的
onNewIntent
See the Host Card Emulation documentationhttps://developer.android.com/guide/topics/connectivity/nfc/hce请参阅主机卡仿真文档https://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.然后,您需要模拟使用 Android 设备存储 NDEF 消息的 Type 4 NFC 卡,因为 iOS 将仅读取(并在 iOS 13 中写入)来自 Type 4 卡的 NDEF 消息。
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关于如何模拟带有 NDEF 的 Type 4 卡的规范在http://apps4android.org/nfc-specifications/NFCForum-TS-Type-4-Tag_2.0.pdf 的第 5 节
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.