shamblett / mqtt_client

A server and browser based MQTT client for dart
Other
547 stars 177 forks source link

Connection Lost When App Killed #519

Closed JavedAtRapidTack closed 6 months ago

JavedAtRapidTack commented 7 months ago

Hello everyone... am using mqtt and flutter local notifications together in my taxi booking app. everything goes well when app is in active state. but when user once killed the app Mqtt connection lost due to which i am unable to show local notifications . is it possible to keep connection alive even when app is killed .

shamblett commented 7 months ago

Errm, how would you do that? The client connects to a broker, if the app the client is running in is killed then it can't connect to anything as its not running. When the app is killed the broker will pick up the disconnection and close its connection to the client, there will be nothing to keep running.

Or I've misunderstood you.