Back

Push notification

  • 0
  • Messaging
  • Apple
nishp77
5 May, 2024, 18:36

I'm looking to send a notification from backend to specific device. However I was looking at the docs and got confused!!

I have 2 different apps, so I have already added the providers.

TL;DR
Developers are confused about using topics and targets for push notifications in Firebase. They want to send notifications to specific users only, not topics. There is no need to define a topic for this purpose. To send notifications to specific users, developers should utilize the targets parameter instead of topics. They have already added the necessary providers for their two different apps.
nishp77
5 May, 2024, 18:37

Do i have to use topic or targets parameter?

nishp77
5 May, 2024, 18:38

Also atm i have no topic defined so is that wrong?

nishp77
5 May, 2024, 18:39

personally I don't need topic because all i want is to notify only a specific user

darShan
5 May, 2024, 18:49

Topics are similar to the topics you subscribe to on Firebase. Targets are the users/subscribers which you must add on appwrite on a session creation if they are not already added.

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