Problems encountered in integrating Huawei push sdk 907135000

Precautions for integrated HuaWei push sdk: (Problems still exist on April 13, 2020) Error reported for no reason: 907135000

When calling the token of the SDK, the error code 907135000 is reported. In the document, import agconnect-services.json to read and import the file into the project. Problem: it cannot be read, and the
read appid is null.
Solution
So you need to configure the following code in Mainfest:

<meta-data
            android:name="com.huawei.hms.client.appid"
            android:value="appid in configuration file"/>
        <meta-data
            android:name="com.huawei.hms.client.cpid "
            android:value="cp_id in configuration file"/>

Guess you like

Origin blog.csdn.net/hnlht/article/details/105489505