permission_handler_tizen 1.2.1 icon indicating copy to clipboard operation
permission_handler_tizen: ^1.2.1 copied to clipboard

Tizen implementation of the permission_handler plugin

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)
0
likes
110
pub points
21%
popularity

Publisher

verified publisher icontizen.org

Tizen implementation of the permission_handler plugin

Homepage
Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter, permission_handler_platform_interface

More

Packages that depend on permission_handler_tizen