Head Tracking Cursor for Cordova (iOS) apps!
The Jabberwocky® Cordova Plugin wraps the Jabberwocky® Head Tracking Kit (JabberwockyHTKit). It is an open-source iOS framework, developed by Swiftable LLC, that provides a touch-free interface for existing iOS applications. Jabberwocky enables users to interact with an application by just moving their head. Head movement translates into the movement of a mouse-like cursor on the screen. Cursor location and blink events can be subscribed to allowing actions to be performed in Cordova.
See JabberwockyHTKit for more information.
JabberwockyHTKit
requires CocoaPods version 1.10.0 or greater to operate correctly.
pod --version
1.10.0
- An update to the newest version can be done using the following command:
sudo gem install cocoapods
cordova create jabberwocky-cordova-app example.jabberwocky.cordova JabberwockyCordovaExample && cd jabberwocky-cordova-app
cordova platform add ios
cordova plugin add https://github.com/swiftablellc/jabberwocky-cordova-plugin-ios.git
- Modify
onDeviceReady
function inplatforms/ios/www/js/index.js
onDeviceReady: function() {
...
var jabberwocky = window.plugins.JabberwockyHeadTracking;
jabberwocky.configure(jabberwocky.getDefaultCordovaFeatures(), function() {
jabberwocky.enable(function() {
console.log("Jabberwocky Enabled!");
});
});
...
}
- Run on a physical device (FaceID capability required).
- Navigate to jabberwocky-cordova-plugin-ios directory
git pull
- Update Version
- Modify the version number in plugin.xml.
- Run
plugman createpackagejson .
.
- Prepare Release Commit
git add *
git commit -m 'Preparing <version> for release.'
- Tag version
git tag -a <version> -m 'Tagging Release <version>'
git push origin --tags
- Publish to NPM
npm publish ./
- IMPORTANT - Finish pushing the commit to master.
git push origin master
- We don't do this before, because we can amend the commit until publish succeeds.
Jabberwocky® is a registered trademark of Swiftable LLC.