apache / cordova-plugin-device-motion Goto Github PK
View Code? Open in Web Editor NEWApache Cordova Device Motion Plugin
Home Page: https://cordova.apache.org/
License: Apache License 2.0
Apache Cordova Device Motion Plugin
Home Page: https://cordova.apache.org/
License: Apache License 2.0
So as of iOS 13, Apple now requires a website or webview to ask permission before using the device motion API's for security reasons. The permission request launches a popup that the user has to agree to, which has to be done every time the app runs. For my tilt-based game, this is unacceptable. What do you guys think about reviving this plugin? Or, is there some workaround? I've been unable to find a way to permanently enable motion for a webview.
Safari release notes:
https://developer.apple.com/documentation/safari_release_notes/safari_13_release_notes#3314664
Medium article:
https://medium.com/flawless-app-stories/how-to-request-device-motion-and-orientation-permission-in-ios-13-74fc9d6cd140
Similar issue in different repo:
processing/p5.js#4037
I know this plugin is now deprecated, but the last version of it was 2.0.1 - though it looks like someone was still doing a dev version 2.0.2.
My question is when it was deprecated, what were the version levels of cordova-ios and cordova-android (or cordova-cli) that this plugin was no longer needed?
My app is running significantly behind all the latest and greatest revs - so I need to determine that as of (example) [email protected] and [email protected] this plugin is not needed.
As well, if the plugin is no longer needed, where is the documentation on how to call the new integrated functions (previously used by this plugin) for device motion functionality?
Seamless install
Stop with error saying module missing
This error occurs
Installing "cordova-plugin-device-motion" for android
Failed to install 'cordova-plugin-device-motion': Error: Unable to load Platform API from /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js:
Cannot find module 'strip-final-newline'
Require stack:
ionic cordova plugin add cordova-plugin-device-motion
android
Ionic 6.14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.