commit | author | age
|
47f8fd
|
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> |
|
10 |
#import "WAIPush.h" |
|
11 |
|
|
12 |
@interface WAPushProxy : NSObject |
|
13 |
|
|
14 |
// 注册通知 |
|
15 |
+ (void)application:(UIApplication *)application initPushWithDelegate:(id<UNUserNotificationCenterDelegate>)delegate; |
|
16 |
|
|
17 |
// 调用过用户注册通知方法之后执行 |
|
18 |
+ (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings; |
|
19 |
|
|
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 |
// 接收本地通知 |
|
28 |
+ (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification; |
|
29 |
// 接收远程通知 |
|
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 |
// 通知的点击事件 |
|
37 |
+ (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler; |
|
38 |
|
|
39 |
// 程序进入后台 |
|
40 |
+ (void)applicationDidEnterBackground:(UIApplication *)application; |
|
41 |
|
|
42 |
// 程序将进入前台 |
|
43 |
+ (void)applicationWillEnterForeground:(UIApplication *)application; |
|
44 |
|
|
45 |
// 程序进入前台 |
|
46 |
+ (void)applicationDidBecomeActive:(UIApplication *)application; |
|
47 |
|
|
48 |
@end |