B4J Question B4J notifications to B4A without external message server

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

for an home automation solution, seeking advice how to send notifications from B4J application to B4A without using an external message server, i.e. Firebase, Google.
The B4J application is running on a Raspberry Pi (as a process) and acts as an interface to Domoticz but also to ESP8266 devices with connected sensors.
Communication between B4J and B4A via B4XSerializer.

In B4A the standard Android notification to be used.

Looked up various threads, but confused on what to use esp. for B4A Notification.
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Are they rpi and mobile on same network? ( local wifi)? If yes, you can use UDP to share info between them; a service to listen to udp on B4A to open a notification window
If not, the rpi can act as a http server (with public IP) and B4A can establish a socket to Rpi or query for an http page to read a state, and raise a notification, or rpi send a e-mail to a mail account that B4A is querying every x seconds, etc..or

Do you need instant notification on B4?
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Thanks for the options. The rpi and clients are on the same local network.

EDIT:
Explored further and will go for the Custom Websocket Based Push Framework and then use for B4A the NotificationManager with a Notification Logger.
Communication flow:
Domoticz to send information to the B4J app running on the Domoticz server. The B4J App to notify all connected B4A devices.

Will keep posted on the progress...
 
Last edited:
Upvote 0
Top