Skip to content

Commit 33caeb0

Browse files
authored
Update README.md
1 parent 3b284cb commit 33caeb0

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff 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。
2145
private boolean shutdownToast = false;

0 commit comments

Comments
 (0)