cordova plugin for push SDK
-
Install directly via url:
cordova plugin add https://github.com/DevEngageLab/engagelab-cordova-plugin.git --variable ENGAGELAB_PRIVATES_APPKEY=your_APPKEY --variable VIVO_APPID= --variable VIVO_APPKEY= --variable OPPO_APPID= --variable OPPO_APPKEY= --variable OPPO_APPSECRET= --variable MEIZU_APPID= --variable MEIZU_APPKEY= --variable XIAOMI_GLOBAL_APPID= --variable XIAOMI_GLOBAL_APPKEY= --variable HONOR_APPID= --variable XIAOMI_APPID= --variable XIAOMI_APPKEY=
-
Or download to local for local installation:
cordova plugin add Your_Plugin_Path --variable ENGAGELAB_PRIVATES_APPKEY=your_APPKEY --variable VIVO_APPID= --variable VIVO_APPKEY= --variable OPPO_APPID= --variable OPPO_APPKEY= --variable OPPO_APPSECRET= --variable MEIZU_APPID= --variable MEIZU_APPKEY= --variable XIAOMI_GLOBAL_APPID= --variable XIAOMI_GLOBAL_APPKEY= --variable HONOR_APPID= --variable XIAOMI_APPID= --variable XIAOMI_APPKEY=
-
ENGAGELAB_PRIVATES_APPKEY: required,the Appkey corresponding to the package name registered on ENGAGELAB
--variable ENGAGELAB_PRIVATES_APPKEY=your_APPKEY
-
HUAWEI Manufacturer: Must be set,Corresponds to the app_id in agconnect-services.json. If there is no app_id, fill in the blank.
--variable HUAWEI_APP_ID=
-
VIVO Manufacturer : Must be set, if not available, fill in the blank
--variable VIVO_APPID= --variable VIVO_APPKEY=
-
OPPO Manufacturer : Must be set, if not available, fill in the blank
--variable OPPO_APPID= --variable OPPO_APPKEY= --variable OPPO_APPSECRET=
-
MEIZU Manufacturer : Must be set, if not available, fill in the blank
--variable MEIZU_APPID= --variable MEIZU_APPKEY=
-
XIAOMI Global Manufacturer : Must be set, if not available, fill in the blank
--variable XIAOMI_GLOBAL_APPID= --variable XIAOMI_GLOBAL_APPKEY=
-
XIAOMI Manufacturer : Must be set, if not available, fill in the blank
--variable XIAOMI_APPID= --variable XIAOMI_APPKEY=
-
Honor Manufacturer : Must be set, if not available, fill in the blank
--variable HONOR_APPID=
-
ENGAGELAB_PRIVATES_CHANNEL: Optional,the default value is
developer-default
.--variable ENGAGELAB_PRIVATES_CHANNEL=your_channel
-
ENGAGELAB_PRIVATES_PROCESS: Optional,the default value is
:remote
.--variable ENGAGELAB_PRIVATES_PROCESS=:your_process
-
goole Manufacturer :
- If necessary, manually copy the google-services.json file to the project's
app
folder. If it does not exist, do not process it. - Add under dependencies in the project build.gradle file:
buildscript { dependencies { classpath 'com.google.gms:google-services:4.3.8' } }
- Add under dependencies in the
build.gradle
file under the project'sapp
folder:
// google push need apply plugin: 'com.google.gms.google-services'
- Add under the project repositories.gradle file:
google() mavenCentral()
- If necessary, manually copy the google-services.json file to the project's
-
Huawei manufacturer :
- If necessary, manually copy the agconnect-services.json file to the project's
app
floder. If it does not exist, do not process it. - Add under dependencies in the project's build.gradle file:
buildscript { dependencies { classpath 'com.huawei.agconnect:agcp:1.6.0.300' } }
- Add under dependencies the build.gradle file in the project's
app
folder:
// huawei push need apply plugin: 'com.huawei.agconnect'
- Add the following code under the project's
repositories.gradle
file:
google() mavenCentral() maven { url 'https://developer.huawei.com/repo/' }
- If necessary, manually copy the agconnect-services.json file to the project's