Skip to content

NativePHP/mobile-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Plugin for NativePHP Mobile

System-level operations for NativePHP Mobile apps.

Overview

The System API provides access to system-level functionality like opening the app's settings page.

Installation

composer require nativephp/mobile-system

Usage

PHP (Livewire/Blade)

use Native\Mobile\Facades\System;

// Open app settings (useful when user denied permissions)
System::openAppSettings();

JavaScript (Vue/React/Inertia)

import { system } from '#nativephp';

// Open app settings
await system.openAppSettings();

Methods

openAppSettings(): array

Opens the app's settings screen in the device settings. This is useful when a user has denied a permission and you want to direct them to the settings to grant it.

Returns: { success: true }

Use Cases

  • Direct users to grant permissions after initial denial
  • Allow users to change notification preferences
  • Enable users to manage app-specific settings

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published