background service?

Hello,

Can anyone help me with the issues below?

I want to develop an APP with background notification such as location based service(push).

Can I make it a background service and auto launch while the system boots?

That means I don’t need to execute the app and still can receive notifications.

How do I achieve that?

Any advice is appreciated.

Thanks for reading/reply. :slight_smile:

For push notifications you must use google or apple services.
With Corona you can only create local notifications.

Is it possible to use Apple’s background location updates to notify your app of location changes, so your app can respond with a local notification to the user if need be?

And is there something similar for Android?

Apple does support a background mode that allows some access to the GPS for this.  However this background mode is not officially supported by Corona SDK and may not be counted on to work in future versions.  We don’t support any backgrounding in Android either (and I don’t think it can be done without some native stuff going on).  

Thanks for the info.  I maintain a native iOS app for a client which uses background audio and may use the background location mode in the future. Basically it does a call-back to your app when the location changes “significantly”.  I just wondered if the same was possible with Corona apps, but it sounds like not anytime soon.

You can always use native code/plugins if you have paid version of Corona

Assuming someone has written the plugin you need or if you have the enterprise version and want to spend the time writing them yourself…  I think Rob is indicating there is no official Corona plugin for background mode callbacks and none planned. He can correct me if I misinterpreted.

Well I didn’t say anything about plugins.  I don’t fully understand what the engineers were saying but it has something to do with how Corona, Lua and C/C++ libraries get along and it’s not something that we’ve tested as a backgroundable process and because we are not expecting Corona apps to run in the background we may very well break it going forward.  It’s not a feature we plan on supporting since we can’t on Android.  I don’t see how Enterprise changes this unless you 100% user Objective C and don’t use Corona at all.

Ok, thanks for clarifying.  So pretty much not easily possible or intended.

For push notifications you must use google or apple services.
With Corona you can only create local notifications.

Is it possible to use Apple’s background location updates to notify your app of location changes, so your app can respond with a local notification to the user if need be?

And is there something similar for Android?

Apple does support a background mode that allows some access to the GPS for this.  However this background mode is not officially supported by Corona SDK and may not be counted on to work in future versions.  We don’t support any backgrounding in Android either (and I don’t think it can be done without some native stuff going on).  

Thanks for the info.  I maintain a native iOS app for a client which uses background audio and may use the background location mode in the future. Basically it does a call-back to your app when the location changes “significantly”.  I just wondered if the same was possible with Corona apps, but it sounds like not anytime soon.

You can always use native code/plugins if you have paid version of Corona

Assuming someone has written the plugin you need or if you have the enterprise version and want to spend the time writing them yourself…  I think Rob is indicating there is no official Corona plugin for background mode callbacks and none planned. He can correct me if I misinterpreted.

Well I didn’t say anything about plugins.  I don’t fully understand what the engineers were saying but it has something to do with how Corona, Lua and C/C++ libraries get along and it’s not something that we’ve tested as a backgroundable process and because we are not expecting Corona apps to run in the background we may very well break it going forward.  It’s not a feature we plan on supporting since we can’t on Android.  I don’t see how Enterprise changes this unless you 100% user Objective C and don’t use Corona at all.

Ok, thanks for clarifying.  So pretty much not easily possible or intended.