这只发生在Iphone 9.2(测试了2部手机)但在Iphone 9.1上没有发生 我在调用时得到空白页面(没有触发错误)。它启动了Safari浏览器,但只有当我点击右边的蓝色“safari”按钮时它才会起作用,它会带我进入带有内容的正确页面。某种广告拦截器? 请指教。 提前谢谢。
let content = FBSDKAppInviteContent()
content.appLinkURL = NSURL(string: facebookSetting.inviteLink + PFUser.currentUser()!.objectId!)
content.appInvitePreviewImageURL = NSURL(string: "http://someurl.jpg")
FBSDKAppInviteDialog.showFromViewController(self, withContent: content, delegate: self)
这是这个PInfo
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>whatsapp</string>
<string>wechat</string>
<string>line</string>
<string>instagram</string>
<string>fbapi20150629</string>
<string>https</string>
<string>http</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>fb.me</key>
<dict>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
答案 0 :(得分:0)
我重新启动手机并且运行正常。超级奇怪的问题。