hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.17k stars 2.76k forks source link

How to Add Push Notifications to a Flutter App using hasura ????? #8145

Open AsmaTrabelsi opened 2 years ago

efstathiosntonas commented 2 years ago

You could create events and send a notification to the devices you want based on event type, eg. when a user likes a post, listen on insert events on that table (post_likes or whatever) and build your logic to fetch the user's device token, build your notification body and send it over.

AsmaTrabelsi commented 2 years ago

i think hasura don't support notification for mobile app !!

Bessonov commented 2 years ago

Why should it? But hasura has flexibility to trigger backend actions or you can use websocket + local notifications. It's up to you.