Skip to content

Commit a50bafc

Browse files
committed
Update iOS UIWebView to WKWebView
1 parent 60176c1 commit a50bafc

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

src/ios/lib/JPUSHService.h

100644100755
Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
1010
*/
1111

12-
#define JPUSH_VERSION_NUMBER 3.2.6
12+
#define JPUSH_VERSION_NUMBER 3.3.3
1313

1414
#import <Foundation/Foundation.h>
1515

@@ -48,6 +48,13 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
4848
JPAuthorizationOptionAnnouncement NS_AVAILABLE_IOS(13.0) = (1 << 7) , //The ability for Siri to automatically read out messages over AirPods.
4949
};
5050

51+
typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
52+
JPAuthorizationNotDetermined = 0, // The user has not yet made a choice regarding whether the application may post user notifications.
53+
JPAuthorizationStatusDenied, // The application is not authorized to post user notifications.
54+
JPAuthorizationStatusAuthorized, // The application is authorized to post user notifications.
55+
JPAuthorizationStatusProvisional NS_AVAILABLE_IOS(12.0), // The application is authorized to post non-interruptive user notifications.
56+
};
57+
5158
/*!
5259
* 通知注册实体类
5360
*/
@@ -212,12 +219,38 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
212219

213220
+ (void)registerDeviceToken:(NSData *)deviceToken;
214221

215-
216222
/*!
217223
* @abstract 处理收到的 APNs 消息
218224
*/
219225
+ (void)handleRemoteNotification:(NSDictionary *)remoteInfo;
220226

227+
/*!
228+
* @abstract 向极光服务器提交Token
229+
*
230+
* @param voipToken 推送使用的Voip Token
231+
*/
232+
+ (void)registerVoipToken:(NSData *)voipToken;
233+
234+
235+
/*!
236+
* @abstract 处理收到的 Voip 消息
237+
*
238+
* @param remoteInfo 下发的 Voip 内容
239+
*/
240+
+ (void)handleVoipNotification:(NSDictionary *)remoteInfo;
241+
242+
243+
/*!
244+
* @abstract 检测通知授权状态
245+
* @param completion 授权结果通过status值返回,详见JPAuthorizationStatus
246+
*/
247+
+ (void)requestNotificationAuthorization:(void (^)(JPAuthorizationStatus status))completion;
248+
249+
/*!
250+
* @abstract 跳转至系统设置页面,iOS8及以上有效
251+
*/
252+
+ (void)openSettingsForNotification:(void (^)(BOOL success))completionHandler NS_AVAILABLE_IOS(8_0);
253+
221254
/*!
222255
* Tags操作接口
223256
* 支持增加/覆盖/删除/清空/查询操作
@@ -600,6 +633,14 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
600633
*/
601634
+ (void)setLogOFF;
602635

636+
/*!
637+
* @abstract 设置SDK地理位置权限开关
638+
*
639+
* @discussion 关闭地理位置之后,SDK地理围栏的相关功能将受到影响,默认是开启。
640+
*
641+
*/
642+
+ (void)setLocationEanable:(BOOL)isEanble;
643+
603644
///----------------------------------------------------
604645
///********************下列方法已过期********************
605646
///**************请使用新版tag/alias操作接口**************
@@ -662,6 +703,13 @@ callbackSelector:(SEL)cbSelector
662703
*/
663704
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(UNNotification *)notification NS_AVAILABLE_IOS(12.0);
664705

706+
/**
707+
* 监测通知授权状态返回的结果
708+
* @param status 授权通知状态,详见JPAuthorizationStatus
709+
* @param info 更多信息,预留参数
710+
*/
711+
- (void)jpushNotificationAuthorization:(JPAuthorizationStatus)status withInfo:(NSDictionary *)info;
712+
665713
@end
666714

667715
@protocol JPUSHGeofenceDelegate <NSObject>

0 commit comments

Comments
 (0)