Skip to content

Commit

Permalink
ios 更新到3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
weiry committed Aug 13, 2020
1 parent 59834d5 commit 54d760f
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 24 deletions.
56 changes: 54 additions & 2 deletions Plugins/iOS/JPUSHService.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/

#define JPUSH_VERSION_NUMBER 3.2.8
#define JPUSH_VERSION_NUMBER 3.3.4

#import <Foundation/Foundation.h>

Expand All @@ -22,6 +22,7 @@
@class UNNotification;
@protocol JPUSHRegisterDelegate;
@protocol JPUSHGeofenceDelegate;
@protocol JPushInMessageDelegate;

typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq);
typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq, BOOL isBind);
Expand Down Expand Up @@ -219,12 +220,27 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {

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


/*!
* @abstract 处理收到的 APNs 消息
*/
+ (void)handleRemoteNotification:(NSDictionary *)remoteInfo;

/*!
* @abstract 向极光服务器提交Token
*
* @param voipToken 推送使用的Voip Token
*/
+ (void)registerVoipToken:(NSData *)voipToken;


/*!
* @abstract 处理收到的 Voip 消息
*
* @param remoteInfo 下发的 Voip 内容
*/
+ (void)handleVoipNotification:(NSDictionary *)remoteInfo;


/*!
* @abstract 检测通知授权状态
* @param completion 授权结果通过status值返回,详见JPAuthorizationStatus
Expand Down Expand Up @@ -618,6 +634,22 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
*/
+ (void)setLogOFF;

/*!
* @abstract 设置SDK地理位置权限开关
*
* @discussion 关闭地理位置之后,SDK地理围栏的相关功能将受到影响,默认是开启。
*
*/
+ (void)setLocationEanable:(BOOL)isEanble;

/*!
* @abstract 设置应用内消息的代理
*
* @discussion 遵守JPushInMessageDelegate的代理对象
*
*/
+ (void)setInMessageDelegate:(id<JPushInMessageDelegate>)inMessageDelegate;

///----------------------------------------------------
///********************下列方法已过期********************
///**************请使用新版tag/alias操作接口**************
Expand Down Expand Up @@ -710,3 +742,23 @@ callbackSelector:(SEL)cbSelector
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didExitRegion:(NSDictionary *)userInfo error:(NSError *)error;

@end

@protocol JPushInMessageDelegate <NSObject>

@optional
/**
*是否允许应用内消息弹出,默认为允许
*/
- (BOOL)jPushInMessageIsAllowedInMessagePop;

/**
*应用内消息已弹出
*/
- (void)jPushInMessageAlreadyPop;

/**
*应用内消息已消失
*/
- (void)jPushInMessageAlreadyDisapperar;

@end
Binary file not shown.
Binary file removed Plugins/iOS/jpush-ios-3.2.8.a
Binary file not shown.
Binary file added Plugins/iOS/jpush-ios-3.3.4.a
Binary file not shown.
35 changes: 13 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,20 @@
1. 生成 iOS 工程,并打开该工程。
2. 添加必要的框架:

- CoreFoundation.framework
- CFNetwork.framework
- CoreFoundation.framework
- CoreTelephony.framework
- SystemConfiguration.framework
- CoreGraphics.framework
- Foundation.framework
- UIKit.framework
- Security.framework
- libz.tbd(Xcode 7 以下版本是 libz.dylib)
- AdSupport.framework(获取 IDFA 需要;如果不使用 IDFA,请不要添加)
- UserNotifications.framework(Xcode 8 及以上)
- libresolv.tbd(JPush 2.2.0 及以上版本需要,Xcode 7 以下版本是 libresolv.dylib)
- WebKit.framework(JPush 3.3.0 及以上版本需要)

- CFNetwork.framework

- SystemConfiguration.framework

- CoreTelephony.framework

- CoreGraphics.framework

- Foundation.framework

- UIKit.framework

- Security.framework

- libz.tbd // Xcode7 之前为 libz.dylib 之后为 libz.tbd。

- AdSupport.framework // 如需使用广告标识符 IDFA 则添加该库,否则不添加。

- libresolv.tbd (JPush 2.2.0及以上版本需要, Xcode7以下版本是libresolv.dylib)

- UserNotifications.framework (Xcode8及以上)


Expand Down

0 comments on commit 54d760f

Please sign in to comment.