Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should deprecation status be removed? #52

Closed
stefanmdt opened this issue Mar 3, 2020 · 3 comments · Fixed by #54
Closed

Should deprecation status be removed? #52

stefanmdt opened this issue Mar 3, 2020 · 3 comments · Fixed by #54

Comments

@stefanmdt
Copy link

Since iOS 13, the WKWebView requires user permission when fetching DeviceOrientationEvent. When DeviceOrientationEvent.requestPermission() is called, a modal is shown that asks permission for "localhost". After app restart, the modal is shown again. Thinking of a mobile app, this is probably not the best user experience. With the device orientation plugin, this problems could be worked around, couldn't it?

@breautek
Copy link

breautek commented May 9, 2020

@arielhasidim
Copy link

arielhasidim commented May 10, 2020

I also will be very happy if the deprecation status would be removed.
My mobile app has navigation feature that resulted in very poor and non-native user experience since w3c/webkit protocol change (@stefanmdt described it well).
I think this is also relevant for VR apps, in addition to compass feature in on-foot-navigation apps.

some related links:
w3c/deviceorientation repository - Add API for requesting permission to receive device motion / orientation events #57
w3c/deviceorientation#57

w3c/deviceorientation repository - requestPermission() and event handling clarification
w3c/deviceorientation#74

w3c DeviceOrientation Event Specification, Editor’s Draft, 20 March 2020
https://w3c.github.io/deviceorientation/#id=permission-model

apple developer forums - Unable to check DeviceOrientationEvent
https://forums.developer.apple.com/thread/128376

safari 13 release notes
https://developer.apple.com/documentation/safari_release_notes/safari_13_release_notes?preferredLanguage=occ

2 articles on how do you integrate the new protocol:
https://medium.com/flawless-app-stories/how-to-request-device-motion-and-orientation-permission-in-ios-13-74fc9d6cd140
https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2

UPDATE: The plugin works with my project in ios 13.
@angular/cli 7.3.9
cordova-lib@9.0.1
cordova ios 5.1.1

@timbru31
Copy link
Member

The plugin has been officially revived and we are resuming development. Please note, that we can't give any ETA when a new version will be available on npm. Testing, code reviews and other contributions are of course highly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants