Back

Help understanding push notifications

  • 0
  • General
Ireneus
26 Feb, 2024, 21:15

The realtime API is not really working in a backgroundworker in flutter so I guess it's not possible

TL;DR
Developers are discussing implementing push notifications. They mention the importance of silent push notifications for real-time processing in the background and suggest utilizing them for updates. They talk about managing notifications with server functions, using silent pushes to prompt app updates, and the limitations of the Flutter realtime API. They share resources for push notification implementation and recommend exploring real-time API for some scenarios. If you have questions about push notifications, consider looking into available resources and documentation provided by Apple and Appwrite for in-depth understanding.
Swinkid
26 Feb, 2024, 21:15

ooo i didnt know that, you could use silent pushes to tell the app to update i believe

Binyamin
26 Feb, 2024, 21:15

Yes, for that the Push Notification are great

Binyamin
26 Feb, 2024, 21:16

But If you're looking for a push notification in which you're listening in the app, and proceed accordingly it's not what it is.

D5
26 Feb, 2024, 21:16

For in app messages, you can use the traditional realtime feature that appwrite has

D5
26 Feb, 2024, 21:17

Notifications are for when the app is closed

Swinkid
26 Feb, 2024, 21:17

This. And when the app pauses, you use a push to the app so the user re-opens and realtime continues

Binyamin
26 Feb, 2024, 21:17

But he would like to have real-time processing in the background

Binyamin
26 Feb, 2024, 21:17

For this, there's a need for silent push notifications.

Binyamin
26 Feb, 2024, 21:18

The newly created Messaging product is for sending message using PN.

Ireneus
26 Feb, 2024, 21:18

What's silent push notifications

Swinkid
26 Feb, 2024, 21:19

Apple has a good description

Swinkid
26 Feb, 2024, 21:19

"If your app’s server-based content changes infrequently or at irregular intervals, you can use background notifications to notify your app when new content becomes available. A background notification is a remote notification that doesn’t display an alert, play a sound, or badge your app’s icon. It wakes your app in the background and gives it time to initiate downloads from your server and update its content."

D5
26 Feb, 2024, 21:19

But why do you need realtime with the app closed? 👀

Swinkid
26 Feb, 2024, 21:19

because say you've got a chat app, user a and b can both talk "in realtime" when theyve got the app both open

Swinkid
26 Feb, 2024, 21:20

if one has it closed, the other person sends an update and push notifies the second client

Binyamin
26 Feb, 2024, 21:20

If you want to fetch something for the user for example Or You want to change something in the background

D5
26 Feb, 2024, 21:21

In such case as you said, you can update with push notifications

Swinkid
26 Feb, 2024, 21:21

yeah thats my point

D5
26 Feb, 2024, 21:22

Yes, this is the most valid specific case

Shiba
26 Feb, 2024, 21:23

Is the massaging live ? so that i can update my server ?

Swinkid
26 Feb, 2024, 21:24

no, with 1.5 release sometime in march

Ireneus
26 Feb, 2024, 21:26

Thanks for the quick replies it helped me a lot

Swinkid
26 Feb, 2024, 21:26

no problemo 🙂

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more