Html5+离线打包创建本地消息
最近在做美女图片站点时,使用html5打包成app
自己离线打包Html5+ Runtime,通常是导入SDK的Hello实例,然后修改。在做消息通知功能时,使用push.createMessage不起作用。
需要特别注意的是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> |
浙公网安备 33010602011771号