该问题的总结会持续更新与完善,可以在 该贴下 提出意见 与 主题相关的问题
系统了解请阅读以下两篇文章:
「通知与自定义消息有什么区别?」[Android] (http://docs.jiguang.cn/jpush/client/Android/android_senior/#vs) - iOS
「自定义消息」
「通知消息」
alert 为空,则默认不展示,在控制台里就是此处应填:
点击通知后,需要 跳转到 具体的页面 需要开发者自行实现。
请首先注意 测试手机 对App 通知展示 的各种设置是否有打开。
iOS :iOS10以前的系统,只能当App处于后台或杀死状态,才会展示消息。
iOS10可以实现 当App处于前台时 展示通知,实现该方法:(若不想展示,则不实现即可)
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(NSInteger))completionHandler
前台展示通知,可添加三种提醒(可自行选择几种实现,如果需要横幅,那么请写上alert的提醒)
completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert);
0条评论