Joe Bowser
c8581ba2c9
Merge pull request #275 from cjpearson/CB12953
...
CB-12593: (android) Fix potential FileProvider conflicts
2018-03-14 12:44:35 -07:00
Julio César
7c90555bd4
CB-13854(ios): fix Camera opens in portrait orientation on iphones
2018-02-11 21:44:56 -05:00
Alpesh Patel
bf935dfbd2
CB-13415 (android) Importing corrupt images using the Camera plugin c… ( #309 )
...
* CB-13415 (android) Importing corrupt images using the Camera plugin crashes the app
2018-02-08 13:12:16 +01:00
Joe Bowser
4b99623eda
Merge pull request #308 from okode/android8_permission_request_fix
...
CB-13781: (android) Fixed permissions request on Android 8 to save a …
2018-01-15 14:13:07 -08:00
rpanadero
36ea63a60f
CB-13781: (android) Fixed permissions request on Android 8 to save a photo into the photo album
2018-01-15 13:05:10 +01:00
Suraj Pindoria
7fad5d5786
CB-13661: Remove deprecated platforms
2017-12-12 11:09:29 -08:00
José Expósito
97d2014d62
Adds macOS support
2017-10-10 17:11:10 +02:00
Audrey So
16c4325fef
CB-12895 : updated src files to use eslint format
2017-07-31 13:29:36 -07:00
Audrey So
80342b0ddd
CB-12985 : setup eslint and removed jshint
2017-07-31 11:28:15 -07:00
José Luis Ballesteros del Val
3b8f64e330
CB-12964: (android) Fix of bug when Pictures folder did not exist.
...
If someone had removed Pictures folder in android, plugin failed trying to move there the new photo. This happened because plugin did not check the existence of this folder, and if not, it did not complete the folder tree.
This closes #273
2017-07-04 14:03:10 +03:00
Connor Pearson
cfefa53272
CB-12593: (android) Fix potential FileProvider conflicts
2017-06-30 10:15:43 -04:00
Sergii Stotskyi
c3d7e55ad4
CB-12682: (ios, android): changes cancel error message to be consistent for ios android
2017-06-07 07:36:30 +03:00
Joe Bowser
bba8283d98
CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency
...
This closes #252
2017-02-02 12:10:42 -08:00
Sergey Zolotarev
d29c767f07
CB-12368: Fix permission check on Android
...
The plugin was checking whether camera permission was granted but then
actually requested permission for external storage.
Surprisingly enough this fixed CB-12368.
2017-01-30 23:52:54 +01:00
Shazron Abdullah
8b83171ee2
Fix missing license headers.
2016-12-07 16:19:39 -08:00
Tyler Pham
a201722f6d
CB-11714: (windows) added extra check for content-type in savePhoto() without options.targetWidth/Height
2016-12-01 14:12:01 -05:00
Joe Bowser
84f96c1067
CB-11625: Files Provider does not work with Android 4.4.4 or lower, and I have no idea why. Working around with CordovaUri
2016-10-27 13:37:03 -07:00
Joe Bowser
61064ae3ed
CB-11625 (Android) : Make this work with previous versions of Cordova via cordova-plugin-compat
2016-10-21 15:12:34 -07:00
Joe Bowser
b63a0d83e0
Merging API 24 code with master including large refactor
2016-09-01 15:11:33 -07:00
swbradshaw
f8682b9162
Removed unneeded file
...
This closes #197
2016-08-29 10:46:14 -07:00
swbradshaw
0ed6406864
Merge remote-tracking branch 'refs/remotes/apache/master'
...
Rebase from Master
2016-08-26 20:30:35 -04:00
Tyler Pham
c98607c613
CB-11714: (windows) added more explicit content-type when converting to target data on canvas
...
This closes #232
2016-08-25 10:00:41 +03:00
Simon MacDonald
6e19147b09
Plugin uses Android Log class and not Cordova LOG class
2016-08-22 15:52:52 -04:00
Joe Bowser
3ed3d887ca
BuildConfig from test project crept in source code thanks to Android Studio, removing
2016-08-04 11:35:39 -07:00
Joe Bowser
00e0a7dc46
CB-11625: Managed to get Content Providers to work with a weird mix of Content Providers and non-Content Providers
2016-08-03 14:43:11 -07:00
Julio César
c13e9f327b
CB-11376: (ios): fix CameraUsesGeolocation error
...
If it's not a camera picture don't use geolocation
This closes #226
2016-08-02 00:16:38 +02:00
Julio César
3f8c53f7f3
CB-11410: (ios) fix cameraPopoverHandle.setPosition
...
This closes #224
2016-07-31 18:25:03 +02:00
Joe Bowser
b62fdf50f7
Adding provider_paths.xml so this works
2016-07-29 13:33:51 -07:00
Joe Bowser
3d26986bfd
CB-11625: Working on fix to API 24 no longer allowing File URIs to be passed across intents
2016-07-27 14:06:07 -07:00
Vladimir Kotikov
fed798e6c7
CB-11447 Respect output format when retrieving images from gallery
2016-07-26 15:59:52 +03:00
Julio César
0115458ce8
Set android quality default value to 50 on the java code
...
Default value is set to 80 on the java code, but doc says that default
value is 50.
I’m changing it just for making code clearer, but default value is set
to 50 to all platforms in Camera.js if no value is passed
2016-05-16 19:43:01 +02:00
Keith M
39bff2f41d
CB-11228 browser: Add classes for styling purposes
...
This closes #212
2016-05-13 11:58:11 -07:00
Keith M
7551778e13
CB-10139 browser: Respect target width and height
...
This closes #210
2016-05-13 11:56:43 -07:00
swbradshaw
e3a431cbeb
Reverted indenting done by Android Studio
2016-05-12 21:25:36 -04:00
swbradshaw
832d6e3bea
Adding missing function
2016-05-12 13:19:35 -04:00
Keith M
af98d57417
CB-11227 browser: Fix incorrect mime type
...
This closes #211
2016-05-09 14:09:30 -07:00
swbradshaw
f2b4eeded0
CB-4078: Fix for orientation/scaling on Android 4.4+ devices
...
The only way to get rotation for photos in library (Gallery, File
System, Google Drive,etc) is to first create a temporary file from the
provider. Only then can we determine the orientation and scale the
bitmap correctly. By doing it in a central place, it eliminates reading
the inputstream repetitively in the plugin.
2016-04-27 22:27:37 -04:00
Omar Mefire
4202fff7ac
CB-10873
...
- Avoid crash due to usage of uninitialized variable when writing geolocation data to image destination
- Properly handle 'CameraUsesGeolocation' option by properly setting geolocation data in EXIF header in all cases
This closes #205
2016-04-13 15:49:51 -07:00
Omar Mefire
def399fe51
CB-10873 Avoid crash due to usage of uninitialized variable when writing geolocation data to image destination
2016-04-13 15:49:50 -07:00
Simon MacDonald
a9c18710f2
Replace PermissionHelper.java with cordova-plugin-compat
2016-04-05 12:17:18 -04:00
Raghav Katyal
624ddd5ced
Making focus handler work only for windows 10 phone
2016-03-23 18:33:09 -07:00
riknoll
0cd962466d
CB-10120 android: Fixing use of constants and PermissionHelper
...
This closes #179
2016-03-14 17:56:52 -07:00
ochakov
c12206ebc8
CB-10120 android: Fix missing CAMERA permission for Android M
...
According to the PR conversation, when android.permission.CAMERA
is not set in the package, there is no need to ask for the
camera permission. Also, checking now camera and storage
permissions separately, so if only one of them is missing, the
other one will be requested and not both.
Rebased by MatthewBooth and riknoll
This closes #142 , closes #174
2016-03-14 17:03:26 -07:00
Julio César
76c129c95e
CB-10460 getRealPath return null in some cases
...
Now there is only a function to get the real path on API 11 and above.
2016-03-11 20:43:08 +01:00
Richard Knoll
a19c75253a
CB-10825 android: Always request READ permission for gallery source
...
This closes #191
2016-03-09 17:56:20 -08:00
Raghav Katyal
9c906b2ab7
CB-10414: Adding focus handler to resume video when user comes back on leaving the app while preview was running
2016-03-02 14:15:01 -08:00
Raghav Katyal
2cd2528d1c
Adding missing semi colon
2016-02-29 10:30:40 -08:00
Raghav Katyal
5f7f4f3e55
Adding focus handler to make sure filepicker gets launched when app is active
2016-02-26 14:15:27 -08:00
Miguel Revetria
20dcaf2cb3
CB-10128: [iOS] Fixed how checks access authorization to camera & library. This closes #146
2016-02-24 16:10:20 -08:00
daserge
b16c5234d5
CB-10636 Add JSHint for plugins
2016-02-24 17:14:58 +03:00
Julio César
16636d18f2
Added a lot of more cases to get the real path
...
Added a lot of more cases to get the real path
This closes #175
2016-02-22 11:54:22 -08:00
Julio César
019346d188
Fix for CB-10625
...
getDocumentId was crashing in some cases.
Now, in case it crashes, it will use the original uri to query.
2016-02-22 11:23:53 -08:00
Sarangan Rajamanickam
77653183dd
CB-10576: MobileSpec can't get results for Windows-Store 8.1 Builds
...
Fixing a minor syntax issue
2016-02-09 16:17:17 -08:00
Raghav Katyal
654286d373
CB-10539: Commenting out the verySmallQvga maxResolution option
2016-02-05 15:03:19 -08:00
Raghav Katyal
76ad059c9c
CB-10541: Changing default maxResoltion to be highestAvailable for CameraCaptureUI
2016-02-04 12:14:16 -08:00
Laurent Deketelaere
5b38453262
CB-10113 Browser - Layer camera UI on top of all!
...
Adds CSS style {position: 'relative', z-index: 2147483647} (2147483647 is the highest possible z-index) on DOM appended elements.
This closes #134
2016-02-02 17:02:15 +10:00
Tim Barham
e48a7e5c5c
CB-10502 Fix camera plugin exception in Chrome when click capture.
...
The MediaStream.stop() method has been deprecated as of Chrome 47. We were using it, and it was generating an exception.
If stop() method is not found, instead stop each individual track (the new way of doing it).
2016-02-02 16:31:39 +10:00
Raghav Katyal
06fcbf05a2
Adding comments
2016-01-21 14:11:59 -08:00
PerfectionCSGO
9a9081b0d4
Camera tapping fix
2016-01-21 14:07:51 -08:00
riknoll
1d32ea46f0
CB-10319 android: Adding reflective helper methods for permission requests
2016-01-12 17:42:29 -08:00
riknoll
e2193631d5
CB-9189 android: Implementing save/restore API to handle Activity destruction
2016-01-05 14:18:43 -08:00
Shazron Abdullah
e8fa1695c4
CB-10241 - App Crash cause by Camera Plugin ios 7
2015-12-22 17:54:07 -08:00
Raghav Katyal
ef5484a2aa
CB-8940 Setting z-index values to maximum for UI buttons. This closes #140 .
2015-11-19 17:36:06 -08:00
Jesse MacFadyen
63ac782b32
remove unneeded weakness
2015-11-17 16:56:35 -08:00
Jesse MacFadyen
7f3a0a5483
CB-8863 correct block usage for async calls
2015-11-17 16:37:45 -08:00
riknoll
036cdfdeb8
CB-5479 android: changed saveToPhotoAlbum to save uncompressed images
2015-11-17 12:03:30 -08:00
riknoll
2bb134bf6b
CB-9169 android: Fixed filetype for uncompressed images and added quirk
2015-11-10 17:26:07 -08:00
Joe Bowser
88592575fe
CB-9446 related: Removing CordovaResource library code in favour of the code we're supposed to be deprecating because that at least works.
2015-11-09 14:28:58 -08:00
riknoll
9b444c39ba
CB-9910 android: Add permission request for some gallery requests
2015-11-02 15:25:33 -08:00
Joe Bowser
44475d9df9
Using the CordovaResourceApi to fine paths of files in the background thread. If the file doesn't exist, return the content URI
...
We also do a refactor to bring this in line. This code got bike-shedded
a bit.
2015-10-22 16:19:13 -07:00
Joe Bowser
cbe17eec21
Fix permission handling
2015-10-22 16:19:12 -07:00
Joe Bowser
8024c5de49
CB-9583: Permissions for Marshmallow
2015-10-22 16:19:12 -07:00
Nelson Antunes
dbe3e3d2ca
Try to use realpath filename instead of default modified.jpg
2015-10-15 01:21:05 +01:00
Jesse MacFadyen
a030c52f7f
change 'case' to else-if. This closes #113
2015-10-14 18:08:01 +03:00
Julio César
b8a68af63f
CB-6190 - iOS camera plugin ignores quality parameter
...
CB-6190 - iOS camera plugin ignores quality parameter in some
circunstances
Added a check to not downscale if quality is 100 or sourceType !=
UIImagePickerControllerSourceTypeCamera (according to the docs, images
from gallery aren’t downscaled). This closes #108
2015-10-14 17:09:44 +03:00
sgrebnov
837d6721f2
CB-9633 iOS Taking a Picture With Option destinationType:NATIVE_URI Doesn't Show Image
...
This closes #122
2015-10-14 16:19:48 +03:00
sgrebnov
454a6f518c
CB-9622 Windows Phone 8 Camera Option destinationType:NATIVE_URI is a NO-OP
...
• WP8 proxy now supports NATIVE_URI param
• Treat NATIVE_URI same way as FILE_URI (similar to Android).
This closes #119
2015-09-09 13:01:48 +03:00
Vladimir Kotikov
dca8bd1943
CB-9623 Fixes various issues when encodingType set to png
2015-09-08 17:18:57 +03:00
Jakub Navrátil
cad9ab0419
CB-9591 Retaining aspect ratio when resizing
2015-09-01 10:49:12 -07:00
Murat Sutunc
ee5cfe89a5
CB-9443 Pick correct maxResolution
...
This closes #111 , closes #56
2015-08-03 15:45:55 -07:00
Murat Sutunc
813d143667
CB-9151 Trigger captureAction only once
2015-08-03 10:09:15 -07:00
Murat Sutunc
110b3b3388
CB-9413 Close RandomAccessStream once copied
2015-07-27 11:39:38 -07:00
Gillardo
c50757c245
CB-9349 Focus control and nice UI
...
Removed old comment, move style text. close #106
2015-07-10 10:03:36 -07:00
Joe Bowser
899802a202
CB-9259: Forgot to add another check on which URI we're using when fixing this thing the first time
2015-07-07 14:27:44 -07:00
Shazron Abdullah
1e607ddcc8
CB-9247 - typo
2015-06-25 06:22:24 -07:00
Shazron Abdullah
63110ea54c
CB-9247 - Added macro to conditionally add NSData+Base64.h
2015-06-25 06:20:25 -07:00
Shazron Abdullah
b683315be6
CB-9247 - Fixes compilation errors with cordova-ios 4.x
2015-06-25 06:09:59 -07:00
vladimir
363dd02584
Fix returning native url on windows.
2015-06-17 16:14:58 -05:00
Murat Sutunc
a6cc9271a0
CB-8883 fix picture rotation issue
2015-05-26 12:32:53 -07:00
Jesse MacFadyen
b3430e6f80
one more alias
2015-05-20 16:31:59 -07:00
Jesse MacFadyen
888a9661fb
Fixed some nit white-space issues, aliased a little more
2015-05-20 16:17:57 -07:00
Jesse MacFadyen
15f66bf5cd
major refactor : readability
2015-05-18 21:38:34 -07:00
Jesse MacFadyen
33ffb17c97
Patch for CB-8498, this closes #64
2015-05-18 17:32:14 -07:00
Murat Sutunc
a830b3e08b
CB-8879 fix stripe issue with correct aspect ratio
2015-05-13 11:50:03 -07:00
Dan Polivy
9f9e5ef4a9
CB-7667 iOS8: Handle case where camera is not authorized ( closes #49 )
...
In iOS 7+, when the app does not have access to the camera, show a
prompt notifying the user so they're not puzzled by looking at a black
screen.
In iOS 8+, include a link on the dialog to open the Setting app to allow
the user to change their Camera privacy setting.
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2015-05-11 17:26:00 -07:00
Murat Sutunc
69c687e0cf
CB-8943 fix PickAndContinue issue on Win10Phone
2015-05-06 12:05:36 -07:00
Alan Kinzie
b0ee9dd905
CB-8253 Fix potential unreleased resources
...
There was a place (~line 701) in CameraLauncher.java where there was the
potential for input and output streams to never be closed if an exception
occurs at the wrong time. There were some other places where an
InputStream was used anonymously, and so would never be closed.
This change introduces try/finally blocks to ensure that the streams will
always end up closed.
Change-Id: I479bceddcd631bfec45c3f5ee7e88ddb04c59073
Signed-off-by: Joe Bowser <bowserj@apache.org>
(Closes #90 )
2015-05-06 10:17:43 -07:00
Joe Bowser
c2e0db2b86
CB-8909: Remove unused import from File
2015-04-24 14:24:47 -07:00
Murat Sutunc
8f07f562a2
CB-8404 typo fix cameraproxy.js
...
There was a missing comma on cameraproxy
github close #89
2015-04-22 14:39:40 -07:00
Murat Sutunc
1e8c836844
CB-8404 Rotate camera feed with device orientation
...
CR-1
CR-2
2015-04-21 10:56:04 -07:00