繁体   English   中英

iOS 是否可以在 aos 中触发 onNewIntent()?

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

我希望开发应用程序在 aOS 和 iOS 之间通过 NFC 交换数据 对于aOS 到 iOS ,可以在 android 中模拟标签并从 iOS 读取。 但是,由于iOS CoreNFC没有开放HCE 模式 我想知道是否有任何方法,通过iOS系统触发AOSonNewIntent()函数,这样我可以从iOS版通过onNewIntent数据传递到AOS()

是的,可以在 Android 中模拟 NFC 标签,但您不使用用于读取 NFC 卡的onNewIntent

请参阅主机卡仿真文档https://developer.android.com/guide/topics/connectivity/nfc/hce

然后,您需要模拟使用 Android 设备存储 NDEF 消息的 Type 4 NFC 卡,因为 iOS 将仅读取(并在 iOS 13 中写入)来自 Type 4 卡的 NDEF 消息。

关于如何模拟带有 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.

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