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.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Lupu Ciprian
  • 163
  • 5

2 Answers2

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.

Paul Bernhardt
  • 491
  • 2
  • 6
  • 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. – Lupu Ciprian Nov 16 '12 at 13:56
  • 1
    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. – Richard Nov 16 '12 at 18:19
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/

donturner
  • 17,867
  • 8
  • 59
  • 81
  • and even [deferred](http://devblog.blackberry.com/2014/12/deferred-autorun-headless-app/) – x29a Jul 19 '17 at 06:26