Reputation: 543
I want to create a mobile app that alert me when I enter certain location even though the app is closed.To achieve this the app has to run in background. I thought of doing it using IBM Mobile First.Before that I just want to clarify whether it supports background services or not?
Upvotes: 0
Views: 86
Reputation: 404
Despite that I never implement an background application the answer is yes as we can see in documentation of the product.
You can add code at the beginning of the application lifecycle, before the MobileFirst framework is initialized, and have full control over when to initialize the MobileFirst framework, including being able to initialize it in the background
IBM Knowledge Center - Developing MobileFirst applications
See the explanation on how to do it on topic:
Keeping the application running in the background
For Android devices and hybrid applications, to ensure that the application will continue to run in the background use WL.App.setKeepAliveInBackground(true, options).
IBM Knowledge Center - Keeping the application running in the background
Finally, specific informations about location services: MobileFirst Foundation DEV - Location services in hybrid applications
Regards, Bernardo Baumblatt.
Upvotes: 1