Can MQTT Plugin running on all screen and run in background?

Can MQTT Plugin running on all screen and run in background?

  

Hello all,

I want to ask something:

I integrate MQTT with OneSignal Push Notification plugin, so when i got message from the topic i subscribe and listen, i can get a push notification to my phone screen. The problem is, after i run MQTT Connect, Subscribe and Listen in a screen, it will receive the message from topic i subscribe and listen if i still open that screen, if i leave that screen or close the application, i can't listen to the topic anymore.

Can MQTT (the Listen function) run on all screen and run in the background (when the application is not open)? So when i got some news (or message) from topic i subscribe, even if my application do not open i can still get the notification?

for MQTT plugin i use:

https://github.com/arcoirislabs/cordova-plugin-mqtt

and implement it into Outsystems.


Sorry for the long case,

Thank you


Hi, did you already figure out this case?? I have the same problem, but I'm using MQTT Paho library ..

Peter Stein wrote:

Hi, did you already figure out this case?? I have the same problem, but I'm using MQTT Paho library ..

Hello Peter,

Unfortunately i also haven't found a way to solve this problem. Sorry.


Joshua Benaya wrote:

Peter Stein wrote:

Hi, did you already figure out this case?? I have the same problem, but I'm using MQTT Paho library ..

Hello Peter,

Unfortunately i also haven't found a way to solve this problem. Sorry.



Thanks anyway, if I found a solution, I'll gonna post it here.