更新证书后推送失败

ios
标签: #<Tag:0x00007fb83c52eee0>

(chasen) #11

这个全部都推送的,怎么查兰registrationID呢? p12的文件名字会影响这个吗?


#12

在客户端调 API 获取,在链接中已经说明方法。


(chasen) #13

不是单一的推送,不能拿到设备来获取,是通过极光这边的平台选择推送给所有用户的


#14

你们哪一个测试设备收不到?不是说有设备收不到吗?收不到的设备的registrationID取一下不行吗?


(chasen) #15

拿到设备重新运行registrationID 不会变吗


#16

你们现在[quote=“chasen, post:9, topic:27425, full:true”]
运营的同时告诉我他们经常会收不到推送这
[/quote]

这个情况,是你们的测试机出现的?直接运行测试机得到 registrationID,再给他推送消息给他,看收不收得到?

如果是线上,需要你们自己增加一步,在客户端获取 registrationID 上传给你服务器保存,以便 随时查询


(chasen) #17

不是在测试机上出现的,正是环境出现的。我们的同事会定时的发一些推送给用户,可是同事自己却收不到


#18

这个还是他自己的手机,不是你们线上用户的撒?
你直接拿他的手机做下推送测试吧。


(chasen) #19

他是从appstore下载的 ,跟我的用户是一样的呀。我让她卸载重装了,晚点在看能不能收到


(chasen) #20

我让同事卸载了重新安装就可以收到推送了,这个怎么回事呢?注册时的原因吗


#21

根据已有情况猜测是Apple服务器判定她之前的app的token失效了。但没有当时的registrationID无法查询确认


(chasen) #22

token 只注册一次吗


#23

一般在失效后Apple服务器会返回新的token的

建议升级到最新的 SDK 版本
https://docs.jiguang.cn/jpush/updates/#jpush-ios-sdk-v309

旧版本SDK每次启动都会重新检测上报,只是如果跟之前一样就不会上报到服务器
新的sdk是检测到token 变化会立即上报,另外增加一个12小时上报一次的机制(不管是否变化)
新版本的这个规则用于解决下述问题:


(chasen) #24

木箱项目接入的是3.0.0的版本,我尝试升级一下看看


(chasen) #25
ld: warning: directory not found for option '-L/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/build/Debug-iphoneos'
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionRequest.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionUdpSocket.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushNotificationExtensionService.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionSession.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionReachability.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionUtilities.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionLog.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionTCPSocket.o)) was built for newer iOS version (10.0) than being linked (8.0)
ld: warning: object file (/Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionSRVResolver.o)) was built for newer iOS version (10.0) than being linked (8.0)
duplicate symbol __sisHostDomains in:
    /Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jpush-extension-ios-1.1.1.a(JPushExtensionSession.o)
    /Users/changcai/Desktop/iOS/Changcai_iOS/Changcai_iOS/Changcai_iOS/Vendor/JPush/jcore-ios-1.1.9.a(JPUSHAddressController.o)
ld: 1 duplicate symbol for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

更新了iOS 3.0.9的SDk后运行报错了


(chasen) #26

@Lris


#27

extension 的文件请根据文档说明引入到 Service Extentsion 工程中,否则会与 jpush A 文件产生冲突。
具体可以参考我们的 demo 。

https://docs.jiguang.cn/jpush/client/iOS/ios_guide_new/#_11

该功能用于送达统计,如果不需要,可删除,如果需要,请自行研究一下 iOS 10 开始支持的 Service Extentsion 原生功能


(chasen) #28

Message ID :1658807671 Reg.ID:191e35f7e0636aab08b 没收到 麻烦看下什么原因


#29

你们的开发证书被你们 revoke 了,请检查并重新上传


(chasen) #30

已上传,消息也收到了,非常感谢