android是没有多大问题的,iOS端的坑真的是多。
1,证书配置,这个就不说了,说多了都是累(泪)
2,在证书配置好的前提下。
打开iOS端就报错,闪退的,基本上报错信息只要有jpush的,十有八九是缺少
jpush.setup(appKey: "11111111111" ,channel: 'theChannel',production:false,debug: true);
的后面两个参数
3,如果报错问题又解决了,但是一直提示
not get devicetoken yet. after successful login, a custom message can be sent, but the apns notification cannot. until the devicetoken is
这些信息的,基本上是缺少
jpush.applyPushAuthority(new NotificationSettingsIOS( sound: true, alert: true, badge: true));