Is there any way in BB 10 to autostart an aplication at phone startup ? And if it is, is it possible to reamin in background while doing background processing like cheking gps location or wifi status? Thank you in advance.
BlackBerry 10 Background Service
Asked Answered
You cannot currently run as a headless app in the background (ie, you need a UI), or autostart on device boot.
If the user has launched your app, it can request to still run when not in the foreground. It can also be launched through the push and invocation framework.
can it also be launched through the push and invocation framework by itself after installing or running for the first time? Let`s take for example an alarm clock. Or an application that scans the gps and saves the route all the time. –
Parvis
The push frame work requires the action of an external server to push data to the device; the invocation framework requires another to request a service provided by your application. So the short answer is no, you can't currently implement an alarm clock or route tracker. –
Lob
As of BlackBerry 10.2 you can do this using Headless Apps. More information here: https://developer.blackberry.com/native/documentation/cascades/device_platform/headless_apps/
and even deferred –
Ptolemaic
© 2022 - 2024 — McMap. All rights reserved.