runkaiz / flutter-cm-sensor-recorder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⬆️ Flutter CM Sensor Recorder

This plugin allows to use the CoreMotion Sensor Recorder features of iOS in your Flutter mobile app on both iOS and Android.

Because of the lack of OS-specific support for recording raw accelerometer data in background on Android, the Android implementation uses a Foreground service.

Requesting permissions

Additionally, you will have to manage the permission request. If you choose to go with permission permission_handler make sure to follow their installation steps as well.

Units

The only difference compared to the iOS native implementation lays in the fact that this plugin will give you accelerations in m/s² instead of Apple's G.

Usage

You can check the example for a rather complete implementation and you can always refer the official iOS documentation, this plugin behaves in the same way.

Sponsor

The initial development of this plugin was sponsored by Growth Constant Inc. who allowed my to publish this as an open source project.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Kotlin 49.6%Language:Dart 22.3%Language:Swift 11.7%Language:Ruby 7.3%Language:Objective-C 5.4%Language:Shell 1.9%Language:Java 1.7%