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

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

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

<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>

相关文章:

  • 2021-12-06
  • 2021-06-21
  • 2021-07-24
  • 2022-12-23
  • 2021-11-20
  • 2021-03-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2021-03-29
  • 2022-12-23
  • 2021-04-01
  • 2021-07-28
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案