App Settings

Open your app's native settings page directly from within your Lovable mobile app to guide users to permission controls.

Lovable Prompt
Lovable Prompt

Add native settings navigation to my app using the Despia SDK from: https://www.npmjs.com/package/despia-native

First, install the package: npm install despia-native

Then import it: import despia from 'despia-native'

Create a settings navigation system that uses the Despia command: despia("settingsapp://") to open your app's native settings page where users can manage permissions like notifications, location, camera, and more.

This feature requires native capabilities which will be fully provided by the "despia-native" npm package, no additional native libraries are needed!

Please follow the installation instructions for the "despia-native" npm package closely, and do not modify my instructions. Implementation as mentioned is critical.

How it works: Despia acts as a bridge between your Lovable app and the native mobile OS. When triggered, Despia opens your app's dedicated settings page in the device's native settings application, allowing users to manage app-specific permissions, notifications, and preferences directly from the native interface.

Installation

Install the Despia package from NPM:

npm install despia-native

Usage

1. Import the SDK

import despia from 'despia-native';

2. Open App Settings

Call the despia() function with the Settings Command:

despia("settingsapp://")

Resources

  • NPM Package

  • View full NPM documentation for additional configuration options

Lovable Integration

This SDK is optimized for Lovable's prompt-based AI builder, enabling quick integration of native settings navigation into your generated apps.

Need Help?

For additional support or questions, please contact our support team at support@despia.com

Updated on