requestPermissions

external fun <T> requestPermissions(plugin: String): Promise<T>(source)

Request permissions.

This should be used by plugin authors to wrap their actual implementation, it calls the plugin:<name>|request_permissions command implemented by the mobile plugin, which shows the native permission prompt when needed, and returns the resulting permission status object.

Since

2.0.0

Parameters

plugin

The plugin name, as used in the plugin:<name>|<command> IPC command format.