游戏引擎导出的xcode项目:Not get deviceToken yet

标签: #<Tag:0x00007f657a3bb910> #<Tag:0x00007f657a3bb7a8>

我新建的xcode项目按Jpush官方的集成步骤是正常的。
但是当我使用Fusion(一款可视化游戏引擎)导出的xcode项目集成后,
就报Not get deviceToken yet了,错误日志如下
app的图标的badge显示了1 。请帮我分析下原因或可能的配置。多谢

2019-07-11 15:21:48.794901+0800 fusionEmpty-withExt[3119:1107816] [DYMTLInitPlatform] platform initialization successful

2019-07-11 15:21:48.962683+0800 fusionEmpty-withExt[3119:1107657] You’ve implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add “remote-notification” to the list of your supported UIBackgroundModes in your Info.plist.

2019-07-11 15:21:52.362336+0800 fusionEmpty-withExt[3119:1107804] | JIGUANG | I - [JIGUANGService]

--------------------------- JPush Log ----------------------------

--------------------JPush SDK Version:3.2.1–build:91----------

--------------------JCore Lib Version:2.1.0–build:76----------

-----------------AppKey:384b32c7b56763a1254f8932----------------

----------------------------------------------------------------

2019-07-11 15:21:52.946223+0800 fusionEmpty-withExt[3119:1107833] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection

2019-07-11 15:21:52.974351+0800 fusionEmpty-withExt[3119:1107804] | JIGUANG | I - [JIGUANGClientController] Action - jpush setup

2019-07-11 15:21:53.014645+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b5260, domain=1, instance=1>

2019-07-11 15:21:53.100575+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b2920, domain=1, instance=1>

2019-07-11 15:21:53.109169+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b63a0, domain=1, instance=1>

2019-07-11 15:21:53.117413+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b6320, domain=1, instance=1>

2019-07-11 15:21:53.237705+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b1e60, domain=1, instance=1>

2019-07-11 15:21:53.247158+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b6a00, domain=1, instance=1>

2019-07-11 15:21:53.298871+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | I - [JIGUANGRegister]

----- register info -----

Appkey: 384b32c7b56763a1254f8932

token:

advertisingIdentifier: 8722BE0F-17A9-42C3-9865-E2630128BF0D

2019-07-11 15:21:53.502219+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | I - [JIGUANGTcpEventController]

----- register result -----

uid: 27061589668

registrationID:1114a89792df7b0fda5

2019-07-11 15:21:53.589524+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | I - [JIGUANGTcpEventController]

----- login result -----

uid:27061589668

registrationID:1114a89792df7b0fda5

idc:0

2019-07-11 15:21:53.618674+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | I - [JIGUANGIDFAReport] upload advertisingIdentifier 8722BE0F-17A9-42C3-9865-E2630128BF0D

2019-07-11 15:21:53.660458+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b6780, domain=1, instance=1>

2019-07-11 15:21:53.726764+0800 fusionEmpty-withExt[3119:1107914] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor 0x2827b6660, domain=1, instance=1>

2019-07-11 15:21:53.747768+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | I - [JIGUANGTcpEventController] upload advertisingIdentifier success

2019-07-11 15:21:54.141347+0800 fusionEmpty-withExt[3119:1107833] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:4][0x159e240a0] get output frames failed, state 8196

2019-07-11 15:21:54.141637+0800 fusionEmpty-withExt[3119:1107833] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:4][0x159e240a0] get output frames failed, state 8196

2019-07-11 15:21:54.142529+0800 fusionEmpty-withExt[3119:1107833] TIC Read Status [1:0x0]: 1:57

2019-07-11 15:21:54.142581+0800 fusionEmpty-withExt[3119:1107833] TIC Read Status [1:0x0]: 1:57

2019-07-11 15:21:54.982283+0800 fusionEmpty-withExt[3119:1107810] | JIGUANG | W - [JIGUANGDeviceTokenController] Not get deviceToken yet. After successful login, a custom message can be sent, but the APNs notification cannot. Until the deviceToken is obtained and reported successfully, the APNs notification can be used normally.

1赞

刚刚排查解决了,是Fusion引擎生成的xcode项目,里面的某些代码造成了
didRegisterForRemoteNotificationsWithDeviceToken 方法不执行的。
jpush可以正常的收到推送了:grinning:

1赞