B4J Question [B4X] - Exchanging data between apps

Pitag

Member
Licensed User
Longtime User
Hi to all,
i was wondering which is the best way to exchange data between apps. My scenario is:
- a B4J application that runs on my home system (not on a remote server like a VPS)
- a B4A app that send some data to the b4j app (maybe settings or, anyway, a small amount of text data)

which is the smartest way for the two to communicate in your opinion?

In a local network i find mqtt very useful for example, but over the internet?
Consider that i do not want to expose my system on the Internet (no port forwarding).
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
which is the smartest way for the two to communicate in your opinion?
You have either HTTP with Jserver or MQTT with JMqtt broker and Client

n a local network i find mqtt very useful for example, but over the internet?
If it isnt much information, mqtt is good even over the internet

Consider that i do not want to expose my system on the Internet (no port forwarding).
then, Mqtt with an external Broker is enough.

Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer.
 
Upvote 0

Pitag

Member
Licensed User
Longtime User
You have either HTTP with Jserver or MQTT with JMqtt broker and Client


If it isnt much information, mqtt is good even over the internet


then, Mqtt with an external Broker is enough.

Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer.
@EnriqueGonzalez do you know an online mqtt service? (i remember CloudMqtt but as far as i know, has only payed plans)
Firebase services can be a solution?
I remember that worked well on Android, but on B4J?

I know Tailscale and appreciate it, but i would prefer not to use it. I cannot leave it active on my phone, meaning that if i need to use the app, i have to remember to activate Tailscale first.
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
@EnriqueGonzalez do you know an online mqtt service?

Firebase services can be a solution?
to store information yes. you can pull information in other please, but there are no libraries for firebase on B4J for example

I know Tailscale and appreciate it, but i would prefer not to use it.
i see, it happens
 
Upvote 0

Pitag

Member
Licensed User
Longtime User
Upvote 0
Top