ETENG-OSP / xgpush-cordova

腾讯信鸽推送 for Cordova
http://xg.qq.com/
MIT License
79 stars 38 forks source link

IOS下token nil #25

Closed yaorunlong closed 7 years ago

yaorunlong commented 8 years ago

2016-06-06 17:36:09.254 pusttest[1526:1130980] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/C5BCE7D4-DD57-4F4A-A595-FC1E55ACB75B/Library/Cookies/Cookies.binarycookies 2016-06-06 17:36:09.294 pusttest[1526:1130980] Apache Cordova native platform version 4.1.1 is starting. 2016-06-06 17:36:09.295 pusttest[1526:1130980] Multi-tasking -> Device: YES, App: YES 2016-06-06 17:36:09.404 pusttest[1526:1130980] Using UIWebView 2016-06-06 17:36:09.405 pusttest[1526:1130980] [CDVTimer][handleopenurl] 0.100017ms 2016-06-06 17:36:09.408 pusttest[1526:1130980] [CDVTimer][intentandnavigationfilter] 1.951993ms 2016-06-06 17:36:09.408 pusttest[1526:1130980] [CDVTimer][gesturehandler] 0.092030ms 2016-06-06 17:36:09.408 pusttest[1526:1130980] [XGPush] starting with access id: 2200199768, access key: IP89FS154YTN 2016-06-06 17:36:09.415 pusttest[1526:1130980] [XGPush] init for re-register 2016-06-06 17:36:09.416 pusttest[1526:1130980] open sqlite db ok. 2016-06-06 17:36:09.417 pusttest[1526:1130980] [CDVTimer][xgpush] 9.064019ms 2016-06-06 17:36:09.441 pusttest[1526:1130980] [CDVTimer][localstorage] 23.946047ms 2016-06-06 17:36:09.441 pusttest[1526:1130980] [CDVTimer][TotalPluginStartup] 36.072016ms 2016-06-06 17:36:09.651 pusttest[1526:1130980] [CDVRegisterNotification] register notification 2016-06-06 17:36:09.651 pusttest[1526:1130980] [CDVRegisterNotification] register ios 8 2016-06-06 17:36:09.697 pusttest[1526:1130980] Resetting plugins due to page load. 2016-06-06 17:36:09.847 pusttest[1526:1130980] Finished load of: file:///var/mobile/Containers/Bundle/Application/CF36ABFF-6C9A-4D80-834A-A2D2A6DFCF1D/pusttest.app/www/index.html 2016-06-06 17:36:09.973 pusttest[1526:1130980] [XGPushPlugin] registerpush: 2016-06-06 17:36:09.973 pusttest[1526:1130980] [XGPush] register with token:(null) alias: 2016-06-06 17:36:09.976 pusttest[1526:1130980] [xgpush error]deviceToken is nil 2016-06-06 17:36:09.977 pusttest[1526:1130980] [XGPushPlugin] registerpush error 2016-06-06 17:36:09.982 pusttest[1526:1130980] [XGPushPlugin] add listener: XGPush1540724378

官网给的ios demo配置好,运行后是能拿到token的。

yaorunlong commented 8 years ago

我用的是开发证书,是在真机上做的测试,系统版本是ios9,ios7

artdong commented 7 years ago

一样的错,你解决了么

yaorunlong commented 7 years ago

@Alex-0407 信鸽上配置生产环境,发布后的应用是配置生产环境。不知道你是不是这个问题。我当时是这个问题