jpush flutter iOS端集成踩坑记

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));
发布了310 篇原创文章 · 获赞 69 · 访问量 46万+

猜你喜欢

转载自blog.csdn.net/nimeghbia/article/details/103803055