3d_force_touch_android_barometer
3d_force_touch_android_barometer copied to clipboard
Just a (very) quick and dirty example of how it is possible to simulate 3D Force Touch on Android using the barometer.
3D Force Touch on Android
Just a (very) quick and dirty example of how it is possible to simulate 3D Force Touch on Android using the barometer.
I made this in 10-15 minutes. It is just a proof of concept.
I used this plugin for Cordova: https://github.com/zanderso/cordova-plugin-barometer .
Video: https://www.youtube.com/watch?v=BgNXsJeN7ek&feature=youtu.be .
(For testers) How to install on your device
First of all enable Unknown sources
in the developer settings.
Then download and install the most recent apk you can find in the builds/
folder.
(For devs) How to run with Apache Cordova
Just clone the repository, cd
in its directory, connect your Android phone via ADB and run:
cordova run android