permisson_handler_tizen

pub package

The Tizen implementation of permisson_handler.

You can use this plugin to ask the user for runtime permissions if your app performs security-sensitive operations or access restricted data.

Usage

  1. Declare necessary privileges in your tizen-manifest.xml file by referring to the below permission list. For example, if you want to access the device's media library in your Flutter app, add:

    <privileges>
      <privilege>http://tizen.org/privilege/mediastorage</privilege>
    </privileges>
    
  2. Add permission_handler and permission_handler_tizen as dependencies in your pubspec.yaml file.

    dependencies:
      permission_handler: ^8.3.0
      permission_handler_tizen: ^1.2.1
    

    Then you can import permission_handler in your Dart code:

    import 'package:permission_handler/permission_handler.dart';
    

    For detailed usage, see https://pub.dev/packages/permission_handler#how-to-use.

List of permissions

PermissionTizen permissionTizen privileges
Permission.calendarCalendarhttp://tizen.org/privilege/calendar.read
http://tizen.org/privilege/calendar.write
Permission.cameraCamerahttp://tizen.org/privilege/camera
Permission.contactContactshttp://tizen.org/privilege/contact.read
http://tizen.org/privilege/contact.write
Permission.location
Permission.locationAlways
Permission.locationWhenInUse
Locationhttp://tizen.org/privilege/location
http://tizen.org/privilege/location.coarse
Permission.mediaLibraryStoragehttp://tizen.org/privilege/mediastorage
Permission.microphoneMicrophonehttp://tizen.org/privilege/recorder
Permission.phoneCallhttp://tizen.org/privilege/call
Permission.sensorsSensorhttp://tizen.org/privilege/healthinfo
Permission.smsMessagehttp://tizen.org/privilege/message.read
http://tizen.org/privilege/message.write
Permission.storageStoragehttp://tizen.org/privilege/externalstorage

The following permissions are not applicable for Tizen:

  • Android-only: accessMediaLocation, accessNotificationPolicy, activityRecognition, bluetoothAdvertise, bluetoothConnect, bluetoothScan, manageExternalStorage, requestInstallPackages, systemAlertWindow
  • iOS-only: appTrackingTransparency, bluetooth, criticalAlerts, photos, photosAddOnly, reminders, speech

On Tizen, your app can use some security-sensitive features (such as bluetooth) without explicitly acquiring permissions. However, you might need to declare relevant privileges in its tizen-manifest.xml file. For detailed information on Tizen privileges, see Tizen Docs: API Privileges.

Supported devices

  • Galaxy Watch series (running Tizen 4.0 or later)

On TV devices, you don't need to explicitly request permissions since they are already granted to apps by default.

Supported APIs

  • x Permission.status (including shortcuts such as Permission.isGranted and Permission.isPermanentlyDenied)
  • x Permission.serviceStatus
  • Permission.shouldShowRequestRationale (Android-only)
  • x Permission.request
  • x List<Permission>.request
  • x openAppSettings (not supported on emulators)

Libraries