commit | author | age
|
537198
|
1 |
// |
H |
2 |
// WAPushProxy.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by hank on 2017/4/1. |
|
6 |
// Copyright © 2017年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
2a54d4
|
10 |
#import <WASdkIntf/WAIPush.h> |
537198
|
11 |
|
H |
12 |
@interface WAPushProxy : NSObject |
|
13 |
|
|
14 |
// 注册通知 |
|
15 |
+ (void)application:(UIApplication *)application initPushWithDelegate:(id<UNUserNotificationCenterDelegate>)delegate; |
|
16 |
|
|
17 |
// 调用过用户注册通知方法之后执行 |
2a54d4
|
18 |
//+ (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings; |
537198
|
19 |
|
H |
20 |
// 获取deviceToken |
|
21 |
+ (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; |
|
22 |
|
|
23 |
// 注册失败 |
|
24 |
+ (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error; |
|
25 |
|
|
26 |
#pragma mark IOS8 IOS9 Push Notification Receive |
|
27 |
// 接收本地通知 |
2a54d4
|
28 |
//+ (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification; |
537198
|
29 |
// 接收远程通知 |
H |
30 |
+ (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; |
|
31 |
|
|
32 |
#pragma mark IOS10 Push Notification Receive |
|
33 |
//App处于前台接收通知时 |
|
34 |
+ (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler; |
|
35 |
|
|
36 |
// 通知的点击事件 |
b4b831
|
37 |
+ (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler; |
537198
|
38 |
|
H |
39 |
// 程序进入后台 |
|
40 |
+ (void)applicationDidEnterBackground:(UIApplication *)application; |
|
41 |
|
|
42 |
// 程序将进入前台 |
|
43 |
+ (void)applicationWillEnterForeground:(UIApplication *)application; |
|
44 |
|
|
45 |
// 程序进入前台 |
|
46 |
+ (void)applicationDidBecomeActive:(UIApplication *)application; |
|
47 |
|
|
48 |
@end |