activity_recognition_alt 0.1.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

activity_recognition #

pub package

Activity recognition plugin for Android and iOS. Only working while App is running (= not terminated by the user or OS).

Getting Started #

Check out the example directory for a sample app using activity recognition.

Android Integration #

Add permission to your Android Manifest:

<uses-permission android:name="" />

Add the plugin service:

<service android:name="at.resiverbindet.activityrecognition.activity.ActivityRecognizedService" />

iOS Integration #

An iOS app linked on or after iOS 10.0 must include usage description keys in its Info.plist file for the types of data it needs. Failure to include these keys will cause the app to crash. To access motion and fitness data specifically, it must include NSMotionUsageDescription.

Flutter Integration #

import 'package:activity_recognition/activity_recognition.dart';


Flutter help #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

0.1.4 #

  • Upgrade Kotlin version
  • Update Example

0.1.3 #

  • Fix copy & paste bug

0.1.2 #

  • Always clear shared preferences to trigger changed event
  • Use named shared preferences to not interfere with the application itself
  • Set the interval to 30 seconds
  • Add Activity.empty()

0.1.0 #

  • Unify platform code

0.0.2 #

  • Fix stuff for

0.0.1 #

  • First working prototype for Android and iOS.


activity_recognition_example #

Demonstrates how to use the activity_recognition plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  activity_recognition_alt: ^0.1.7

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:activity_recognition_alt/activity_recognition_alt.dart';
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]
Learn more about scoring.

We analyzed this package on Dec 5, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies