[jira] [Created] (CB-13842) Android implementation of PluginResult doesn't handle double value
Adriano Di Giovanni created CB-13842: Summary: Android implementation of PluginResult doesn't handle double value Key: CB-13842 URL: https://issues.apache.org/jira/browse/CB-13842 Project: Apache Cordova Issue Type: Bug Components: cordova-android Reporter: Adriano Di Giovanni Assignee: Joe Bowser There is no {code:java} // public PluginResult(Status status, double message){code} and I couldn't find a valid reason for it to be missing. Can I patch? -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13507) git+https or git+ssh fails when trying to install
[ https://issues.apache.org/jira/browse/CB-13507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342997#comment-16342997 ] Warren Crossing commented on CB-13507: -- >From what I read in the code the problem can be explained like this. Cordova can't lookup the module name, because it couldn't work out where npm installed the package, even after it checked the repository/url of the package.json in each and every child of the node-modules directory for the exact url that you supplied in the pluginspec on the cmdline. Your options are to either use a url spec that matches the regexp in is-url/index.js i.e https|http, and have that as the repository/url in the package.json which can be difficult with forks - especially if you don't control the forks. Or let git clone the git repo, then double up and get cordova to install the plugin from the local filesystem. i.e. git clone https://github.com/warrenc5/Mapbox.git cordova plugin add -d ./Mapbox –noregistry The problem with this is that it makes the build highly non portable in some ways, maybe fetch needs to take a hint on the command line of the module name, or this may be a change to pluginspec, but it took me ages to work out what was actually failing. Hope this helps others. > git+https or git+ssh fails when trying to install > - > > Key: CB-13507 > URL: https://issues.apache.org/jira/browse/CB-13507 > Project: Apache Cordova > Issue Type: Bug > Components: AllPlatforms >Affects Versions: 7.0.2 > Environment: I am selecting 7.0.2 since it's the closest but I am > running cordova 7.1.0 > OS: Mac OS X Sierra. > Although I don't think it has anything to do with cordova-ios and > cordova-android, my platform versions are: > - android 6.3.0 > - ios 4.5.2 >Reporter: Pablo Caselas >Priority: Major > Fix For: 7.0.2 > > > I start with adding plugin dependencies with https://.. on package.json > (no plugin references on config.xml) and no platforms or plugins installed > then I run "cordova platform ios". > It installs the plugins without any problem, but changes config.xml and > package.json plugin references from https to git+https, and ssh to git+ssh. > Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. > You might need to try adding it again. Error: Failed to fetch plugin > git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342957#comment-16342957 ] ASF GitHub Bot commented on CB-13415: - alpesh12 commented on issue #310: CB-13415 (iOS) Importing corrupt images using the Camera plugin crashes the app URL: https://github.com/apache/cordova-plugin-camera/pull/310#issuecomment-361145140 @jcesarmobile Yes correct its old code working in iPhoneX and iPad pro also its issue of Out of memory exception iPhone5. With Photos Framework there is no change for image quality and update code for geolocation This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342918#comment-16342918 ] ASF GitHub Bot commented on CB-13415: - alpesh12 commented on issue #310: CB-13415 (iOS) Importing corrupt images using the Camera plugin crashes the app URL: https://github.com/apache/cordova-plugin-camera/pull/310#issuecomment-361145140 @jcesarmobile Yes correct its old code working in iPhoneX and iPad pro also its issue of Out of memory exception iPhone5. With Photos Framework there is no change for image quality and geolocation code. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342914#comment-16342914 ] ASF GitHub Bot commented on CB-13415: - alpesh12 commented on issue #309: CB-13415 (android) Importing corrupt images using the Camera plugin c… URL: https://github.com/apache/cordova-plugin-camera/pull/309#issuecomment-361144370 @jcesarmobile @ShemrickFlannigan added dynamic message as you suggest also @jcesarmobile for iOS code its showing me no changes can you please confirm. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342901#comment-16342901 ] Joe Bowser commented on CB-13840: - I do think improvements to this behaviour and making Android Permissions play nice with WebView permissions when appropriate would be a nice contribution to Cordova, but I don't think we have the bandwidth for this, especially since I'm on sabbatical right now. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342900#comment-16342900 ] Joe Bowser commented on CB-13840: - It seems that I accepted this PR, although I don't remember why since I didn't think it was going to work. That being said, the host application might have to request a permission to play this media from Android, since the original issue CB-9115 was left open since I thought Marshmallow was going to blow this up. It might make sense for a call to the plugins to be here and for the permission to be added instead, and for the original approach to be followed. I really don't like having a paper trail for this issue, and perhaps I had a mind lapse corresponding Jira discussions to GitHub discussions (I hope this migrates to GitHub issues soon), or there was something that happened on Slack (which of course is lost due to it being a free plan). > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342817#comment-16342817 ] Pierre Rudloff commented on CB-13840: - Are you sure about this? What I understand from [the doc|https://github.com/googlesamples/android-PermissionRequest#introduction] is that the webview automatically fires onPermissionRequest when the web content tries to access a protected resource. And I can't find any Java method to manually request a permission. Also, I get a really strange behavior: sometimes when I open my app (like one in fifteen), Widevine is loaded and DRM playback works! When this happens, I can see in logcat that onPermissionRequest is fired as expected. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342814#comment-16342814 ] ASF GitHub Bot commented on CB-13415: - ShemrickFlannigan commented on issue #309: CB-13415 (android) Importing corrupt images using the Camera plugin c… URL: https://github.com/apache/cordova-plugin-camera/pull/309#issuecomment-361117363 @jcesarmobile Thanks for the clarification. I definitely agree that the error message should not be set to the fixed message "Corrupt image selected". I agree with your suggestion of returning the e.getMessage() or e.getLocalizedMessage() value This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342784#comment-16342784 ] jcesarmobile commented on CB-13840: --- Yeah, that's for allowing plugins to request permissions, you have to create a plugin that requests RESOURCE_PROTECTED_MEDIA_ID > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342781#comment-16342781 ] Pierre Rudloff commented on CB-13840: - I had a look at Cordova's Android source code and it seems the permission request is already granted every time: [https://github.com/apache/cordova-android/commit/eb70f05168dcf3a07d8716c772db3a3c3c3a59f8] So I guess there must be something else preventing Widevine from working in Cordova. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Closed] (CB-13821) captureVideo() returns video in 480x320 on ios
[ https://issues.apache.org/jira/browse/CB-13821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jcesarmobile closed CB-13821. - Resolution: Duplicate iOS doesn't support quality option yet. There is an issue open to add it https://issues.apache.org/jira/browse/CB-10180 > captureVideo() returns video in 480x320 on ios > -- > > Key: CB-13821 > URL: https://issues.apache.org/jira/browse/CB-13821 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-media-capture >Reporter: Nicolas Marseaud >Priority: Critical > Labels: beginner > > The full issue is currently discussed here > [https://forum.ionicframework.com/t/media-capture-video-is-low-quality/103774/23] > When using the method captureVideo(), the video is automatically set to > 480x320 on ios > I am working on a ionic-angular project, here is a code sample : > > {code:java} > // code sample > var options = { quality: 1,duration:180 }; > this.mediaCapture.captureVideo(options).then(videodata => { > console.log('start capture video'); > var i; > for (i in videodata) { >let options = { > fileUri: videodata[i].fullPath >}; >if (!this.platform.is('ios')) options['audioChannels'] = 1; >this.videoEditor.getVideoInfo(options).then((videoInfo) => { > console.log('video width : '+videoInfo.width); > console.log('video height : '+videoInfo.height); > // returns 480x320 on ios and 1920x1080 on android >}); > }); > {code} > FYI : I'm developping on android, right now I'm helping a colleague for the > ios version, and this is the last probleme to solve > Env Info : > ionic client : > * @ionic/cli-utils : 1.19.1 > * ionic (Ionic CLI) : 3.19.1 > global packages : > * cordova (Cordova CLI) : 7.1.0 > local packages : > * @ionic/app-scripts : 3.1.2 > * Ionic Framework : ionic-angular 3.9.2 > cordova-plugin-media-capture version used : 3.0.1 > Devices encountering the issue : > * ios 10.3.3 > * ios 9.3 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13819) iPhone in-app browser freezes after send auth request to keycloak server
[ https://issues.apache.org/jira/browse/CB-13819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342777#comment-16342777 ] jcesarmobile commented on CB-13819: --- Can you try with latest version of the plugin? it's 2.0.2 > iPhone in-app browser freezes after send auth request to keycloak server > > > Key: CB-13819 > URL: https://issues.apache.org/jira/browse/CB-13819 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios, cordova-plugin-inappbrowser >Affects Versions: cordova-ios 4.5.0 >Reporter: Jens Stein >Assignee: Suraj Pindoria >Priority: Major > > ios in-app browser of cordova-plugin-inappbrowser freezes screen after send > auth request to keycloak server during test on physical iphone 6. in-app > browser seems to close prematurely before receiving response from keycloak. > platform: ios > ionic-angular": "3.8.0, cordova-ios": "~4.5.3", > cordova-plugin-inappbrowser": "^1.7.2, keycloak-js: "3.4.0" > keycloak client in ionic app: > {code:java} > static keycloakConfigLoginSwitch = { > 'url': ENV.URL.authServer, > 'realm': ENV.INSTANCE.realm, > 'clientId': 'theClientId' > }; > static initUsingLoginSwitch(): Promise { > let keycloakAuth: Keycloak.KeycloakInstance = > Keycloak(KeycloakService.keycloakConfigLoginSwitch); > KeycloakService.auth.loggedIn = false; > return new Promise((resolve, reject) => { > keycloakAuth.init(\{ onLoad: 'login-required', checkLoginIframe: false }) > .success((loggedIn: boolean) => { > // IN APP BROWSER WINDOW FREEZES > if (loggedIn) { > // next steps > } else { > reject('Keycloak did not authenticate client'); > } > }) > .error((error) => { > reject(error); > }); > }); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13822) Cached JS file
[ https://issues.apache.org/jira/browse/CB-13822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jcesarmobile updated CB-13822: -- Priority: Major (was: Critical) > Cached JS file > -- > > Key: CB-13822 > URL: https://issues.apache.org/jira/browse/CB-13822 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Environment: Mac OSX - El Capitan 10.11.6 > Cordova version: 7.1.0 > Target platform: iOS > Target device: iPad (MD523B/A) running 10.2.1 >Reporter: Sadik Yalcin >Priority: Major > Labels: build > > The JS files are cached and there is no way of removing the cache. Only > solution is to remove the platform and re-add it. I've tried clean, build, > run, increment JS version in HTML and nothing helps. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13835) iOS InAppBrowser changing toolbar position to top doesn't alter position webpage
[ https://issues.apache.org/jira/browse/CB-13835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342774#comment-16342774 ] jcesarmobile commented on CB-13835: --- The InAppBrowser plugin has not been updated for the iOS 11 safe areas yet. > iOS InAppBrowser changing toolbar position to top doesn't alter position > webpage > > > Key: CB-13835 > URL: https://issues.apache.org/jira/browse/CB-13835 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser >Reporter: Corneel den Hartogh >Priority: Major > Attachments: Screenshot 2018-01-26 11.25.02.jpg, Screenshot > 2018-01-26 11.28.24.jpg > > > Within the InAppBrowser you can set for iOS the toolbarposition on bottom or > top (bottom is default). When I make it top, the position of the loaded url > (a map in my case) isn't changed. The result is that the toolbar is in front > of the url (where the search box is blocked out of view as can be seen in the > screenshots). > I updated Ionic / Cordova / InAppBrowser but it didn't change anything. > I tried some workaround myself but I was unable to figure it out. Any > suggestions here? -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Closed] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jcesarmobile closed CB-13840. - Resolution: Won't Do This is too specific and the doc say to not add it unless it's required, so we can't add this to Cordova. You can do it yourself by creating a plugin. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Closed] (CB-13841) Error in adding platform
[ https://issues.apache.org/jira/browse/CB-13841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jcesarmobile closed CB-13841. - Resolution: Not A Problem The way of specifying the version is with @ cordova platform android@~7.0.0 works fine, so closing > Error in adding platform > > > Key: CB-13841 > URL: https://issues.apache.org/jira/browse/CB-13841 > Project: Apache Cordova > Issue Type: Bug > Components: AllPlatforms >Reporter: Sampson Rockefellar Ampiaw >Priority: Major > > > C:\Users\kaboat\mtn>cordova platform add android ~7.0.0 > Using cordova-fetch for cordova-android@~7.0.0 > (node:700) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): CordovaError: Failed to fetch platform > cordova-android@~7.0.0 > Probably this is either a connection problem, or platform spec is incorrect. > Check your connection and platform name/version/URL. > Error: cmd: Command failed with exit code ENOENT > (node:700) [DEP0018] DeprecationWarning: Unhandled promise rejections are > deprecated. In the future, promise rejections that are not handled will > terminate the Node.js process with a non-zero exit code. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342622#comment-16342622 ] ASF GitHub Bot commented on CB-13415: - jcesarmobile commented on issue #309: CB-13415 (android) Importing corrupt images using the Camera plugin c… URL: https://github.com/apache/cordova-plugin-camera/pull/309#issuecomment-361073318 I'm just talking about the error message returned `callbackContext.error("Corrupted image selected.");` I don't think we should hardcode the out of memory to "corrupted image selected". In your tests a regular image of 40MB is not crashing, but probably in low end devices will crash, so with the update it will get the "Corrupted image selected." when that is not true. In fact, I have tested your 40MB image in my moto G and I get the "Corrupted image selected. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342616#comment-16342616 ] ASF GitHub Bot commented on CB-13415: - ShemrickFlannigan commented on issue #309: CB-13415 (android) Importing corrupt images using the Camera plugin c… URL: https://github.com/apache/cordova-plugin-camera/pull/309#issuecomment-361072781 @jcesarmobile @infil00p I agree that the OutOfMemoryError is a catch all that is not specific to corrupt images. But in our testing, the OutOfMemoryError is the only exception which we've found that successfully captures the corrupt images. In our testing, there is no correlation with file size. The corrupts sample image which has been provided is < 5MB. The Cordova Camera app can handle non-corrupt images which are 40MB. Here are the sample images: Corrupt 5MB image: https://www.dropbox.com/s/s7jh3eay3y23oy1/5mb_13500x13500.D2%5B1%5D.jpg?dl=0 Valid 40MB image: https://www.dropbox.com/s/cnxykbcvkbc2k1k/Airbus_Pleiades_50cm_8bit_RGB_Yogyakarta.jpg?dl=0 I would like to move forward with the generic OutOfMemoryError as a catch all exception within this Pull Request, as it solves a high impact error (corrupt images crashing the entire Cordova app). Later, if/when a more accurate exception is found, it can be applied as an enhanced exception. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342605#comment-16342605 ] ASF GitHub Bot commented on CB-13415: - jcesarmobile commented on issue #310: CB-13415 (iOS) Importing corrupt images using the Camera plugin crashes the app URL: https://github.com/apache/cordova-plugin-camera/pull/310#issuecomment-361071362 I've checked the code and the geolocation part won't work with this changes. Also adds code duplication and commented code. And the code to avoid the crash is only present for the case that there is no image changes (such as quality, resolution, etc). BTW, as on the Android PR, the problem is not the corrupt image itself, but the increase of memory needed to handle it. The corrupt image works correctly with the old code in iPhone X and iPad pro, but crash the app on an iPod touch. I like the idea of using Photos Framework to get the images, but it still requires more changes before it can be merged. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13415) Importing corrupt images using the Camera plugin crashes the app
[ https://issues.apache.org/jira/browse/CB-13415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16342535#comment-16342535 ] ASF GitHub Bot commented on CB-13415: - jcesarmobile commented on issue #309: CB-13415 (android) Importing corrupt images using the Camera plugin c… URL: https://github.com/apache/cordova-plugin-camera/pull/309#issuecomment-361055486 I've finally tested and the problem is only present when `Camera.DestinationType.DATA_URL`, so I don't think the problem is the corrupted image itself, but the common out of memory problem when using DATA_URL. The sample image is 4MB, that shouldn't be a problem, but maybe being corrupted increase the memory needed to handle it. In the docs you can read: > NOTE: Photo resolution on newer devices is quite good. Photos selected from the device's gallery are not downscaled to a lower quality, even if a quality parameter is specified. To avoid common memory problems, set Camera.destinationType to FILE_URI rather than DATA_URL. So, I don't think you should hardcode the OutOfMemoryError to corrupted image as any big image not corrupted will also cause the OutOfMemoryError. So, @infil00p do you think we should hardcode it to something else? or just return the `e.getMessage()` or `e.getLocalizedMessage()`? The truth is the messages returned are not very helpful, is "failed to allocate byte allocation with free bytes and zzMB until OOM" This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Importing corrupt images using the Camera plugin crashes the app > > > Key: CB-13415 > URL: https://issues.apache.org/jira/browse/CB-13415 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android: OS 7.0, Phone Model: Moto G5 Plus > iOS: OS 10.1.1 (14B150) >Reporter: Shemrick Flannigan >Priority: Critical > Labels: android, camera, cameraui, ios > > ISSUE > Importing corrupt images using the Camera plugin crashes the app > Current Behavior > # Importing a corrupt image using the Cordova Camera plugin crashes the > Cordova app which uses the plugin > Expected Behavior > # Importing a corrupt image using the Cordova Camera plugin: > #* Throws an exception which can be caught by the Cordova app which uses the > plugin > #* Does not crash the Cordova app which uses the plugin > #* Allows the Cordova app which uses the plugin to render a Toast error > message relaying the error > # # Platforms affected > #* Android > #* iOS > REFERENCES > # [Sample corrupt image which crashes the app | > https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0] > # [Technique used to wrap the call in a Try/Catch block in a callable inner > class to prevent an app crash | > https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] > ADDITIONAL INFORMATION > # Importing corrupt images does not crash apps which do not use the Camera > plugin, such as: > #* Yelp mobile app > #* Slack mobile app -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-13841) Error in adding platform
Sampson Rockefellar Ampiaw created CB-13841: --- Summary: Error in adding platform Key: CB-13841 URL: https://issues.apache.org/jira/browse/CB-13841 Project: Apache Cordova Issue Type: Bug Components: AllPlatforms Reporter: Sampson Rockefellar Ampiaw C:\Users\kaboat\mtn>cordova platform add android ~7.0.0 Using cordova-fetch for cordova-android@~7.0.0 (node:700) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch platform cordova-android@~7.0.0 Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform name/version/URL. Error: cmd: Command failed with exit code ENOENT (node:700) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org