D Deleted member 103 Guest Jan 3, 2017 #1 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
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 Jan 3, 2017 #2 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
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.
D Deleted member 103 Guest Jan 3, 2017 #3 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 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?
DonManfred Expert Licensed User Longtime User Jan 3, 2017 #4 I would suggest to send just the downloadcoordinates Upvote 0