卡卡LL
卡卡LL
  • 发布:2024-06-05 18:35
  • 更新:2024-06-05 18:35
  • 阅读:34

plus api如何获取iOS的UNAuthorizationStatus枚举

分类:Native.js

let UNUserNotificationCenter = plus.ios.import("UNUserNotificationCenter");
let center = UNUserNotificationCenter.currentNotificationCenter();
let settings = plus.ios.invoke( center, 'notificationSettings');
let authorizationStatus = plus.ios.getAttribute(settings,'authorizationStatus')

上面的代码我获取到了push的授权情况,要与UNAuthorizationStatus的枚举比较,怎么写这个比较了

2024-06-05 18:35 负责人:无 分享
已邀请:

要回复问题请先登录注册