Skip to content

zoocityboy/flutter_doki

Repository files navigation

Doki Dont kill my app!

Developed by 🦏 zoocityboy

Flutter Doki - Dont kill my app

Pub pub points ci License: MIT Flutter

The package is designed to help developers/users understand and handle device-specific battery optimization settings that might affect their app's background operations. Simply open or get informations from DontKillMyApp.com

Features

  • Open device-specific pages on dontkillmyapp.com
  • Retrieve device information and manufacturer-specific optimization guidelines
  • Fetch and parse content from the dontkillmyapp.com API
  • Add Badge widgets to the app

🚀 Getting started

Installation

dart pub add flutter_doki

AndroidManifext.xml

Add the following permission to your AndroidManifest.xml file:

<queries>
  <!-- If your application checks for inAppBrowserView launch mode support -->
  <intent>
      <action android:name="android.support.customtabs.action.CustomTabsService" />
  </intent>
</queries>

Usage

Opens an In-AppWebView displaying instructions on how to disable battery optimization for your app on the current device.

Doki().open(appName: 'My Special App');

if you don't provide appName, it will use the app name from the package.

Doki().fetch()
    .then((response){ ...})
    .catchError((e){...});

Widget

You can use pre-made Badge widget with informations about rating manufacturer of the device with link to more information.

DokiBadgeWidget(
    type: BadgeType.square // .square, .rectangle
)

Example app Screenshot

Flutter developer Zoocityboy

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Flutter developer Zoocityboy