・プッシュ通知受信 アプリが起動中に受信した場合
-(void)application:(UIApplication *) application
didReceivedRemoteNotification:(NSDirctionary *)usetInfo {
}
・プッシュ通知受信-アプリがフォアグランドの状態である場合に、通知表示前にコールされる
-(void)userNotificationCenter:(UNUserNotificationCenter *)center
willPresentNotification:(UNNotification *)notification
withCompletionHandler:(void(^)(UNNotificationPresentationOptions))completionHandler{
NSLog(@"Push通知受信");
}
・プッシュ通知受信-ユーザーが通知をタップ後にコールされる
-(void)userNotificationCenter:(UNUserNotificationCenter *)center
didReceiveNotificationResponse:(UNNotificationResponse *)response
withCompletionHandler:(void(^))completionHandler{
NSLog(@"Push通知受信");
}
・アプリ未起動時のプッシュ通知タップイベント受取
func application(_:didFinishLaunchingWithOptions:)
-(BOOL) application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
}