iOS Question imqtt in background

abe

New Member
Licensed User
Longtime User
Hi,sorry my english, I have an app made on b4a i have a services with mqtt protocol , and i can exit and close the app but the services run and i can receive message anytime and my app can process and save in sqlite without the app start like whatsapp, or similar app that receive message or notification. It's posible to do the same in b4i with imqtt protocol?
 

abe

New Member
Licensed User
Longtime User
Thanks, i need that users of b4a send/receive message with users of b4i , is better to change in b4a mqtt to push notification and developper b4a and b4i with the same protocol push notification?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You should use both Firebase push notifications and MQTT (or a different protocol) for a messaging app.

The push notifications will send a signal to your app that it needs to wake up and then use MQTT to download the messages. You can also include the text message in the push notification.

However it is useful to have full control once the process is running and not rely on the system push notifications.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…