Android Question How to force other devices to refresh their display?

toby

Well-Known Member
Licensed User
Longtime User
I have some devices
1. running the same B4A app
2. in the same wifi network
3. Physically nearby, within 5 meters radius
4. periodically, using a timer with 1 minute interval, update their screen display by retrieving data from the remote mysql database to pick up the changes made by other users.

This works fine most of the time. However, from time to time, when a user makes some particular change, I want this change to be reflected immediately, instead of waiting for the timer event, on other users' device.

Could someone kindly give me some guidance, please.

TIA
 

DonManfred

Expert
Licensed User
Longtime User
send a pushnotification from your server to all devices to update their display. Do an update of display on receiving the message.
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
send a pushnotification from your server to all devices to update their display. Do an update of display on receiving the message.
As far as I understand, users have to manually refresh it after receiving the notification.

I prefer that the update is done automatically. Any other suggestions, please.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I prefer that the update is done automatically. Any other suggestions, please.
Code it! It is up to you what happens when a notification arrives. You can do the update then... by code...
I don´t see a reason why the user have to do something.
 
Last edited:
Upvote 0
Top