Movesense iOS and Android Libraries
(Oct 23rd 2018) Update 1.28.1 to mobile libraries released
Showcase app (ex sampleapp) for Android has been updated to version 1.9.5. Please find the apk in the "Downloads" section. Please refer to CHANGES.md for more details.
List of Movesense compatible mobile devices available
Movesense documentation now contains a list of compatible mobile devices.
React Native support added for MDS library
Check out Tugberk Akdogan's implementation on Github!
Unity3D plugin for Movesense released
Check out news in Movesense website!
Movesense is available through CocoaPods. To install it, make sure the following line is part of your Podfile (assumes properly configured ssh connection):
pod 'Movesense', :git => 'ssh://firstname.lastname@example.org:suunto/movesense-mobile-lib.git'
Building the example project
To run the example project, clone the repo, and run
pod install in the IOS/iOS-Example directory first. Make sure you have configured your ssh public key to bitbucket beforehand. This phase should not produce any errors:
$ cd IOS/iOS-Example/ $ pod install Analyzing dependencies Pre-downloading: `Movesense` from `ssh://email@example.com:suunto/movesense-mobile-lib.git` Pre-downloading: `SwiftCharts` from `https://github.com/i-schuetz/SwiftCharts.git`, branch `master` Downloading dependencies Installing Movesense (1.0.0) Installing PromiseKit (4.3.3) Installing SwiftyJSON (3.1.4) Installing Toast-Swift (2.0.0) Generating Pods project Integrating client project Sending stats Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed.
Then open 'movesense-swiftapp.xcworkspace' in Xcode and build target 'movesense-swiftapp'.
Modifying bundle identifier
You need to replace default 'com.suunto.movesense' bundle identifier with your own bundle identifier.
Signing the application
In order to sign the application, you need to setup your own developer provisioning profile in Xcode.
Running the application
After the previous step, you are ready to go and can install the application on the device.
However, you still need to enable the developer certificate on your iPhone in Settings -> General -> Device Management.
Finally, run the app!
MDS Library usage
Open 'Android/samples/ConnectivityAPISample/build.gradle' in Android Studio (the sample shows how to connect to Movesense and do a simple GET request). For more complex data queries (such as reading data from sensors) consult Android/samples/sampleapp.
Moving outside maximum BLE range can cause Android/samples/sampleapp to crash. Android/samples/ConnectivityAPISample should be able to properly handle these situations.
Wireless Update over Bluetooth Low-energy (BLE)
The latest Movesense device firmware supports wireless update using Nordic's DFU protocol. This requires operation of both the Movesense Example App as well as the Nordic's nRF Toolbox.
WARNING: in case the new firmware is not based on the latest Movesense stack, the device looses the capability to be updated!!!
Frequently Asked Questions
Please report bugs by raising an Issue via Bitbucket.
Your input is appreciated and we encourage you to post your contributions as pull requests to this repository.
See the LICENSE.pdf file for more info.