breautek opened a new issue #1217:
URL: https://github.com/apache/cordova-android/issues/1217


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Application to start correctly
   
   ### What does actually happen?
   
   Application fails to initialize probably (deviceReady not fired).
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   This is a regression from a newly added feature 
https://github.com/apache/cordova-android/pull/1137
   
   With the default configuration, plugins will fail to initialise because they 
do not pass the whitelist checks. This occurs when you have at least one plugin 
installed.
   
   The default `<content src="index.html" />` seems to produce a white list 
pattern where `index.html` is the `host`, instead of the `path`, so when 
comparing against the `https://localhost` origin, it returns false.
   
   ![Screenshot from 2021-04-24 
12-36-24](https://user-images.githubusercontent.com/11200662/115964218-bf67e080-a4f9-11eb-992d-2cf565e9ffa9.png)
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   ```
   cordova create test
   cd test
   cordova platform add android@nightly
   cordova plugin add cordova-plugin-file
   cordova run android
   ```
   
   These steps will produce the hello world cordova app that stays on 
"connecting" because `deviceReady` never fires.
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   `cordova-android@nightly`
   And one other plugin
   
   ### 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] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] 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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to