Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the plugin in background #9

Open
stochris opened this issue Apr 20, 2016 · 16 comments
Open

Running the plugin in background #9

stochris opened this issue Apr 20, 2016 · 16 comments

Comments

@stochris
Copy link

stochris commented Apr 20, 2016

Hello. First of all, let me say that this plugin is really useful for mobile, since by default, the MQTT protocol has such a low overhead, and prioritizes the battery life of the device.
However, I was wondering if there is any official support for running the plugin in background, and keeping the tcp socket open while the main cordova application is sleeping ?

Also, as a side note, how difficult would be to implement the plugin for IOS ? I understand that there are certain limitation with calling C++ methods ( PAHO MQTT ) from Objective-C ( such as not working over cellular mobile )

@arcoirislabs
Copy link
Owner

arcoirislabs commented Apr 21, 2016

@stoiKris
Thank you for your appreciation,
Well currently we were a bit hesitant about the service implementation of the android platform as no one requested, but since you have asked for it we would really like to work on to bring the service implementation of the android to help you with the background service version in the next version.

The iOS implementation is not being finalized because we need to first create an app using our plugin and see if any issues arise during the app submission due to our plugin implementation. We don't want to be a reason for your rejection during app submission (Apple..Ugh!). Although the implementation is not that difficult, but we need to make sure of our implementation, that we do not violate any guidelines.

Open Source Team
Arcoiris Labs

@stochris
Copy link
Author

Ok, thank you very much.

The think is, by letting the plugin run in background, you allow your application to use notifications while it's idle, and I don't really see a a downside, since MQTT doesn't use too much battery or mobile traffic.

And you can also let the any notifications be handled by the cordova app ( templating, localization, etc ), instead of moving it to the MQTT broker

@arcoirislabs
Copy link
Owner

Sure we will take up your suggestion to our team members and some way to implement notifications for background service implementation.
Thank you for your suggestions.

@nmaas87
Copy link

nmaas87 commented May 18, 2016

I would find this feature very useful as well :)!

@KennPunt
Copy link

Background service notifications would be great!

@aignacio
Copy link

aignacio commented Jun 2, 2016

Thanks again to @arcoirislabs, incredible job, I just have one doubt about performance, does anyone knows the response time of messages from subscription in the app?, as an example 500ms between the message arrived to the broker and be delivered to the callback application mobile.

@arcoirislabs
Copy link
Owner

@aignacio
We are unsure about the delay as we have not tested it but you may receive the timestamp when the event for a topic was called by digging in the event's callback data. You may cross reference it with broker's verbose if given out by one. Run the broker in verbose mode to get the timestamp of data being received. You have the timestamp on the broker and you the timestamp of message received in the callback.
We are glad that you liked our work. Many features are coming hence forth.

@nmaas87
Copy link

nmaas87 commented Sep 17, 2016

Any update on the Background service notifications?

@arcoirislabs
Copy link
Owner

Hello @nmaas87
We are not sure about when exactly we can roll over that update as we are currently expanding the plugin for other platforms, preferably for iOS. So for now no updates on this work yet. If you can contribute, we will welcome your pull request regarding this feature update.

Amey K.
Maintainer

@nmaas87
Copy link

nmaas87 commented Sep 17, 2016

Thank you very much @arcoirislabs for the insight.
I would love to contribute - however I am not good enough to develop the requested feature myself, therefore I cannot hand in an pull request, sorry :(!

@arcoirislabs
Copy link
Owner

It's fine @nmaas87.
We will surely update you personally on any updates regarding this requested feature. Until then, this issue will remain open for any suggestions/queries/discussions.

@napcat
Copy link

napcat commented Nov 14, 2016

I'm also interested in this. It would be a killer feature.

@snr-lab
Copy link

snr-lab commented Jul 24, 2017

Hi,
First of all, I would like to thank you for this nice and useful plugin. It will be great if background service is available.

@JoshBenaya
Copy link

Hello, any updates on this feature? thanks!

@askie
Copy link

askie commented Dec 23, 2018

It will be great if background service is available.

@llittlefoxx
Copy link

Hello dear all,
Thanks for your efforts! Do you have any updates regarding the background feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants