SiriKit开发:支付意图处理全解析
1. 意图支持配置
在iOS开发中,如果忘记将意图放置在 IntentsSupported 下,iOS将完全无法识别该意图。更糟糕的是,如果 IntentsSupported 为空,甚至无法在iOS设备上编译和运行应用。以下是 info.plist 文件中设置的意图目标示例:
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>IntentsRestrictedWhileLocked</key>
<array>
<string>INSendPaymentIntent</string>
</array>
<key>IntentsSupported</key>
<array/>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.intents-service</
超级会员免费看
订阅专栏 解锁全文
8

被折叠的 条评论
为什么被折叠?



