We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
iOS 的 example 这里 这句 entity.types = JPAuthorizationOptionNone; 害人不浅,真机怎么都没有弹通知权限。
entity.types = JPAuthorizationOptionNone;
// APNS JPUSHRegisterEntity * entity = [[JPUSHRegisterEntity alloc] init]; if (@available(iOS 12.0, *)) { entity.types = JPAuthorizationOptionNone; //JPAuthorizationOptionAlert|JPAuthorizationOptionBadge|JPAuthorizationOptionSou//nd|JPAuthorizationOptionProvidesAppNotificationSettings; } [JPUSHService registerForRemoteNotificationConfig:entity delegate:self];
再看看文档:https://docs.jiguang.cn/jpush/client/iOS/ios_jghgzy
需要改成下面这样就可以获取到通知权限了:
entity.types = JPAuthorizationOptionAlert|JPAuthorizationOptionBadge|JPAuthorizationOptionSound;
没弹窗
包括 Android 或 iOS 的日志:
The text was updated successfully, but these errors were encountered:
good~ 不能起到很好示范作用的example,真是很浪费时间。
Sorry, something went wrong.
No branches or pull requests
你的运行环境
期望效果
iOS 的 example 这里 这句
entity.types = JPAuthorizationOptionNone;
害人不浅,真机怎么都没有弹通知权限。再看看文档:https://docs.jiguang.cn/jpush/client/iOS/ios_jghgzy
需要改成下面这样就可以获取到通知权限了:
实际效果
没弹窗
重现步骤
Debug logs
包括 Android 或 iOS 的日志:
The text was updated successfully, but these errors were encountered: