Skip to content

Commit 18911c4

Browse files
author
Hevin
committed
Merge branch 'dev'
2 parents a63dd68 + c3c163c commit 18911c4

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.md

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

33
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jpush/jpush-unity3d-plugin)
4-
[![release](https://img.shields.io/badge/release-3.0.3-blue.svg)](https://github.com/jpush/jpush-unity3d-plugin/releases)
4+
[![release](https://img.shields.io/badge/release-3.0.6-blue.svg)](https://github.com/jpush/jpush-unity3d-plugin/releases)
55
[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-lightgrey.svg)](https://github.com/jpush/jpush-unity3d-plugin)
66
[![weibo](https://img.shields.io/badge/weibo-JPush-blue.svg)](http://weibo.com/jpush?refer_flag=1001030101_&is_all=1)
77

88
这是极光官方支持的 JPush Unity 插件(Android & iOS)。
99

1010
## 集成
11-
运行插件目录下的 JPushUnityPlugin_vX.X.X.unitypackage
11+
运行插件目录下的 JPushUnityPlugin_vX.X.X.unitypackage
1212

1313
### Android
1414
- 替换 AndroidManifest.xml 里的包名。
@@ -59,15 +59,15 @@
5959

6060
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1
6161
if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) {
62-
// 可以添加自定义 categories
63-
[JPUSHService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];
62+
// 可以添加自定义 categories
63+
[JPUSHService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];
6464
} else {
65-
// categories 必须为 nil
66-
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert) categories:nil];
65+
// categories 必须为 nil
66+
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert) categories:nil];
6767
}
6868
#else
69-
// categories 必须为 nil
70-
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound |UIRemoteNotificationTypeAlert) categories:nil];
69+
// categories 必须为 nil
70+
[JPUSHService registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound |UIRemoteNotificationTypeAlert) categories:nil];
7171
#endif
7272

7373
/*
@@ -90,7 +90,7 @@
9090
NSString *advertisingId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
9191
[JPUSHService setupWithOption:launchOptions appKey:@"abcacdf406411fa656ee11c3" channel:@"" apsForProduction:NO SadvertisingIdentifier:advertisingId];
9292

93-
return YES;
93+
return YES;
9494
}
9595

9696
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
@@ -132,21 +132,19 @@
132132
### Android
133133
在 Plugins\Android\src 目录下是一些 Java 文件,可以将其引入到 Android 工程中对其进行扩展,重新生成 Jar 包替换掉工程中 Assets\Plugins\Android 目录下的 JPush_Bridge.jar 文件。
134134
135-
> [Android SDK API](/Doc/AndroidAPI.md)
135+
> [Android SDK API](/Doc/AndroidAPI.md)
136136
137137
### iOS
138138
iOS API 在文件 /Plugins/JPushBinding.cs 中,代码 #if UNITY_IPHONE 后面的即为可调用的 iOS API。
139139
140-
> [iOS SDK API](http://docs.jpush.io/client/ios_api/)
140+
> [iOS SDK API](https://docs.jiguang.cn/jpush/client/iOS/ios_api/)
141141
142142
亦可参照以下文档中与 `JPushBinding.cs` 中相同方法名的方法说明:
143143
144144
> [JPush Phonegap Plugin Common API doc](https://github.com/jpush/jpush-phonegap-plugin/blob/master/doc/Common_detail_api.md)
145-
146145
> [JPush Phonegap Plugin iOS API doc](https://github.com/jpush/jpush-phonegap-plugin/blob/master/doc/iOS_API.md)
147146
148147
149-
150148
## 更多
151149
- [JPush 官网文档](http://docs.jiguang.cn/guideline/jmessage_guide/)
152150
<!-- - 有问题可访问[极光社区](http://community.jpush.cn/)搜索和提问。 -->

0 commit comments

Comments
 (0)