Html5+离线打包创建本地消息

最近,想讲一个人体艺术写真站点打包成安卓app,使用了html5还不错

自己离线打包Html5+ Runtime,通常是导入SDK的Hello实例,然后修改。在做消息通知功能时,使用push.createMessage不起作用。

首先参考Android平台离线打包推送插件配置

需要特别注意的是AndroidManifest的配置,需要将包名替换成自己的包名

1
2
3
4
5
6
7
8
9
< receiver  android:exported="true" android:name="io.dcloud.feature.apsXm.XMNotificationReceiver">
< intent-filter >
< action  android:name="android.intent.action.BOOT_COMPLETED"/>
< action  android:name="%填写APK的包名%.__CREATE_NOTIFICATION"/>
< action  android:name="%填写APK的包名%.__REMOVE_NOTIFICATION"/>
< action  android:name="%填写APK的包名%.__CLEAR_NOTIFICATION"/>
< action  android:name="%填写APK的包名%.__CLILK_NOTIFICATION"/>
</ intent-filter >
</ receiver >

猜你喜欢

转载自yangjiyue.iteye.com/blog/2400784
今日推荐