permisson_handler_tizen

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 privileges in your tizen-manifest.xml file. For example, if you want to access the device's media library in your Flutter app:

    <manifest>
      ...
      <privileges>
        <privilege>http://tizen.org/privilege/mediastorage</privilege>
      </privileges>
    </manifest>
    
    PermissionTizen permissionPrivileges
    Permission.accessMediaLocationAndroid-only
    Permission.activityRecognitionAndroid-only
    Permission.bluetoothiOS-only
    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.photos
    Permission.photosAddOnly
    iOS-only
    Permission.remindersiOS-only
    Permission.sensorsSensorhttp://tizen.org/privilege/healthinfo
    Permission.smsMessagehttp://tizen.org/privilege/message.read
    http://tizen.org/privilege/message.write
    Permission.speechiOS-only
    Permission.storageStoragehttp://tizen.org/privilege/externalstorage

    For more information on Tizen privileges, see Security and API Privileges.

  2. Add permission_handler and permission_handler_tizen as dependencies in your pubspec.yaml file.

    dependencies:
      permission_handler: ^6.1.1
      permission_handler_tizen: ^1.1.0
    

    Then you can import permission_handler in your Dart code:

    import 'package:permission_handler/permission_handler.dart';
    

    For detailed usage of the plugin, see https://github.com/Baseflow/flutter-permission-handler#how-to-use.

Notes

This plugin is intended for Galaxy Watch devices only. On TVs, you don't need to request permissions since they are already granted to apps by default.