如何在react-native android中注册cloudkit推送通知?
谢谢!
最佳答案
我不确定 React Native 的影响是什么,但一般来说 CloudKit 会像这样运行:
如果您使用的是 webservice api,那么您只能修改订阅。您不能注册订阅。请参阅:https://developer.apple.com/library/ios/documentation/DataManagement/Conceptual/CloutKitWebServicesReference/Introduction/Introduction.html
如果您使用的是 javascript api,那么您也可以订阅。参见 https://developer.apple.com/library/ios/documentation/CloudKitJS/Reference/CloudKitJSTypesReference/index.html#//apple_ref/javascript/struct/CloudKit.Subscription
我假设只有当您的应用程序处于 Activity 状态并且您创建的订阅处于 Activity 状态时,javascript 订阅才会起作用。我没有这方面的经验,所以我可能是错的。
关于javascript - 在 android 中 react native Cloudkit 推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35459008/