BlackBerry 10 Background Service
Asked Answered
P

2

8

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.

Parvis answered 16/11, 2012 at 13:30 Comment(0)
Q
4

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.

Quenelle answered 16/11, 2012 at 13:51 Comment(2)
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
C
3

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/

Conglutinate answered 16/4, 2013 at 23:6 Comment(1)
and even deferredPtolemaic

© 2022 - 2024 — McMap. All rights reserved.