A Flutter plugin for Instabug.
The table below contains a list of APIs we're planning to implement for our 1.0 release. We'll add the Dart API methods as we implement them.
|API Method||Native Equivalent (Android/iOS)|
Creating a Flutter app on the Instabug dashboard isn't possible yet. Create a React Native app instead.
flutter packages get
initState(). This line enables the SDK with the default behavior and sets it to be shown when the devices is shaken.
Make sure to replace
app_token with your application token.
FlutterApplicationand add it to your
<application android:name=".CustomFlutterApplication" ... </application>
onCreate()and add the following code.
ArrayList<String> invocationEvents = new ArrayList<>(); invocationEvents.add(InstabugFlutterPlugin.INVOCATION_EVENT_SHAKE); new InstabugFlutterPlugin().start(CustomFlutterApplication.this, "APP_TOKEN", invocationEvents);
Info.plistfile with text explaining to the user why those permissions are needed:
If your app doesn’t already access the microphone or photo library, we recommend using a usage description like:
<app name>needs access to the microphone to be able to attach voice notes."
<app name>needs access to your photo library for you to be able to attach images."
The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Instabug.
Adds the following APIs:
Demonstrates how to use the instabug_flutter plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: instabug_flutter: ^0.0.2
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.0.2||Mar 20, 2019|
|0.0.1||Mar 19, 2019|
|1.0.1-beta.1||May 23, 2019|
|1.0.0-beta.1||Apr 16, 2019|
|0.0.4-alpha.1||Apr 14, 2019|
|0.0.3-alpha.1||Mar 21, 2019|
|0.0.1-alpha.1||Mar 10, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
flutter format to format
Support latest dependencies. (-5 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
The description is too long. (-10 points)
Search engines display only the first part of the description. Try to keep the value of the
description field in your package's
pubspec.yaml file between 60 and 180 characters.