简体   繁体   中英

React native Cloudkit push notifications in android

How to register for cloudkit push notifications in react-native android?

Thanks!

I'm not sure what the influence of react native is, but generally speaking CloudKit would function like this:

If you are using the webservice api, then you can only modify subscriptions. You can not register for a subscription. See: 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. See 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. I have no experience with this, so I could be wrong.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM