1.0.11 • Published 6 years ago

cordova-plugin-wayfarer v1.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

🌊⛵🌊 Cordova Wayfarer Plugin

Cordova plugin for determining activity based on device motion.

Purpose

Wayfarer predicts the current activity a user is engaged in by analayzing the device's motion and geolocation.

Installation

cordova plugin add cordova-plugin-wayfarer

Supported Platforms

  • Android
  • iOS

Methods

Example

Wayfarer.subscribe(
    function(activityData){
        // activityData returns: 
        // {
        // activity: 'AUTOMOTIVE', 
        // confidence: '39'
        // }
    },
    function(error){
        console.error(error); // Returns error
    }
);

Wayfarer.unsubscribe(
    function(){},
    function(error){
        console.error(error); // Returns error
    }
);

Credits

Disclaimer

The Cordova Wayfarer Plugin is in its infant stages. The subscribe method is production ready, but there isn't even a way to unsubscribe from events yet. Also, I am not fluent in Objective-C or Java, so you will see some ugly code. If you would like, give me a hand and help clean it up!

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago