简体   繁体   English

在Android中反应本机Cloudkit推送通知

[英]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.

相关问题 如何在 React Native 中实现 Twilio android 推送通知? - How to implement Twilio android push notifications in React Native? 使用React-Native推送通知 - Push notifications using React-Native 坚持使用 React-Native 推送通知 - Stuck with React-Native Push Notifications 停止计划的推送通知在反应本机推送通知中 - Stopping Scheduled Push Notification In react native push notifications React Native - 在接收本地推送通知时清除以前的推送通知 - React Native - Clear previous push notifications on receiving local push notification 使用条件进行React Native-OneSignal Push Notifications概念设置 - React Native - OneSignal Push Notifications concept setup with conditioning 在React Native上使用Expo发送多个推送通知 - Sending multiple push notifications using Expo on React Native 如何从 React Native Expo 推送通知取消订阅(删除监听器) - How to unsubscribe(remove a listener) from React Native Expo push notifications 有没有办法在新通知到达时删除已发送的通知? 反应本机推送通知 - Is there any way to remove delivered notifications upon arrival of a new one? react-native-push-notifications 有没有人使用 react-native-push-notification 和 firebase 云消息设置推送通知? [等候接听] - Has anyone setup Push notifications using react-native-push-notification and firebase cloud messaging? [on hold]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM