File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,32 @@ react-native link
1414
1515#### Android
1616
17+ - 配置 AndroidManifest,加入 ` meta-data ` 部分
18+ ```
19+ ...
20+ <meta-data android:name="JPUSH_CHANNEL" android:value="${APP_CHANNEL}" />
21+ <meta-data android:name="JPUSH_APPKEY" android:value="${JPUSH_APPKEY}" />
22+ ...
23+ ```
24+ - 配置 build.gradle,将下列配置部分替换成自己的。
25+ ```
26+ defaultConfig {
27+ applicationId "你的 application id"
28+ minSdkVersion 16
29+ targetSdkVersion 22
30+ versionCode 1
31+ versionName "1.0"
32+ ndk {
33+ abiFilters "armeabi-v7a", "x86"
34+ }
35+ manifestPlaceholders = [
36+ JPUSH_APPKEY: "你的 appKey", //在此替换你的APPKey
37+ APP_CHANNEL: "developer-default" //应用渠道号
38+ ]
39+ }
40+ ```
1741
18- 安装完毕后, 在 MainApplication 中加上 JMessagePackage 即可,JMessagePackage 有一个参数,设置是否弹出 toast。
42+ 在 MainApplication 中加上 JMessagePackage 即可,JMessagePackage 有一个参数,设置是否弹出 toast。
1943```
2044// 如果设置为 true,则不弹出 toast。
2145private boolean shutdownToast = false;
You can’t perform that action at this time.
0 commit comments