5 ms·
How/Does it handle push notifications to iOS/Android/Web? Similar to Firebase?
by fredliu 9y ago
How/Does it handle push notifications to iOS/Android/Web? Similar to Firebase?
- k__ 9y agoAs far as I know GraphQL has subscriptions
- ryanmarsh 9y agoAppSync supports graphql subscriptions on mutations. They’re delivered using to the browser using MQTT.
- k__ 9y agoMQTT via WebSockets? Is this using AWS IoT?
- ryanmarsh 9y agoYes I don’t know.
- fredliu 9y agoah, thanks, that's what i wanted to ask. Since it's MQTT, how does it support iOS when the app is in the background? or it won't support that scenario on iOS? On Android, does it also use MQTT to maintain a connection? instead of using FCM/GCM? On the browser, how's the MQTT connection maintained? does it have service worker support for "offline" use cases?
- ryanmarsh 9y agoI haven’t been able to ascertain that from the docs. There could be different transports for web and iOS. All I know is web uses MQTT over web sockets and the Apollo library is used for offline and cache support.
- fredliu 9y agoThanks for the response. I should have been more specific, what's AppSync's mechanism for push notification for the 3 platforms: FCM (GCM?) for Android? APNs for iOS? HTML5 Push API for browsers?
- k__ 9y agoAh okay :D I don't know, but when using AWS, SNS is the push based solution.
- photoadrian 9y agoThere are other services that do push notifications - most notably, Amazon Pinpoint (for the analytics driven type user segmentation and campaigns) and SNS (for the more automated single push). Similarly, look to Amazon Cognito for user sign-in / sign-up / etc., AWS Lambda and API Gateway for cloud-based API, and other services for machine-learnign, AI, chatbots, database services, analytics, etc. AWS AppSync is only for the data access / offline / real-time component.