iOS - 点击通知不走代理方法

830ac7964721f3a2921d
2018-11-12 06:49 706 0

在iOS12 xcode10下设置了JPUSHRegisterDelegate 代理

但是点击通知栏 所有的代理方法都不走

```

  • (void)jpushNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(NSInteger options))completionHandler;

  • (void)jpushNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler;

  • (void)jpushNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(nullable UNNotification *)notification NS_AVAILABLE_IOS(12.0);

2个回答

热门排序
  • 用户5474771
    2020-02-11 08:15

    我也遇到了同样的问题 不知道是否与环信推送冲突

  • iOS 10 以上点击通知栏的消息会走 didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler 你是如何实现的方法,请参 展示全部