Android Question Send B4XObject with FirebaseNotifications

  • Thread starter Thread starter Deleted member 103
  • Start date Start date
  • Similar Threads Similar Threads Similar Threads
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
 
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
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
I would suggest to send just the downloadcoordinates
 
Upvote 0
Back
Top