You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/25 10:37:05 UTC

[GitHub] [cordova-plugin-device-motion] timbru31 opened a new pull request #70: docs: undeprecate plugin

timbru31 opened a new pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70


   Revert "Updated README"
   
   This reverts commit 3a751893088e43ee3c7e45289509b6c70a9c74ce.
   
   <!--
   Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
   
   http://cordova.apache.org/contribute/contribute_guidelines.html
   
   Thanks!
   -->
   
   ### Platforms affected
   
   
   
   ### Motivation and Context
   <!-- Why is this change required? What problem does it solve? -->
   <!-- If it fixes an open issue, please link to the issue here. -->
   
   
   
   ### Description
   <!-- Describe your changes in detail -->
   
   
   
   ### Testing
   <!-- Please describe in detail how you tested your changes. -->
   
   
   
   ### Checklist
   
   - [ ] I've run the tests to see all new and existing tests pass
   - [ ] I added automated test coverage as appropriate for this change
   - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
   - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
   - [ ] I've updated the documentation if necessary
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#issuecomment-681834935


   Merging in later today, last call for vetos. :)
   
   If any of you want to further enhance the sentence, go ahead and open a new PR 💯. I will update the paragraph in the device-orientation repo, too.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r477479989



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       looks good!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476442473



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       then they might allow localhost, I tested on `app://localhost`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476441620



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       Are you sure? My test app is running on `ionic://my-domain.com` and on user interaction the request was denied with `Call to requestPermission() failed, reason: Browsing context is not secure.`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] erisu commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
erisu commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r478284659



##########
File path: README.md
##########
@@ -27,12 +27,170 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, on iOS 13+ potential issues with permissions and secure contexts can arise. Therefore, it is recommended to use this plugin as it uses a native implementation.

Review comment:
       ```suggestion
   However, on iOS 13+, potential issues with permissions and secure contexts can arise. Therefore it is recommended to use this plugin as it uses a native implementation.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] erisu commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
erisu commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476464366



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       > Locally-delivered resources such as those with http://127.0.0.1 URLs, http://localhost URLs (under certain conditions), and file:// URLs are also considered to have been delivered securely.
   > 
   > Resources that are not local, to be considered secure, must meet the following criteria:
   > 
   > * must be served over https:// or wss:// URLs
   > * the security properties of the network channel used to deliver the resource must not be considered deprecated
   
   Maybe it is the `localhost` that is making the results different. If you ask Apple, I am sure they will claim that as a bug and will include the scheme as part of the check.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r477477767



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       ```suggestion
   However, on iOS 13+ potential issues with permissions and secure contexts can arise. Therefore, it is recommended to use this plugin as it uses a native implementation.
   ```
   
   This is much shorter now :)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476434759



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       This is not true, on iOS 13 it's required to request a permission with `DeviceMotionEvent.requestPermission();`, but works just fine after doing it, doesn't matter if you use `file://` or `app://`.
   Nevertheless, the permission request prompt has a few issues, see the mail I sent on the discuss thread for more information.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476442473



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       then they might allow localhost, I tested on `app://localhost`
   
   yeah, that's it, it works in `app://localhost`, but doesn't work if you change the hostname to something else




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] erisu commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
erisu commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r478284659



##########
File path: README.md
##########
@@ -27,12 +27,170 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, on iOS 13+ potential issues with permissions and secure contexts can arise. Therefore, it is recommended to use this plugin as it uses a native implementation.

Review comment:
       ```suggestion
   However, on iOS 13+, potential issues with permissions and secure contexts can arise. Therefore it is recommended to use this plugin as it uses native implementation.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476441620



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       Are you sure? My test app is running on `ionic://my-domain.com` and on user interaction the request was denied with `Call to requestPermission() failed, reason: Browsing context is not secure.`
   
   This also conforms with the description of secure contexts of the MDN doc.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476475709



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       With Apple you can never be sure, geolocation doesn't work because WebView considers it not secure. So they might have forgot to add the scheme check for `DeviceMotionEvent.requestPermission();`, or they are switching to consider custom schemes secure. It still works on iOS 14 beta.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476547976



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       ```suggestion
   However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context. Locally-delivered resources such as those with http://127.0.0.1 URLs, http://localhost URLs (under certain conditions), and file:// URLs are also considered to have been delivered securely.
   
   If you use a custom hostname, i.e., something else than `localhost`, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.
   ```
   
   How about this? I'd like to avoid gambling's about Tim Apple's future decisions if they forgot to check the protocol or not.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] jcesarmobile commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476566246



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       I think we don't need to enter into all those details, we can just say on iOS 13+ it could present some problems and it's recommended to use the plugin as it uses a native implementation.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 commented on pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#issuecomment-679956056


   See "usage note" discussion at https://github.com/apache/cordova-plugin-device-orientation/pull/54/files - I'll update this PR once we agreed one a sentence.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] erisu commented on a change in pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
erisu commented on a change in pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70#discussion_r476464366



##########
File path: README.md
##########
@@ -27,12 +27,172 @@ description: Access accelerometer data.
 
 # cordova-plugin-device-motion
 
+# Usage Notice
+
+With the [W3C Device Orientation API](https://www.w3.org/TR/orientation-event/), Android, iOS, and Windows devices may not need this plugin anymore.
+
+However, for iOS 13+, a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) is required. Apple does not allow access to the device’s motion or the permission request from an insecure browsing context.
+
+If you use a custom scheme, i.e., the `app` protocol, for your iOS app, the browsing context is considered insecure. To solve this problem and be able to use the device motion feature, this plugin will be necessary on iOS 13+.

Review comment:
       > Locally-delivered resources such as those with http://127.0.0.1 URLs, http://localhost URLs (under certain conditions), and file:// URLs are also considered to have been delivered securely.
   > 
   > Resources that are not local, to be considered secure, must meet the following criteria:
   > 
   > * must be served over https:// or wss:// URLs
   > * the security properties of the network channel used to deliver the resource must not be considered deprecated
   
   Maybe it is the `localhost` that is bypassing the Secure Context. If you ask Apple, I am sure they will claim that as a bug and will include the scheme as part of the check.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-device-motion] timbru31 merged pull request #70: docs: undeprecate plugin

Posted by GitBox <gi...@apache.org>.
timbru31 merged pull request #70:
URL: https://github.com/apache/cordova-plugin-device-motion/pull/70


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org