You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/18 17:05:35 UTC

[GitHub] [cordova-plugin-inappbrowser] ncomo11 opened a new issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

ncomo11 opened a new issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897


   # Bug Report
   Inside inappbrowser other cordova plugins are not getting called.
   
   ## Problem
   I am loading a set of local files within inappbrwser but plugins not geting called
   
   ### What is expected to happen?
   Code loaded inside inappbrowser should be able to call cordova plugins
   
   
   ### What does actually happen?
   Code inside inappbrowser do call JS code of plugin but gets lost (not able to call plugin native code) after below line:
   
   "nativeApiProvider.get().exec(..." in cordova.js
   
   
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-plugin-inappbrowser] ncomo11 commented on issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

Posted by GitBox <gi...@apache.org>.
ncomo11 commented on issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897#issuecomment-902093475


   Hi! 
   I do agree to this but yes I missed this part in the documentation.
   
   Thanks,


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-plugin-inappbrowser] breautek edited a comment on issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897#issuecomment-901441790


   The in-app browser plugin is an isolated webview intended to provide a secure way to view remote content. It's **not suppose** to have access to cordova plugin APIs. Doing so would be a breach in both Apple's App Store and Google's Play Store policies.
   
   I understand this might not apply directly to you, since you said all your files are local but the InApp Browser webview is missing implementations to handle cross environment communication between native land and JS land and that is intentional. For this reason, I'll be closing this issue.
   
   If you need to use cordova plugins, you have to remain in the "Cordova Webview", that is the webview that your main index.html launches in. If you need support, I'd recommend asking our [Slack community](http://slack.cordova.io/).
   
   Kind regards,
   Norman


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-plugin-inappbrowser] breautek closed issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

Posted by GitBox <gi...@apache.org>.
breautek closed issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-plugin-inappbrowser] breautek edited a comment on issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897#issuecomment-901441790


   The in-app browser plugin is an isolated webview intended to provide a secure way to view remote content. It's **not suppose** to have access to cordova plugin APIs. Doing so would be a breach in both Apple's App Store and Google's Play Store policies.
   
   See the snippet from the docs:
   
   > The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. For this reason, the InAppBrowser is recommended if you need to load third-party (untrusted) content, instead of loading that into the main Cordova webview. The InAppBrowser is not subject to the whitelist, nor is opening links in the system browser.
   
   I understand this might not apply directly to you, since you said all your files are local but the InApp Browser webview is missing implementations to handle cross environment communication between native land and JS land and that is intentional. For this reason, I'll be closing this issue.
   
   If you need to use cordova plugins, you have to remain in the "Cordova Webview", that is the webview that your main index.html launches in. If you need support, I'd recommend asking our [Slack community](http://slack.cordova.io/).
   
   Kind regards,
   Norman


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-plugin-inappbrowser] breautek commented on issue #897: I am loading a set of local files within inappbrwser but plugins not geting called

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #897:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/897#issuecomment-901441790


   The in-app browser plugin is an isolated webview intended to provide a secure way to view remote content. It's **not suppose** to have access to plugin APIs. Doing so would be a breach in both Apple's App Store and Google's Play Store policies.
   
   I understand this might not apply directly to you, since you said all your files are local but the InApp Browser webview is missing implementations to handle cross environment communication between native land and JS land and that is intentional. For this reason, I'll be closing this issue.
   
   If you need to use cordova plugins, you have to remain in the "Cordova Webview", that is the webview that your main index.html launches in. If you need support, I'd recommend asking our [Slack community](http://slack.cordova.io/).
   
   Kind regards,
   Norman


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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



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