浏览代码

Add a way to get token to pushkit.md

/update2022
shuangliu 3 年前
当前提交
026a5732
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      Documentation/pushkit.md

2
Documentation/pushkit.md


If Unity Version is **2019.2 or before**, there is no **AndroidManifest** checkbox, but you can put `AndroidManifest.xml` under `Assets/Plugins/Android`.
You need to register service in application in the **AndroidManifest.xml** file to [obtain push tokens](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-client-dev-0000001050042041#section876955375919) and [receive data messages](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-basic-receivemsg-0000001087370610). service inherits from the HmsMessageService class and implements the methods in the class. The following uses the service with the **com.unity.hms.push.MyPushService** class as an example. You can change **com.unity.hms.push.MyPushService** as needed.
```
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->

正在加载...
取消
保存