Mobile

Kotlin Android development

How does AonHive use Kotlin / Android?

Kotlin Android development for native products and device integrations.

Kotlin is for Android when the product depends on the device. The Sevenco driver app is the public example of the constraint: Maps takes the screen, and a location watch tied to that screen stops. A foreground service is what keeps the points moving.Discuss this stack

How we use it

The process can die. The job cannot.

  1. 01

    Assume the activity is gone

    Work that must continue is a foreground service or WorkManager, with a notification the person can see. A callback on the activity is not that work.

  2. 02

    Queue what the network refused

    A write that fails on the road stays on the phone, with a cap and a retry. A 401 refreshes the session used by that background task.

  3. 03

    Ask for the battery exception once

    Android will still pause a background app. The prompt for unrestricted battery is part of setup, including the extra step some phone makers require.

Kotlin / Android

Bring the system this has to fit.

Tell us the product, the estate you already run, and what your team needs to own. We will say whether this belongs in the stack.