Skip to main content
The mobile package provides app store integration features including version checking, force update prompts, maintenance mode, and platform-specific store URLs.

Quick Start

App Info

Static App Info Provider

For simple static configuration:

Dynamic App Info Provider

For database-backed or API-driven configuration:

Update Status

The CheckUpdate function compares versions:

Update Status Response

Example response:

App Info Handler

The built-in handler automatically:
  1. Extracts device info from mobile middleware context
  2. Fetches app info from provider
  3. Checks for maintenance mode
  4. Compares versions and builds response
  5. Sets X-Min-App-Version header

Maintenance Mode Response

When maintenance mode is enabled:
HTTP Status: 503 Service Unavailable

Store URLs

Helper functions for platform store URLs:

Store URLs by Platform

Force Update Middleware

Block outdated apps from accessing the API:

Feature Flags

Include feature flags in app info:
Response:

Client Implementation

iOS (Swift)

Android (Kotlin)

Flutter (Dart)

Best Practices

Check on App Launch

Check for updates when the app launches and periodically while running:

Gradual Rollouts

Use minimum version to gradually force updates:
  1. Release 2.0.0 to stores
  2. Set minimum to 1.8.0 initially
  3. Monitor crash rates and feedback
  4. Gradually raise minimum to 2.0.0

Maintenance Windows

Schedule maintenance during low-traffic periods:

Next Steps

Templates

Available mobile templates

Production

Production deployment guide

API Reference

Complete API documentation