Ashish
Ashish

Reputation: 197

ios push notification/ message without device token

I'm trying to send a push notification or a message from my IOT button to all the users who have installed my iOS and android app. Is it possible to do it, given that I don't have the user's device tokens with me?

Upvotes: 2

Views: 1492

Answers (2)

vinit tiwari
vinit tiwari

Reputation: 1

Alternatively(For Send notification without device token to everyone) You can use "Topic"

  1. Make every user subscribe to topic in your android app using

FirebaseMessaging.getInstance.subscribeToTopic("")

  1. Now using FCM library code send notification to those who subscribed to your topics. As everyone has subscribed so everybody will get notification.

Note: Code for send notification to subscribed you can google it.

This is my first answer. Hope it will help. njy coding.

Upvotes: 0

Jaimin Vyas
Jaimin Vyas

Reputation: 114

I think it is not possible to send push notification w/o device token. Because IOT does not recognise for which device send push notification.

Upvotes: 1

Related Questions