Android Question Send B4XObject with FirebaseNotifications

D

Deleted member 103

Guest
Hi,

Can I send and receive a B4XObject via Firebase notifications?

The B4XObject is a list of type stored in a file.

Thanks in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You will need to convert the array of bytes to a string with StringUtils.EncodeBase64. Push notification messages are limited to 4kb (if I remember correctly). Check the string length to see whether it fits.

You will then need to decode it to an array of bytes on the client with StringUtils.DecodeBase64.
 
Upvote 0
D

Deleted member 103

Guest
I do not know what is better to send the file or just a info with download coordinates (firebase storage).
Normally the 4KB should be enough, but you never know exactly.
What do you mean?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I would suggest to send just the downloadcoordinates
 
Upvote 0
Top