Skip to content

Commit e638f88

Browse files
author
Hevin
committed
Merge branch 'dev'
2 parents b23d99a + 721d4cb commit e638f88

File tree

10 files changed

+13
-26
lines changed

10 files changed

+13
-26
lines changed

Doc/AndroidAPI.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
# Android API
22

33
- [停止与恢复推送服务](#停止与恢复推送服务)
4-
- [StopJPush()](#stopjpush)
5-
- [ResumePush()](#resumepush)
6-
- [IsPushStopped()](#ispushstopped)
74
- [清除通知](#清除通知)
8-
- [ClearAllNotifications()](#clearallnotifications)
9-
- [ClearNotificationById(int notiId)](#clearnotificationbyidint-notiid)
105
- [设置允许推送时间](#设置允许推送时间)
11-
- [SetPushTime(string days, int startHour, int endHour)](#setpushtimestring-days-int-starthour-int-endhour)
126
- [设置通知静默时间](#设置通知静默时间)
13-
- [SetSilenceTime(int startHour, int startMinute, int endHour, int endMinute)](#setsilencetimeint-starthour-int-startminute-int-endhour-int-endminute)
147
- [申请权限接口(用于 Android 6.0 及以上系统)](#申请权限接口用于-android-60-及以上系统)
15-
- [RequestPermission()](#requestpermission)
168
- [通知栏样式定制](#通知栏样式定制)
17-
- [SetBasicPushNotificationBuilder()](#setbasicpushnotificationbuilder)
18-
- [SetCustomPushNotificationBuilder()](#setcustompushnotificationbuilder)
199
- [设置保留最近通知条数](#设置保留最近通知条数)
20-
- [SetLatestNotificationNumber(int num)](#setlatestnotificationnumberint-num)
2110
- [本地通知](#本地通知)
22-
- [AddLocalNotification(int builderId, string content, string title, int notiId, int broadcastTime, string extrasJsonStr)](#addlocalnotification)
23-
- [RemoveLocalNotification(int notiId)](#removelocalnotificationnotiid)
24-
- [ClearLocalNotifications()](#clearlocalnotifications)
2511

2612
## 停止与恢复推送服务
2713

@@ -285,4 +271,4 @@ JPushBinding.RemoveLocalNotification(1); // 1:特定通知的 Notification
285271

286272
```csharp
287273
JPushBinding.ClearLocalNotifications();
288-
```
274+
```

Plugins/Android/AndroidManifest.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
android:label="@string/app_name"
3333
android:icon="@drawable/app_icon">
3434

35-
<!-- For test only. 测试的主程序 -->
35+
<!-- For test only. 测试的主程序 start -->
3636
<activity
3737
android:name="cn.jiguang.unity.push.UnityPluginActivity"
3838
android:configChanges="orientation|keyboardHidden|screenSize"
@@ -42,6 +42,7 @@
4242
<category android:name="android.intent.category.LAUNCHER"/>
4343
</intent-filter>
4444
</activity>
45+
<!-- For test only. 测试的主程序 end -->
4546

4647
<activity
4748
android:name="cn.jpush.android.ui.PushActivity"
@@ -82,7 +83,6 @@
8283
<action android:name="cn.jpush.android.intent.REPORT"/>
8384
<action android:name="cn.jpush.android.intent.PushService"/>
8485
<action android:name="cn.jpush.android.intent.PUSH_TIME"/>
85-
8686
</intent-filter>
8787
</service>
8888

@@ -105,7 +105,6 @@
105105

106106
<data android:scheme="package"/>
107107
</intent-filter>
108-
109108
</receiver>
110109

111110
<receiver android:name="cn.jpush.android.service.AlarmReceiver"/>
@@ -149,7 +148,10 @@
149148
android:name="cn.jpush.android.service.DataProvider"
150149
android:exported="true" />
151150

152-
<!-- Required. Enable it you can get statistics data with channel. -->
151+
<!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。
152+
例如:
153+
发到 Google Play 的 APK 可以设置为 google-play;
154+
发到其他市场的 APK 可以设置为 xxx-market。 -->
153155
<meta-data
154156
android:name="JPUSH_CHANNEL"
155157
android:value="developer-default"/>
13.4 KB
Binary file not shown.
-310 KB
Binary file not shown.
332 KB
Binary file not shown.
-183 KB
Binary file not shown.
187 KB
Binary file not shown.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JPush Unity Plugin
22

3-
[![release](https://img.shields.io/badge/release-3.1.3-blue.svg)](https://github.com/jpush/jpush-unity3d-plugin/releases)
3+
[![release](https://img.shields.io/badge/release-3.1.4-blue.svg)](https://github.com/jpush/jpush-unity3d-plugin/releases)
44
[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-green.svg)](https://github.com/jpush/jpush-unity3d-plugin)
55

66
这是极光官方支持的 JPush Unity 插件(Android &amp; iOS)。
@@ -12,14 +12,13 @@
1212
### Android
1313

1414
1. 替换 AndroidManifest.xml 里的包名。
15-
2. 将 AndroidManifest.xml 中的 JPUSH_APPKEY 值替换成极光控制台应用详情中的 AppKey 值。
16-
3. 配置项目里的包名:在 Unity 中选择 *File---Build Settings---Player Settings*,将 *Identification* 选项下的 *Bundle Idenifier* 设置为应用的包名。
17-
4. 配置项目的图标。
15+
1. 将 AndroidManifest.xml 中的 JPUSH_APPKEY 值替换成极光控制台应用详情中的 AppKey 值。
16+
1. 配置项目里的包名:在 Unity 中选择 *File---Build Settings---Player Settings*,将 *Identification* 选项下的 *Bundle Idenifier* 设置为应用的包名。
1817

1918
### iOS
2019

2120
1. 生成 iOS 工程,并打开该工程。
22-
2. 添加必要的框架:
21+
1. 添加必要的框架:
2322

2423
- CoreFoundation.framework
2524
- CFNetwork.framework
@@ -34,7 +33,7 @@
3433
- libresolv.tbd
3534
- UserNotifications.framework
3635

37-
3. 在 UnityAppController.mm 中添加头文件 `JPUSHService.h`
36+
1. 在 UnityAppController.mm 中添加头文件 `JPUSHService.h`
3837

3938
```Objective-C
4039
#import "JPUSHService.h"
@@ -48,7 +47,7 @@
4847
@end
4948
```
5049

51-
4. 在 UnityAppController.mm 的下列方法中添加以下代码:
50+
1. 在 UnityAppController.mm 的下列方法中添加以下代码:
5251

5352
```Objective-C
5453
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

0 commit comments

Comments
 (0)