Html5 + offline packaging to create local messages and html5 local messages
Recently, when I was working on a beauty image site, I used html5 to package it into an app.
Package Html5 + Runtime offline by yourself. Generally, import the SDK's Hello instance and modify it. The use of push. createMessage does not work during Message notification.
First, refer to the Android platform offline packaging push plug-in configuration
Note the configuration of AndroidManifest,Replace the package name with your own package name
123456789 |
< receiver android:exported="true" android:name="io.dcloud.feature.apsXm.XMNotificationReceiver"> < intent-filter > < action android:name="android.intent.action.BOOT_COMPLETED"/> < action Android: name = "% enter the APK package name %. _ CREATE_NOTIFICATION"/> < action Android: name = "% Enter APK package name %. _ REMOVE_NOTIFICATION"/> < action Android: name = "% enter the APK package name %. _ CLEAR_NOTIFICATION"/> < action Android: name = "% Enter APK package name %. _ CLILK_NOTIFICATION"/> </ intent-filter > </ receiver > |