Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPUSHRegisterDelegate #5

Open
zhiliang729 opened this issue Nov 24, 2016 · 1 comment
Open

JPUSHRegisterDelegate #5

zhiliang729 opened this issue Nov 24, 2016 · 1 comment

Comments

@zhiliang729
Copy link

JPUSHRegisterDelegate

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

UNUserNotificationCenterDelegate

optional public func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Swift.Void)

options 不能使用NSInteger 否则 swift中无法使用UNNotificationPresentationOptionsNone, 导致ios10中,app在前台的时候,如果不想有提示(badge, alert, sound),而是自定义直接提示就不好实现

@zhiliang729
Copy link
Author

建议将NSInteger 改为UNNotificationPresentationOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant