ionic3 android版本 收不到推送


(小季) #1

jpush-phonegap-plugin安装完后
app.component.ts
中调用
jpush.setDebugMode(true);
jpush.init();

app.module.ts中引入
import { Device } from ‘@ionic-native/device’;
import { JPush } from ‘@jiguang-ionic/jpush’;

别的页面不修改,就可以收到推送吗,我这没有收到,有缺漏步骤了,请提示一下,多谢

android推送必须完成开发者认证吗?


#2

不需要完成开发者认证。

需要集成成功才能收到消息。
请看一下日志,是否集成成功,是否可以取到 regIstrationID 值


(小季) #3
04-25 15:49:03.921  1973  2111 E ActivityThread: Failed to find provider info for com.neusoft.dashboard.DataProvider
04-25 15:49:03.929  1973  2111 W JIGUANG-JCore: [AndroidUtil] AndroidManifest.xml missing intent filter for DaemonService: cn.jpush.android.intent.DaemonService
04-25 15:49:03.944  1973  2111 W JIGUANG-JCore: [AndroidUtil] hasPermissionDefined error:com.neusoft.dashboard.permission.JPUSH_MESSAGE
04-25 15:49:03.944  1973  2111 E JIGUANG-JCore: [AndroidUtil] The permission should be defined - com.neusoft.dashboard.permission.JPUSH_MESSAGE
04-25 15:49:03.945  1973  2111 W JIGUANG-JCore: [JCoreInterface] JCore init failed
04-25 15:49:03.948  1973  2112 D JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.1, buildId:396
04-25 15:49:03.950  1973  2112 D JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
04-25 15:49:03.954  1973  2112 W JIGUANG-JCore: [AndroidUtil] AndroidManifest.xml missing intent filter for DaemonService: cn.jpush.android.intent.DaemonService
04-25 15:49:04.053  1973  2112 D JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
04-25 15:49:04.063  1973  2112 W JIGUANG-JCore: [AndroidUtil] hasPermissionDefined error:com.neusoft.dashboard.permission.JPUSH_MESSAGE
04-25 15:49:04.063  1973  2112 E JIGUANG-JCore: [AndroidUtil] The permission should be defined - com.neusoft.dashboard.permission.JPUSH_MESSAGE

日志里部分内容如上

包名和appkey都能对上,收不到推送,大神帮忙分析一下,日志内容不知道够不够哈


#4

你安装的插件的版本是?
platform android 的版本是多少?


(小季) #5

解决了,还是app包的问题,我新手,改回默认包后好使了,谢谢大神,后续有问题还请多多帮助,3q very much