Xamarin IOS NFCNdefReaderSession.ReadingAvailable 为假
Xamarin IOS NFCNdefReaderSession.ReadingAvailable is false
我在 Xamarin IOS 上设置 NFC reader 时遇到问题。配置示例在这里:https://docs.microsoft.com/en-us/xamarin/ios/platform/introduction-to-ios11/corenfc
启动应用程序后,NFCNdefReaderSession.ReadingAvailable 始终为 false,并且在设备日志中:
[NFCNDEFReaderSession beginSession]:255 error:Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process.}
在 IOS 项目设置 -> IOS 捆绑歌唱 -> 自定义权利中 - 它在我的项目中是空白的。只需将其设置为您的 Entitlements.plist
我在 Xamarin IOS 上设置 NFC reader 时遇到问题。配置示例在这里:https://docs.microsoft.com/en-us/xamarin/ios/platform/introduction-to-ios11/corenfc
启动应用程序后,NFCNdefReaderSession.ReadingAvailable 始终为 false,并且在设备日志中:
[NFCNDEFReaderSession beginSession]:255 error:Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated from this process.}
在 IOS 项目设置 -> IOS 捆绑歌唱 -> 自定义权利中 - 它在我的项目中是空白的。只需将其设置为您的 Entitlements.plist