iOS Question Firebase notification for IOS and Android

tzfpg

Active Member
Licensed User
Longtime User
I write both IOS and Android app then I like to ask about send notification IOS to Android or Android to IOS using firebase notification, is it can directly send?

And firebase notification IOS version topic is need ios_ prefix but Android didn't need prefix.

Thanks.
 

tufanv

Expert
Licensed User
Longtime User
What do you mean by directly send ?=
I write both IOS and Android app then I like to ask about send notification IOS to Android or Android to IOS using firebase notification, is it can directly send?

And firebase notification IOS version topic is need ios_ prefix but Android didn't need prefix.

Thanks.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The B4J code used to send messages can be called from any other B4A or B4i. It is a simple http request. This means that you will need to include your API-KEY in the client app. Make sure to put it as a process global variable so it will be obfuscated.

And firebase notification IOS version topic is need ios_ prefix but Android didn't need prefix.
Send two messages. One with the prefix and one without it.
 
Upvote 0

tzfpg

Active Member
Licensed User
Longtime User
The B4J code used to send messages can be called from any other B4A or B4i. It is a simple http request. This means that you will need to include your API-KEY in the client app. Make sure to put it as a process global variable so it will be obfuscated.


Send two messages. One with the prefix and one without it.

That's mean every topic need to subscribe two version right? One with prefix and one without prefix. No matter what device is using also can receive the message. Is it procedure is correct?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Mean ios direct send notification to android or Android direct send to ios, no need server.
yes you dont need any server.
That's mean every topic need to subscribe two version right? One with prefix and one without prefix. No matter what device is using also can receive the message. Is it procedure is correct?
if your android apps are subscribed to general and ios apps are subscribed to ios_general that means if you send to both general and ios_general as Erel Said, all the devices will get the msg.
 
Upvote 0
Top