[英]React native Cloudkit push notifications in android
How to register for cloudkit push notifications in react-native android? 如何在react-native android中注册cloudkit推送通知?
Thanks! 谢谢!
I'm not sure what the influence of react native is, but generally speaking CloudKit would function like this: 我不确定react native的影响是什么,但通常来说CloudKit的功能如下:
If you are using the webservice api, then you can only modify subscriptions. 如果使用的是webservice api,则只能修改订阅。 You can not register for a subscription. 您无法注册订阅。 See: https://developer.apple.com/library/ios/documentation/DataManagement/Conceptual/CloutKitWebServicesReference/Introduction/Introduction.html 请参阅: https : //developer.apple.com/library/ios/documentation/DataManagement/Conceptual/CloutKitWebServicesReference/Introduction/Introduction.html
If you are using the javascript api, then you can also subscribe. 如果您使用的是JavaScript API,那么您也可以订阅。 See https://developer.apple.com/library/ios/documentation/CloudKitJS/Reference/CloudKitJSTypesReference/index.html#//apple_ref/javascript/struct/CloudKit.Subscription 请参阅https://developer.apple.com/library/ios/documentation/CloudKitJS/Reference/CloudKitJSTypesReference/index.html#//apple_ref/javascript/struct/CloudKit.Subscription
I assume that the javascript subscription will only work as long as your application is active and your created subscription is active. 我认为,只有在您的应用程序处于活动状态并且您创建的订阅处于活动状态时,JavaScript订阅才会起作用。 I have no experience with this, so I could be wrong. 我对此没有经验,所以我可能是错的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.