华为推送
1、华为开发者平台创建项目绑定APP

2、设置SDK

3、添加SDK
在Gradle文件中设置AppGallery Connect的Gradle插件以及AppGallery Connect SDK基础包。
a) 设置项目级 build.gradle
allprojects {
    repositories {
            // Add the Maven address.
            maven {url 'https://developer.huawei.com/repo/'}
    }
}
...
buildscript{
    repositories {
        // Add the Maven address.
        maven { url 'https://developer.huawei.com/repo/' }
    }
    dependencies {
        // Add dependencies.
        classpath 'com.huawei.agconnect:agcp:1.5.2.300'
    }
}
b) 设置模块级 build.gradle
dependencies {
    // Add dependencies.
    implementation 'com.huawei.agconnect:agconnect-core:1.5.2.300'
}
...
// Add the information to the bottom of the file.
apply plugin: 'com.huawei.agconnect'
4、集成服务
 
                    
                     
                    
                 
                    
                 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号