[jira] [Created] (CB-13779) Apache Cordova 8.0.0 not building Android Apps but only prints Android and Java Paths
Sumit Soman created CB-13779: Summary: Apache Cordova 8.0.0 not building Android Apps but only prints Android and Java Paths Key: CB-13779 URL: https://issues.apache.org/jira/browse/CB-13779 Project: Apache Cordova Issue Type: Bug Components: cordova-android Environment: I am trying to build a Cordova app with few plugins ([InAppBrowser|https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/], [Barcode Scanner|https://github.com/phonegap/phonegap-plugin-barcodescanner], [File Transfer|https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file-transfer/index.html], [Text-to-Speech|https://github.com/vilic/cordova-plugin-tts], [Document Viewer|https://github.com/sitewaerts/cordova-plugin-document-viewer], [GeoLocation|https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-geolocation/index.html]). OS: MacOS High Sierra (10.13.2) Cordova version 8.0.0 Android {{cordova-android@~7.0.0}} Android Studio 3.0.1 Reporter: Sumit Soman Assignee: Joe Bowser When I run {{cordova build android}} it only shows the {{ANDROID_HOME}} and {{JAVA_HOME}} paths but does not build the Android Studio project. [!https://i.stack.imgur.com/l7Qat.png!|https://i.stack.imgur.com/l7Qat.png] I am using Cordova version 8.0.0 and Android {{cordova-android@~7.0.0}} Building in the verbose mode gives the following messages [!https://i.stack.imgur.com/rLMSv.png!|https://i.stack.imgur.com/rLMSv.png] -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150246#comment-15150246 ] Sumit Soman commented on CB-10598: -- Thanks, it worked. I was not correctly setting the content security policy tag, and upgrading Cordova to v6.0 also fixed it. This was not needed when I was developing via Visual Studio for Windows Phone. > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149891#comment-15149891 ] Sumit Soman commented on CB-10598: -- I had asked on stackoverflow, but couldn't get anywhere. Would welcome help. http://stackoverflow.com/q/35337905/3169868 > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148496#comment-15148496 ] Sumit Soman commented on CB-10598: -- I'm a newbie with this and would appreciate if I could be helped with these issues that may be trivial to you. I opened the index.html file in Safari and got the following error in the web inspector: Refused to load the script 'file:///Users/testProj/platforms/ios/www/cordova.js' because it violates the following Content Security Policy directive: "default-src 'unsafe-inline' data: gap: https://ssl.gstatic.com 'unsafe-eval'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback. My index.html Content Security Policy reads as: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> Could you please tell me how this can be fixed? > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15145743#comment-15145743 ] Sumit Soman commented on CB-10598: -- I had changed the CSP tag in Staging/index.html to https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> But still the alert does not appear. > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144760#comment-15144760 ] Sumit Soman commented on CB-10598: -- I removed the inline call to change the javascript to window.onload=function myFunction(){alert("Test");} but the popup still does not display. As far as the content security policy tag is concerned, it already has 'unsafe-inline': https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> Could you please specify where I'm going wrong. > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
[ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144112#comment-15144112 ] Sumit Soman commented on CB-10598: -- The project link is available here: dl.dropboxusercontent.com/u/94452798/testProj.zip > Unable to run javascript in Cordova iOS project on simulator > > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS >Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 >Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. > After that I opened the .xcodeproj in Xcode, built it and the homepage showed > the sample app homescreen. I then created another js file with the following > content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova > 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
Sumit Soman created CB-10598: Summary: Unable to run javascript in Cordova iOS project on simulator Key: CB-10598 URL: https://issues.apache.org/jira/browse/CB-10598 Project: Apache Cordova Issue Type: Bug Components: CordovaJS, iOS Affects Versions: 5.4.1 Environment: Mac OSX El Capitan, Xcode v7.2 Reporter: Sumit Soman I created a cordova project, added the iOS platform and built the project. After that I opened the .xcodeproj in Xcode, built it and the homepage showed the sample app homescreen. I then created another js file with the following content in the Staging/js folder function testLoad(){ alert("Loaded!"); } In index.html, I added and called the function However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org