Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangJoo-Park committed Nov 8, 2019
1 parent eb151d9 commit 63cbf96
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 43 deletions.
100 changes: 67 additions & 33 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 41 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,45 @@
# flutter_foreground_plugin
# flutter_foreground_service_plugin

A foreground service plugin for Flutter
Please *DO NOT* use now. It is experimental state.

## Getting Started
## You Can Do this plugins with..

This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
- Start Foreground Service (with callback)
- Stop Foreground Service (with callback)
- Using infinite interval on your configurations.

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

## You Can Not Do this plugins with...

- [ ] Change Notification Level
- [ ] Change Notification title and contents


## If you use this plugin.

1. Add dependency to your pubspec.yaml


```
dependencies:
...
flutter_foreground_plugin:
git:
url: https://github.com/ChangJoo-Park/flutter_foreground_service_plugin
```


2. Add permission for ForegroundService to AndroidManifest.xml

```xml
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
```


3. Add service for ForegroundService to AndroidManifest.xml below `</activity>`

```xml
<service android:name="changjoopark.com.flutter_foreground_plugin.FlutterForegroundService"/>
```

0 comments on commit 63cbf96

Please sign in to comment.