[jira] [Created] (CB-11368) resolveLocalFileSystemURL cannot handle url returned by contacts plugin
zhuisui created CB-11368: Summary: resolveLocalFileSystemURL cannot handle url returned by contacts plugin Key: CB-11368 URL: https://issues.apache.org/jira/browse/CB-11368 Project: Apache Cordova Issue Type: Bug Components: Plugin Contacts, Plugin File Reporter: zhuisui navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}}, which cannot be resolved by resolveLocalFileSystemURL with {{FileError {code: 1000}}}. I inspect code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot return correct value. The problem is, that cursor doesn't have a column named _size. I have given permission of File and Contacts. -- 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-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15317624#comment-15317624 ] zhuisui commented on CB-11326: -- Why it is splashscreen plugin? I didn't find something related to it. > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was sent by Atlassian JIRA
[jira] [Comment Edited] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15320056#comment-15320056 ] zhuisui edited comment on CB-11326 at 6/8/16 6:01 AM: -- Another thing needs to say. What I issue doesn't mean to focus on problem of splashscreen plugin, it is just a side effect. What I want to get solution of is why {{loadUrl}} doesn't perform like supposed? Do I use it in a wrong way? was (Author: zyf0330): Another thing needs to say. What I issue doesn't mean to focus on problem of splashscreen plugin, it is just a side effect. What I want to get solution of is why {loadUrl} doesn't perform like supposed? Do I use it in a wrong way? > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) >
[jira] [Issue Comment Deleted] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11326: - Comment: was deleted (was: I will test more after a few hours. -- 追随 ) > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15320046#comment-15320046 ] zhuisui commented on CB-11326: -- How could I give you the sample project? > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15320056#comment-15320056 ] zhuisui commented on CB-11326: -- Another thing needs to say. What I issue doesn't mean to focus on problem of splashscreen plugin, it is just a side effect. What I want to get solution of is why {loadUrl} doesn't perform like supposed? Do I use it in a wrong way? > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at >
[jira] [Commented] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15318576#comment-15318576 ] zhuisui commented on CB-11326: -- I will test more after a few hours. -- 追随 > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (CB-11420) use resolveLocalFileSystemURL with root path without schema should be set as "file://" default
zhuisui created CB-11420: Summary: use resolveLocalFileSystemURL with root path without schema should be set as "file://" default Key: CB-11420 URL: https://issues.apache.org/jira/browse/CB-11420 Project: Apache Cordova Issue Type: Wish Components: Plugin File Reporter: zhuisui {{resolveLocalFileSystemURL}} cannot recognize a path starting with {{/}}, and I think it should has a schema {{file://}} as default. -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15302182#comment-15302182 ] zhuisui commented on CB-11305: -- It looks complex. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301269#comment-15301269 ] zhuisui edited comment on CB-11305 at 5/26/16 1:29 AM: --- [~daserge] Another question to ask you, why I cannot see this issue in *My Open Issues*? And, I think I mistook you yesterday. This code {code:javascript} window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function (assetsRoot) { assetsRoot.getFile('www/img/logo.png', null, function (image) { document.getElementById('imageFileCdv').src = image.toInternalURL(); {code} doesn't work on Android like "cdvfile://localhost/assets/path" do. was (Author: zyf0330): [~daserge] Another question to ask you, why I cannot see this issue in *My Open Issues*? > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui edited comment on CB-11305 at 5/26/16 1:04 AM: --- thanks for the text effects. About ^toInternalURL^, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. was (Author: zyf0330): thanks for the text effects. About {code:javascript}toInternalURL{code}, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui edited comment on CB-11305 at 5/26/16 1:05 AM: --- thanks for the text effects. About {code}toInternalURL{code}, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. was (Author: zyf0330): thanks for the text effects. About ^toInternalURL^, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11325) access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}}
[ https://issues.apache.org/jira/browse/CB-11325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15326935#comment-15326935 ] zhuisui commented on CB-11325: -- No one can answer me about this? I think it is ridiculous. > access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}} > > > Key: CB-11325 > URL: https://issues.apache.org/jira/browse/CB-11325 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Whitelist > Environment: Cordova 6.2.0 > cordova-plugin-whitelist 1.2.2 >Reporter: zhuisui > > According to doc of whitelist, {{}} will not reject any > request to external server.But in fact, {{}} > still need to be added to make core-file-plugin work normally. -- 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-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15321995#comment-15321995 ] zhuisui commented on CB-11326: -- Hi, in my code, {{loadUrl}} enters showWebPage in the CordovaWebViewImpl, and {{pluginManager.shouldAllowNavigation(url)}} returns false, as I inspect, pluginManage just has CoreAndroid in it as plugin, not whitelist. So those {{alow-navigation}} doesn't effect. > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) >
[jira] [Issue Comment Deleted] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11305: - Comment: was deleted (was: thanks for the text effects. About toInternalURL, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. On Wed, May 25, 2016, 20:56 Sergey Shakhnazarov (JIRA)-- 追随 ) > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui edited comment on CB-11305 at 5/26/16 1:01 AM: --- thanks for the text effects. About ~toInternalURL~, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. was (Author: zyf0330): thanks for the text effects. About toInternalURL, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui commented on CB-11305: -- thanks for the text effects. About toInternalURL, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui edited comment on CB-11305 at 5/26/16 1:06 AM: --- thanks for the text effects. About {code}toInternalURL{code}, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. Also, I use "code" in Text Formatting Notation, but it breaks line. What do you do? was (Author: zyf0330): thanks for the text effects. About {code}toInternalURL{code}, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301238#comment-15301238 ] zhuisui edited comment on CB-11305 at 5/26/16 1:02 AM: --- thanks for the text effects. About {code:javascript}toInternalURL{code}, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. was (Author: zyf0330): thanks for the text effects. About ~toInternalURL~, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301269#comment-15301269 ] zhuisui commented on CB-11305: -- [~daserge] Another question to ask you, why I cannot see this issue in *My Open Issues*? > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301676#comment-15301676 ] zhuisui commented on CB-11305: -- Thanks very much! To be honest, I am a beginner to use English, so sometimes cannot understand exactly. I am willing to see you solving this thing. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
zhuisui created CB-11326: Summary: use navigator.app.loadUrl got uncaught exception with allow-navigation Key: CB-11326 URL: https://issues.apache.org/jira/browse/CB-11326 Project: Apache Cordova Issue Type: Bug Components: Plugin Whitelist Environment: Cordova 6.2.0 Reporter: zhuisui I get this stack when {{navigator.app.loadUrl(myurl)}} with {{}}, which occurs after {{pluginManager.shouldAllowNavigation(myurl)}} returns true {code} Uncaught exception from plugin android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) at android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) at android.view.View.clearFocusInternal(View.java:5602) at android.view.View.clearFocus(View.java:5585) at android.view.ViewGroup.clearFocus(ViewGroup.java:977) at android.view.View.setFlags(View.java:10622) at android.view.View.setVisibility(View.java:7431) at org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) at org.apache.cordova.PluginManager.init(PluginManager.java:87) at org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) at org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) at org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) at org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) at org.apache.cordova.PluginManager.exec(PluginManager.java:133) at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61) {code} Then, app cannot accept any command and doesn't response. -- 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-11325) access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}}
zhuisui created CB-11325: Summary: access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}} Key: CB-11325 URL: https://issues.apache.org/jira/browse/CB-11325 Project: Apache Cordova Issue Type: Bug Components: Plugin Whitelist Environment: Cordova 6.2.0 cordova-plugin-whitelist 1.2.2 Reporter: zhuisui According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally. -- 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] [Updated] (CB-11325) access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}}
[ https://issues.apache.org/jira/browse/CB-11325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11325: - Description: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally. (was: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally.) > access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}} > > > Key: CB-11325 > URL: https://issues.apache.org/jira/browse/CB-11325 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Whitelist > Environment: Cordova 6.2.0 > cordova-plugin-whitelist 1.2.2 >Reporter: zhuisui > > According to doc of whitelist, {{}} will not reject any > request to external server.But in fact, {{}} > still need to be added to make core-file-plugin work normally. -- 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] [Updated] (CB-11325) access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}}
[ https://issues.apache.org/jira/browse/CB-11325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11325: - Description: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally. (was: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally.) > access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}} > > > Key: CB-11325 > URL: https://issues.apache.org/jira/browse/CB-11325 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Whitelist > Environment: Cordova 6.2.0 > cordova-plugin-whitelist 1.2.2 >Reporter: zhuisui > > According to doc of whitelist, {{}} will not reject any > request to external server.But in fact, {{}} > still need to be added to make core-file-plugin work normally. -- 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] [Updated] (CB-11325) access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}}
[ https://issues.apache.org/jira/browse/CB-11325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11325: - Description: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally. (was: According to doc of whitelist, {{}} will not reject any request to external server.But in fact, {{}} still need to be added to make core-file-plugin work normally.) > access within {{origin="*"}} cannot replace {{origin="cdvfile://*"}} > > > Key: CB-11325 > URL: https://issues.apache.org/jira/browse/CB-11325 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Whitelist > Environment: Cordova 6.2.0 > cordova-plugin-whitelist 1.2.2 >Reporter: zhuisui > > According to doc of whitelist, {{}} will not reject any > request to external server.But in fact, {{}} > still need to be added to make core-file-plugin work normally. -- 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-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15333589#comment-15333589 ] zhuisui commented on CB-11326: -- I ensure. And I found that it is not the whitelist plugin controls that, it is above mentioned. -- 追随 > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This
[jira] [Commented] (CB-11495) Use captureAudio without app to record audtio
[ https://issues.apache.org/jira/browse/CB-11495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15352274#comment-15352274 ] zhuisui commented on CB-11495: -- Also, {{MediaFile.getFormatData}} cannot give me info expected like that duration, height and width are all 0 on Android. Thirdly, {{navigator.device.capture.supportedImageModes}} and allied attrs return {{[]}}. > Use captureAudio without app to record audtio > - > > Key: CB-11495 > URL: https://issues.apache.org/jira/browse/CB-11495 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media Capture >Reporter: zhuisui > > When use {{captureAudio}} on Android without recording audio app installed, > the err will be string like {{No Activity found to handle Intent > {act=android.provider.MediaStore.RECORD_SOUND}}} not an error with code > listed in the documentation. And this exception should be caught at line 227 > in the method {{captureAudio}} of {{Capture.java}}, I think. -- 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-11495) Use captureAudio without app to record audtio
zhuisui created CB-11495: Summary: Use captureAudio without app to record audtio Key: CB-11495 URL: https://issues.apache.org/jira/browse/CB-11495 Project: Apache Cordova Issue Type: Bug Components: Plugin Media Capture Reporter: zhuisui When use {{captureAudio}} on Android without recording audio app installed, the err will be string like {{No Activity found to handle Intent {act=android.provider.MediaStore.RECORD_SOUND}}} not an error with code listed in the documentation. And this exception should be caught at line 227 in the method {{captureAudio}} of {{Capture.java}}, I think. -- 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-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15335695#comment-15335695 ] zhuisui commented on CB-11326: -- I ensure. And I found that it is not the whitelist plugin controls that, it is {{CoreAndroid}} mentioned above. > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This
[jira] [Issue Comment Deleted] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation
[ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11326: - Comment: was deleted (was: I ensure. And I found that it is not the whitelist plugin controls that, it is above mentioned. -- 追随 ) > use navigator.app.loadUrl got uncaught exception with allow-navigation > --- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 >Reporter: zhuisui >Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with > {{}}, which occurs after > {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original > thread that created a view hierarchy can touch its views. > at > android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at > android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at > android.view.View.clearFocusInternal(View.java:5602) > at > android.view.View.clearFocus(View.java:5585) > at > android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at > android.view.View.setFlags(View.java:10622) > at > android.view.View.setVisibility(View.java:7431) > at > org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at > org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at > org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at > org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at > org.apache.cordova.PluginManager.init(PluginManager.java:87) > at > org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at > org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at > org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at > org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at > org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at > org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at > org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at > org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at > android.os.Handler.dispatchMessage(Handler.java:102) > at > android.os.Looper.loop(Looper.java:148) > at > android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was
[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15288500#comment-15288500 ] zhuisui commented on CB-11251: -- I have found another problem. When I write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in before_build hook, it influences cordova run which is expected when I execute it in cmd. But if I execute in the terminal of Webstorm or Android Studio, it doesn't work. > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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] [Comment Edited] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15288011#comment-15288011 ] zhuisui edited comment on CB-11251 at 5/18/16 3:47 AM: --- Thanks. But is there a way to set that environment variable? I do these below in js of before_build hook. I try to set gradleVersion in gradle.properties which is useless. Now I use this way by which I write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in js, but I don't think this way is proper. was (Author: zyf0330): Thanks. But is there a way to set that environment variable? Because there is another problem existing. Set it by this way is only effective to before_build hook, not before_run. I try to use cmd to set it in before_build hook which doesn't work, so I change to write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in js. And it is effective, but I don't think this way is proper. > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15297678#comment-15297678 ] zhuisui commented on CB-11305: -- I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have open permission of storage. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-10834) the "prompt" font colot too light
[ https://issues.apache.org/jira/browse/CB-10834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15299403#comment-15299403 ] zhuisui edited comment on CB-10834 at 5/25/16 3:40 AM: --- [~bowserj] I saw source code and found "promptInput.setHint" without "promptInput.setHintTextColor", so I think it's the breaking point? was (Author: zyf0330): [~jrbowers] I saw source code and found "promptInput.setHint" without "promptInput.setHintTextColor", so I think it's the breaking point? > the "prompt" font colot too light > - > > Key: CB-10834 > URL: https://issues.apache.org/jira/browse/CB-10834 > Project: Apache Cordova > Issue Type: Improvement > Components: Android, Plugin Dialogs >Affects Versions: 5.1.1 > Environment: Cordova cli 6.0 + Crodova-Android 5.1.1 + Android 4.4.2 > + cordova-plugin-dialogs 1.2.0 >Reporter: Colin Bau > Attachments: Screenshot_2016-03-10-17-18-59.jpg > > > when I use the "prompt" method > you can see when I type "TEST" > but the font color too light > iOS have no this situation > my config.xml > > > -- 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] [Comment Edited] (CB-10834) the "prompt" font colot too light
[ https://issues.apache.org/jira/browse/CB-10834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15299403#comment-15299403 ] zhuisui edited comment on CB-10834 at 5/25/16 3:40 AM: --- [~jrbowers] I saw source code and found "promptInput.setHint" without "promptInput.setHintTextColor", so I think it's the breaking point? was (Author: zyf0330): [~adamjrichards] I saw source code and found "promptInput.setHint" without "promptInput.setHintTextColor", so I think it's the breaking point? > the "prompt" font colot too light > - > > Key: CB-10834 > URL: https://issues.apache.org/jira/browse/CB-10834 > Project: Apache Cordova > Issue Type: Improvement > Components: Android, Plugin Dialogs >Affects Versions: 5.1.1 > Environment: Cordova cli 6.0 + Crodova-Android 5.1.1 + Android 4.4.2 > + cordova-plugin-dialogs 1.2.0 >Reporter: Colin Bau > Attachments: Screenshot_2016-03-10-17-18-59.jpg > > > when I use the "prompt" method > you can see when I type "TEST" > but the font color too light > iOS have no this situation > my config.xml > > > -- 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-10834) the "prompt" font colot too light
[ https://issues.apache.org/jira/browse/CB-10834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15299403#comment-15299403 ] zhuisui commented on CB-10834: -- [~adamjrichards] I saw source code and found "promptInput.setHint" without "promptInput.setHintTextColor", so I think it's the breaking point? > the "prompt" font colot too light > - > > Key: CB-10834 > URL: https://issues.apache.org/jira/browse/CB-10834 > Project: Apache Cordova > Issue Type: Improvement > Components: Android, Plugin Dialogs >Affects Versions: 5.1.1 > Environment: Cordova cli 6.0 + Crodova-Android 5.1.1 + Android 4.4.2 > + cordova-plugin-dialogs 1.2.0 >Reporter: Colin Bau > Attachments: Screenshot_2016-03-10-17-18-59.jpg > > > when I use the "prompt" method > you can see when I type "TEST" > but the font color too light > iOS have no this situation > my config.xml > > > -- 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-11305) use cdvfile: cannot import image or js
zhuisui created CB-11305: Summary: use cdvfile: cannot import image or js Key: CB-11305 URL: https://issues.apache.org/jira/browse/CB-11305 Project: Apache Cordova Issue Type: Bug Components: Plugin File Affects Versions: 6.2.0 Environment: cordova 6.6.1 android 5.1.1 Reporter: zhuisui I use cdvfile://localhost/assets/path to show img and import js, and it doesn't work. I haven't seen anything about using with assets, but window.resolveLocalFileSystemURL can handle it to native URL file:///android_asset/path, so I think it should be normal as expected. And I didn't test about cdvfile://localhost/temporary|persistent. And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15297678#comment-15297678 ] zhuisui edited comment on CB-11305 at 5/24/16 8:21 AM: --- I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be accessed. That means app has no permission to access applicationStorageDirectory as "root/data/user/0/app-id/cache". was (Author: zyf0330): I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be access. That means app has no permission to access applicationStorageDirectory as "root/data/user/0/app-id/cache". > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15297678#comment-15297678 ] zhuisui edited comment on CB-11305 at 5/24/16 8:57 AM: --- I just debug in src code and find this: I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. It is just like that most tasks are finished and just one hole is left. I cannot understand. Maybe it needs to test? was (Author: zyf0330): I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be accessed. That means app has no permission to access applicationStorageDirectory as "root/data/user/0/app-id/cache". > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15297678#comment-15297678 ] zhuisui edited comment on CB-11305 at 5/24/16 5:44 AM: --- I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be access. was (Author: zyf0330): I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have open permission of storage. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15297678#comment-15297678 ] zhuisui edited comment on CB-11305 at 5/24/16 5:46 AM: --- I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be access. That means app has no permission to access applicationStorageDirectory as "root/data/user/0/app-id/cache". was (Author: zyf0330): I just debug in src code.Find these two things: 1. I change code in org.apache.cordova.file.AssetFilesystem.filesystemPathForURL(LocalFilesystemURL url) method, which was "return null" and is "return new File(rootUri.getPath(), url.path).toString()". Now "resourceApi.remapUri(origUri)" in SystemWebViewClient.shouldInterceptRequest() can return correct value of "cdvfile://localhost/assets/path" as "file:///android_asset/path", and script tag reads right content. 2.I use "cdvfile://localhost/temporary/path" which is related to correct path, but a IOException is thrown and message is "permission deny". I have set permission of storage to open. If I use "cdvfile://localhost/cache-external/path", it could be access. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15286309#comment-15286309 ] zhuisui commented on CB-11251: -- Maybe I should use origin window.* methods to replace navigator.notification, though they have dark background color, at least the style is the same as origin platform. > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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-10834) the "prompt" font colot too light
[ https://issues.apache.org/jira/browse/CB-10834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15286156#comment-15286156 ] zhuisui commented on CB-10834: -- I have the same problem with ANdroid 6.0, sdk23, tested on Device. The inputtext of prompt is white as same as background, is there a solution? > the "prompt" font colot too light > - > > Key: CB-10834 > URL: https://issues.apache.org/jira/browse/CB-10834 > Project: Apache Cordova > Issue Type: Improvement > Components: Android, Plugin Dialogs >Affects Versions: 5.1.1 > Environment: Cordova cli 6.0 + Crodova-Android 5.1.1 + Android 4.4.2 > + cordova-plugin-dialogs 1.2.0 >Reporter: Colin Bau > Attachments: Screenshot_2016-03-10-17-18-59.jpg > > > when I use the "prompt" method > you can see when I type "TEST" > but the font color too light > iOS have no this situation > my config.xml > > > -- 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-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15288011#comment-15288011 ] zhuisui commented on CB-11251: -- Thanks > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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] [Comment Edited] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15288011#comment-15288011 ] zhuisui edited comment on CB-11251 at 5/18/16 1:17 AM: --- Thanks. But is there a way to set that environment variable? I try to use cmd to set it in before_build hook which doesn't work, so I change to write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in js. And it is effective, but I don't think this way is proper. was (Author: zyf0330): Thanks > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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] [Comment Edited] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15288011#comment-15288011 ] zhuisui edited comment on CB-11251 at 5/18/16 1:19 AM: --- Thanks. But is there a way to set that environment variable? Because there is another problem existing. Set it by this way is only effective to before_build hook, not before_run. I try to use cmd to set it in before_build hook which doesn't work, so I change to write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in js. And it is effective, but I don't think this way is proper. was (Author: zyf0330): Thanks. But is there a way to set that environment variable? I try to use cmd to set it in before_build hook which doesn't work, so I change to write process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in js. And it is effective, but I don't think this way is proper. > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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-11251) Gradle version 2.10 is required. Current version is 2.2.1
[ https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15285938#comment-15285938 ] zhuisui commented on CB-11251: -- I met this problem too. I want to change the version of Gradle for building android to 2.10, but I can't find it. So I write before_build hook to change `process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL']`, but it doesn't work for `run` command. > Gradle version 2.10 is required. Current version is 2.2.1 > - > > Key: CB-11251 > URL: https://issues.apache.org/jira/browse/CB-11251 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Environment: OSX >Reporter: Daniel Rossi >Priority: Blocker > Labels: gradle > > When I try and run "cordova build" I run in this known gradle issue. > There is no possible fix other than to keep changing the version in Android > studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 > instead of 2.22 > Every time I make a change to the common www html file, I have to go back > into Android Studio and make that gradle change, rebuild then run into the > emulator. > This is out of the box, and I believe many people are having the same issue. > "cordova build > ANDROID_HOME=/www/Android/sdk > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home > FAILURE: Build failed with an exception. > * Where: > Build file '/path/MyApp/platforms/android/build.gradle' line: 22 > * What went wrong: > A problem occurred evaluating root project 'android'. > > Failed to apply plugin [id 'android'] >> Gradle version 2.10 is required. Current version is 2.2.1. If using the > gradle wrapper, try editing the distributionUrl in > /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED" -- 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] [Comment Edited] (CB-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15299957#comment-15299957 ] zhuisui edited comment on CB-11305 at 5/25/16 12:13 PM: I agree with you. Maybe we need a generic fs root mapped to "cordova.file.applicationDirectory". So before I send a PR, I think we should consider it more. Also, I touched Cordova and Android before less than two weeks. I am afraid I cannot qualified for this job. Finally, you mention that "image.toInternalURL()" works well on Android if I don't mistake. Then, I'm interested in what it is really like. I will see it another day. [~daserge] Could you tell me how to use MarkDown here? was (Author: zyf0330): I agree with you. Maybe we need a generic fs root mapped to `cordova.file.applicationDirectory`. So before I send a PR, I think we should consider it more. Also, I touched Cordova and Android before less than two weeks. I am afraid I cannot qualified for this job. Finally, you mention that `image.toInternalURL()` works well on Android if I don't mistake. Then, I'm interested in what it is really like. I will see it another day. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15299957#comment-15299957 ] zhuisui commented on CB-11305: -- I agree with you. Maybe we need a generic fs root mapped to `cordova.file.applicationDirectory`. So before I send a PR, I think we should consider it more. Also, I touched Cordova and Android before less than two weeks. I am afraid I cannot qualified for this job. Finally, you mention that `image.toInternalURL()` works well on Android if I don't mistake. Then, I'm interested in what it is really like. I will see it another day. > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1530#comment-1530 ] zhuisui commented on CB-11305: -- thanks for the text effects. About toInternalURL, I know it. I just don't know what it returns in this situation. If it is effective as cdvfile protocol, why can't put it into src of img directly. On Wed, May 25, 2016, 20:56 Sergey Shakhnazarov (JIRA)-- 追随 > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11611) iPhone doesn't vibrate in my code
[ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15392990#comment-15392990 ] zhuisui commented on CB-11611: -- Hello. I use audio recorder developing with native api, and it dispatches audio data by event every period of time. About last sentence, I call {{vibrate}} in the event callback, but it doesn't perform unless I stop recorder and event doesn't be dispatched. > iPhone doesn't vibrate in my code > - > > Key: CB-11611 > URL: https://issues.apache.org/jira/browse/CB-11611 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Vibration >Reporter: zhuisui > > I write some code to implement a feature. > I inspect every element of array and if some satisfy condition I call > {{vibrate}}. > code like this > {code:javascript} > document.addEventListener('data', v, false); > function v(arr){ > var i=0; > while(iif(condition){ > vibrate(10); > } > i += arr.length / 10; > } > } > {code} > But it doesn't vibrate, until event {{data}} doesn't be dispatched. -- 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] [Updated] (CB-11611) iPhone doesn't vibrate in my code
[ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-11611: - Description: I write some code to implement a feature. I inspect every element of array and if some satisfy condition I call {{vibrate}}. code like this {code:javascript} document.addEventListener('data', v, false); function v(arr){ var i=0; while(iiPhone doesn't vibrate in my code > - > > Key: CB-11611 > URL: https://issues.apache.org/jira/browse/CB-11611 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Vibration >Reporter: zhuisui > > I write some code to implement a feature. > I inspect every element of array and if some satisfy condition I call > {{vibrate}}. > code like this > {code:javascript} > document.addEventListener('data', v, false); > function v(arr){ > var i=0; > while(i if(condition){ > vibrate(10); > } > i += arr.length / 10; > } > } > {code} > But it doesn't vibrate, until event {{data}} doesn't be dispatched. -- 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-11611) iPhone doesn't vibrate in my code
zhuisui created CB-11611: Summary: iPhone doesn't vibrate in my code Key: CB-11611 URL: https://issues.apache.org/jira/browse/CB-11611 Project: Apache Cordova Issue Type: Bug Components: Plugin Vibration Reporter: zhuisui I write some code to implement a feature. I inspect every element of array and if some satisfy condition I call {{vibrate}}. code like this {code:javascript} document.addEventListener('data', v, false); function v(arr){ var i=0; while(i
[jira] [Commented] (CB-11611) iPhone doesn't vibrate in my code
[ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15400945#comment-15400945 ] zhuisui commented on CB-11611: -- Maybe my English grade is bad and make you misunderstand. I use this plugin https://github.com/edimuj/cordova-plugin-audioinput to record audio in the webpage and I can get immediate audio data which comes from iOS native code by dispatching event every period of time at least 300ms. And I call {{navigator.vibrate}}(of course it is that not {{window.vibrate}}) every time I receive data and it satisfies condition. My purpose is to do a feature which is letting phone vibrate if it detects audio volume is high enough when is recording audio. However the result is, no matter how many times {{vibrate}} called in this process, phone just start vibrates when stopping recording and no more data. It is like vibrate is blocked by recorder process. Can you understand now? > iPhone doesn't vibrate in my code > - > > Key: CB-11611 > URL: https://issues.apache.org/jira/browse/CB-11611 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Vibration >Reporter: zhuisui > > I write some code to implement a feature. > I inspect every element of array and if some satisfy condition I call > {{vibrate}}. > code like this > {code:javascript} > document.addEventListener('data', v, false); > function v(arr){ > var i=0; > while(iif(condition){ > vibrate(10); > } > i += arr.length / 10; > } > } > {code} > But it doesn't vibrate, until event {{data}} doesn't be dispatched. -- 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-11611) iPhone doesn't vibrate in my code
[ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15401093#comment-15401093 ] zhuisui commented on CB-11611: -- That's right. And on iPhone, {{vibrate}} actually is executed including context code such as {{console.log}}. So I guess that something in native code block vibration, not js code. > iPhone doesn't vibrate in my code > - > > Key: CB-11611 > URL: https://issues.apache.org/jira/browse/CB-11611 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Vibration >Reporter: zhuisui > > I write some code to implement a feature. > I inspect every element of array and if some satisfy condition I call > {{vibrate}}. > code like this > {code:javascript} > document.addEventListener('data', v, false); > function v(arr){ > var i=0; > while(iif(condition){ > vibrate(10); > } > i += arr.length / 10; > } > } > {code} > But it doesn't vibrate, until event {{data}} doesn't be dispatched. -- 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] [Comment Edited] (CB-11611) iPhone doesn't vibrate in my code
[ https://issues.apache.org/jira/browse/CB-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15401093#comment-15401093 ] zhuisui edited comment on CB-11611 at 7/31/16 10:46 AM: That's right. And on iPhone, {{vibrate}} actually is executed including context code such as {{console.log}}. So I guess that something in native code blocks vibration, not in js code. was (Author: zyf0330): That's right. And on iPhone, {{vibrate}} actually is executed including context code such as {{console.log}}. So I guess that something in native code block vibration, not js code. > iPhone doesn't vibrate in my code > - > > Key: CB-11611 > URL: https://issues.apache.org/jira/browse/CB-11611 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Vibration >Reporter: zhuisui > > I write some code to implement a feature. > I inspect every element of array and if some satisfy condition I call > {{vibrate}}. > code like this > {code:javascript} > document.addEventListener('data', v, false); > function v(arr){ > var i=0; > while(iif(condition){ > vibrate(10); > } > i += arr.length / 10; > } > } > {code} > But it doesn't vibrate, until event {{data}} doesn't be dispatched. -- 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-11593) audio set src to cdvfile://localhost/temporary/path/to/music not work
[ https://issues.apache.org/jira/browse/CB-11593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15382438#comment-15382438 ] zhuisui commented on CB-11593: -- It is audio element, and that file is effective whose owner and group is specific app, so music app cannot play it. But webpage should be able to access it. As for demo, I just record a piece of audio and save it as file with Cordova file plugin. This blob from recorder can be played by audio element with resolved as dataURL. But cdvfile URL leads to error above. > audio set src to cdvfile://localhost/temporary/path/to/music not work > - > > Key: CB-11593 > URL: https://issues.apache.org/jira/browse/CB-11593 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File > Environment: cordova 6.2.0 >Reporter: zhuisui > Labels: wfc > > ``` > Error configuring data source: java.lang.RuntimeException: setDataSource > failed: status = 0x8000 > > java.lang.RuntimeException: setDataSource failed: status = 0x8000 > at > android.media.MediaMetadataRetriever._setDataSource(Native Method) > at > android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:105) > at > org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:406) > at > org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:258) > at > org.chromium.content.browser.MediaResourceGetter.extract(MediaResourceGetter.java:139) > at > org.chromium.content.browser.MediaResourceGetter.extractMediaMetadata(MediaResourceGetter.java:119) > 07-18 14:27:00.221 17130-17505/com.caitian.test E/cr_MediaResource: Unable to > configure metadata extractor > ``` > I got this error when set {{audio.src}} to > {{cdvfile://localhost/temporary/path/to/music}} -- 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-11604) make it possible to add uses-permission tag of Android in config.xml
zhuisui created CB-11604: Summary: make it possible to add uses-permission tag of Android in config.xml Key: CB-11604 URL: https://issues.apache.org/jira/browse/CB-11604 Project: Apache Cordova Issue Type: New Feature Reporter: zhuisui -- 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-11593) audio set src to cdvfile://localhost/temporary/path/to/music not work
zhuisui created CB-11593: Summary: audio set src to cdvfile://localhost/temporary/path/to/music not work Key: CB-11593 URL: https://issues.apache.org/jira/browse/CB-11593 Project: Apache Cordova Issue Type: Bug Components: Plugin File Environment: cordova 6.2.0 Reporter: zhuisui ``` Error configuring data source: java.lang.RuntimeException: setDataSource failed: status = 0x8000 java.lang.RuntimeException: setDataSource failed: status = 0x8000 at android.media.MediaMetadataRetriever._setDataSource(Native Method) at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:105) at org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:406) at org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:258) at org.chromium.content.browser.MediaResourceGetter.extract(MediaResourceGetter.java:139) at org.chromium.content.browser.MediaResourceGetter.extractMediaMetadata(MediaResourceGetter.java:119) 07-18 14:27:00.221 17130-17505/com.caitian.test E/cr_MediaResource: Unable to configure metadata extractor ``` I got this error when set {{audio.src}} to {{cdvfile://localhost/temporary/path/to/music}} -- 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-11305) use cdvfile: cannot import image or js
[ https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15354485#comment-15354485 ] zhuisui commented on CB-11305: -- Hello, have you started to process with unifying the name of assets, bundle and ms-appx accessing to applicationDrectory on three platforms? > use cdvfile: cannot import image or js > -- > > Key: CB-11305 > URL: https://issues.apache.org/jira/browse/CB-11305 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File >Affects Versions: 6.2.0 > Environment: cordova 6.6.1 > android 5.1.1 >Reporter: zhuisui > Labels: android, reproduced, triaged, wfc > > I use cdvfile://localhost/assets/path to show img and import js, and it > doesn't work. I haven't seen anything about using with assets, but > window.resolveLocalFileSystemURL can handle it to native URL > file:///android_asset/path, so I think it should be normal as expected. > And I didn't test about cdvfile://localhost/temporary|persistent. > And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s". -- 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-11533) Launch images won't be needed on iOS.
[ https://issues.apache.org/jira/browse/CB-11533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15361913#comment-15361913 ] zhuisui commented on CB-11533: -- After I delete images in LaunchImage(not itself), it can build successfully. > Launch images won't be needed on iOS. > - > > Key: CB-11533 > URL: https://issues.apache.org/jira/browse/CB-11533 > Project: Apache Cordova > Issue Type: Wish > Components: Plugin SplashScreen >Reporter: zhuisui > > LaunchImage is not necessary now, so please remove the code to generate > launch image with cordova icon if splash doesn't be set in config.xml. -- 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-11540) Let FileUtils.remapUri requests READ permission
zhuisui created CB-11540: Summary: Let FileUtils.remapUri requests READ permission Key: CB-11540 URL: https://issues.apache.org/jira/browse/CB-11540 Project: Apache Cordova Issue Type: Improvement Components: Plugin File Reporter: zhuisui If hasNoPermission to READ, result of remapuri for cdvfile url will returns 404. So maybe it needs to request permission at some place. -- 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-11533) Launch images won't be needed on iOS.
zhuisui created CB-11533: Summary: Launch images won't be needed on iOS. Key: CB-11533 URL: https://issues.apache.org/jira/browse/CB-11533 Project: Apache Cordova Issue Type: Wish Components: Plugin SplashScreen Reporter: zhuisui LaunchImage is not necessary now, so please remove the code to generate launch image with cordova icon if splash doesn't be set in config.xml. -- 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-12500) CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu
zhuisui created CB-12500: Summary: CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu Key: CB-12500 URL: https://issues.apache.org/jira/browse/CB-12500 Project: Apache Cordova Issue Type: Bug Components: CLI Affects Versions: 6.5.0 Environment: Ubuntu 16.10 Reporter: zhuisui After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, `cordova build` print error, and it shows that cordova read gradle path as '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. So it treat this url starting with / a relative path. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-12500) CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu
[ https://issues.apache.org/jira/browse/CB-12500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhuisui updated CB-12500: - Description: After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, `cordova build` print error, and it shows that cordova read gradle path as '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. So it treat this url starting with / as a relative path. (was: After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, `cordova build` print error, and it shows that cordova read gradle path as '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. So it treat this url starting with / a relative path. ) > CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu > > > Key: CB-12500 > URL: https://issues.apache.org/jira/browse/CB-12500 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 6.5.0 > Environment: Ubuntu 16.10 >Reporter: zhuisui > > After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, > `cordova build` print error, and it shows that cordova read gradle path as > '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. > So it treat this url starting with / as a relative path. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-12500) CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu
[ https://issues.apache.org/jira/browse/CB-12500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15886986#comment-15886986 ] zhuisui edited comment on CB-12500 at 2/28/17 1:14 AM: --- I wrote this in ~/.profile. export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="$HOME/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip" Then, cordova got it. was (Author: zyf0330): I wrote this in ~/.profile. {export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="$HOME/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip"} Then, cordova got it. > CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu > > > Key: CB-12500 > URL: https://issues.apache.org/jira/browse/CB-12500 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 6.5.0 > Environment: Ubuntu 16.10 >Reporter: zhuisui > > After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, > `cordova build` print error, and it shows that cordova read gradle path as > '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. > So it treat this url starting with / as a relative path. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12500) CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu
[ https://issues.apache.org/jira/browse/CB-12500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15886986#comment-15886986 ] zhuisui commented on CB-12500: -- I wrote this in ~/.profile. {export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="$HOME/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip"} Then, cordova got it. > CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu > > > Key: CB-12500 > URL: https://issues.apache.org/jira/browse/CB-12500 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 6.5.0 > Environment: Ubuntu 16.10 >Reporter: zhuisui > > After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, > `cordova build` print error, and it shows that cordova read gradle path as > '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. > So it treat this url starting with / as a relative path. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org