Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 973 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 973 Bytes

tizen_notification

pub package

Tizen notification APIs. Used to show and delete notifications on a Tizen device.

Usage

To use this plugin, add tizen_notification as a dependency in your pubspec.yaml file:

dependencies:
  tizen_notification: ^0.2.0

Then you can import tizen_notification in your Dart code:

import 'package:tizen_notification/tizen_notification.dart';

TizenNotificationPlugin plugin = TizenNotificationPlugin();
await plugin.show(1, title: 'Title', body: 'Body');

Required privileges

To use this plugin, you need to declare the following privileges in tizen-manifest.xml.

<privileges>
  <privilege>http://tizen.org/privilege/notification</privilege>
  <!--To launch an application by app_control handler-->
  <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
</privileges>