[jira] [Comment Edited] (CB-13858) Camera not able to capture image Android 8.0 and above

2019-02-24 Thread Hazem Saleh (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-13858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16776169#comment-16776169
 ] 

Hazem Saleh edited comment on CB-13858 at 2/24/19 9:06 AM:
---

Confirmed that it works fine with me in Android 8.1.0 (Nokia AndroidOne device) 
after getting latest code from master. cc [~macdonst]


was (Author: hazems):
Confirmed that it works fine with me in Android 8.1.0 (in AndroidOne device) 
after getting latest code from master. cc [~macdonst]

> Camera not able to capture image Android 8.0  and above
> ---
>
> Key: CB-13858
> URL: https://issues.apache.org/jira/browse/CB-13858
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
>Affects Versions: cordova-android-7.0.0
> Environment: Android OS 8.0
> Ionic Framework
> Angualr 4
>Reporter: Akashdeep Sharma
>Priority: Major
>
> Hi,
>  
> When ever i try to take image using the plugin from android os 8.0 or above i 
> get error saying image not capture. But i am able to select image from gallery



--
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-13858) Camera not able to capture image Android 8.0 and above

2019-02-24 Thread Hazem Saleh (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-13858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16776169#comment-16776169
 ] 

Hazem Saleh commented on CB-13858:
--

Confirmed that it works fine with me in Android 8.1.0 (in AndroidOne device) 
after getting latest code from master. cc [~macdonst]

> Camera not able to capture image Android 8.0  and above
> ---
>
> Key: CB-13858
> URL: https://issues.apache.org/jira/browse/CB-13858
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
>Affects Versions: cordova-android-7.0.0
> Environment: Android OS 8.0
> Ionic Framework
> Angualr 4
>Reporter: Akashdeep Sharma
>Priority: Major
>
> Hi,
>  
> When ever i try to take image using the plugin from android os 8.0 or above i 
> get error saying image not capture. But i am able to select image from gallery



--
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-14004) Android SAVEDPHOTOALBUM - appends extra information to the end of FILE_URI '?value'

2019-02-24 Thread Hazem Saleh (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-14004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16776161#comment-16776161
 ] 

Hazem Saleh commented on CB-14004:
--

Checking Camera plugin code, I found that the value that is appended to the URL 
represents a timestamp and it was mainly done like this to be a workaround in 
order to avoid deleting the album image by the app since it is placed in app 
cache when you select it cc [~macdonst]

> Android SAVEDPHOTOALBUM - appends extra information to the end of FILE_URI 
> '?value'
> ---
>
> Key: CB-14004
> URL: https://issues.apache.org/jira/browse/CB-14004
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
> Environment: Android devices (tested on Samsung, LG, Wiko, Huawei) 
> Version Android : 4.4 to 7.0
>Reporter: Yeria Topalian
>Priority: Major
>  Labels: FILE_URI, PictureSourceType, SAVEDPHOTOALBUM, android, 
> camera, getPicture
>
> Hello,
>  
> When we upload a file from Library, the plugin appends a parameter with mark 
> question like that *picture_1522245584282.jpg?1522245512731*
>  
> Code example :  
> {code:java}
> // for Android Library
> srcType = Camera.PictureSourceType.SAVEDPHOTOALBUM;
> options = {
>   quality: 100,
>   width : 500,
>   height : 500,
>   targetWidth : 500,
>   targetHeight : 500,
>   destinationType: Camera.DestinationType.FILE_URI,
>   sourceType: srcType,
>   // encodingType: Camera.EncodingType.JPEG,
>   mediaType: Camera.MediaType.PICTURE,
>   allowEdit: true,
>   correctOrientation: true  //Corrects Android orientation quirks
> };
> navigator.camera.getPicture(function cameraSuccess(imageUri) {
>   // You may choose to copy the picture, save it somewhere, or upload.
>   let fullPath = WebAppLocalServer.localFileSystemUrl(imageUri);
> }, function cameraError(error) {
>   console.debug(error.reason);
> }, options);
> {code}
>  
> We use that solution for the moment :
> {code:java}
> let fullPath = WebAppLocalServer.localFileSystemUrl(imageUri.split('?')[0]);
> {code}
> But we think it's not a good solution.
> How can we prevent the addition of the mark question parameter ?
>  
> Thanks,
> Yeria
>  
>  
>  



--
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] [Comment Edited] (CB-14219) LG Phones saving images on saveToPhotoAlbum: false

2019-02-24 Thread Hazem Saleh (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-14219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16776156#comment-16776156
 ] 

Hazem Saleh edited comment on CB-14219 at 2/24/19 8:56 AM:
---

I could not replicate this scenario with the latest code in master. Can you try 
again? cc [~macdonst]


was (Author: hazems):
I could not replicate this scenario with the latest code in master. Can you try 
again?

> LG Phones saving images on saveToPhotoAlbum: false
> --
>
> Key: CB-14219
> URL: https://issues.apache.org/jira/browse/CB-14219
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
>Reporter: sravan
>Priority: Major
>  Labels: LG, LG-K3, android6.0
>
> Despite of options set to `*saveToPhotoAlbum: false*`, I'm able to save the 
> images on my phone by executing in following steps. 
> *Steps to reproduce:*
>  # open camera app
>  # capture photo
>  # Captured Image is shown (preview) with the option to cancel or accept the 
> image.
>  # Select Cancel on preview of image
>  # capture photo again
>  # accept the image on the preview screen
>  # Notice that both the cancelled and accepted images are saved in the photo 
> album.
>  



--
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-14219) LG Phones saving images on saveToPhotoAlbum: false

2019-02-24 Thread Hazem Saleh (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-14219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16776156#comment-16776156
 ] 

Hazem Saleh commented on CB-14219:
--

I could not replicate this scenario with the latest code in master. Can you try 
again?

> LG Phones saving images on saveToPhotoAlbum: false
> --
>
> Key: CB-14219
> URL: https://issues.apache.org/jira/browse/CB-14219
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
>Reporter: sravan
>Priority: Major
>  Labels: LG, LG-K3, android6.0
>
> Despite of options set to `*saveToPhotoAlbum: false*`, I'm able to save the 
> images on my phone by executing in following steps. 
> *Steps to reproduce:*
>  # open camera app
>  # capture photo
>  # Captured Image is shown (preview) with the option to cancel or accept the 
> image.
>  # Select Cancel on preview of image
>  # capture photo again
>  # accept the image on the preview screen
>  # Notice that both the cancelled and accepted images are saved in the photo 
> album.
>  



--
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-14047) Enhancement: Replacing Repeated String literals with final variables

2018-04-21 Thread Hazem Saleh (JIRA)
Hazem Saleh created CB-14047:


 Summary: Enhancement: Replacing Repeated String literals with 
final variables
 Key: CB-14047
 URL: https://issues.apache.org/jira/browse/CB-14047
 Project: Apache Cordova
  Issue Type: Improvement
  Components: cordova-plugin-camera
Affects Versions: cordova-android-7.0.0
Reporter: Hazem Saleh


Replacing Repeated String literals with final variables.



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