Commit Graph

47 Commits

Author SHA1 Message Date
Julio César
7c90555bd4 CB-13854(ios): fix Camera opens in portrait orientation on iphones 2018-02-11 21:44:56 -05: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
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
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
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
Shazron Abdullah
e8fa1695c4 CB-10241 - App Crash cause by Camera Plugin ios 7 2015-12-22 17:54:07 -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
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
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
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
Connor Pearson
af36e74d05 CB-8780 - Display popover using main thread. Fixes popover slowness (closes #81) 2015-04-10 17:30:28 -07:00
Gene Connolly
04ed502d92 CB-8351 Fix custom implementation of integerValueForKey (close #79)
2ead6335c9 (diff-3cfd0e1f93894bd4e501e8e0e4634850)
2015-03-30 20:10:24 -04:00
Ian Clelland
9e4174caff CB-8659: ios: 4.0.x Compatibility: Remove use of deprecated headers 2015-03-13 10:46:47 -04:00
Jesse MacFadyen
2a93a48956 Fix localize key for Videos. This closes #58 2015-03-09 17:34:36 -07:00
Murat Sutunc
bca73e6ee9 CB-8599 fix threading issue with cameraPicker (fixes #72)
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2015-03-03 14:09:29 -08:00
Andrew Grieve
80b0048384 CB-8351 ios: Stop using now-deprecated [NSData base64EncodedString] 2015-01-27 10:56:19 -05:00
Andrew Grieve
2ead6335c9 CB-8351 ios: Stop using now-deprecated integerValueForKey: class extension 2015-01-27 10:47:04 -05:00
Andrew Grieve
2a0735d551 CB-8351 Unbreak build from previous commit 2015-01-27 10:19:46 -05:00
Andrew Grieve
4f056f0a73 CB-8351 Use argumentForIndex rather than NSArray extension 2015-01-23 09:49:20 -05:00
Shazron Abdullah
376bec2b96 CB-8032 - Camera Plugin - Add nativeURL external method support for CDVFileSystem->makeEntryForPath:isDirectory: (closes #57) 2015-01-09 16:24:31 -08:00
Shazron Abdullah
482f2ac2cc CB-7938 - Added XCTest unit tests project, with stubs (adapted from SplashScreen unit test setup) (closes #60) 2015-01-09 16:04:28 -08:00
Shazron Abdullah
35c653d24d CB-7937 - Re-factor iOS Camera plugin so that it is testable (closes #52)
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2015-01-09 15:39:29 -08:00
Kris Selden
0d389857cf Fix memory leak of image data in imagePickerControllerReturnImageResult
A __bridge_retained cast increments the count and requires a CFRelease, this should just be __bridge a cast since it isn’t being held onto by this method.

close #51
2014-10-09 20:26:45 -04:00
ktsour
3581c595d7 CB-7551 - [Camera][iOS 8] Scaled images show a white line
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2014-09-15 23:13:34 -07:00
Wang Jinggang
513bfde49e CB-7558 - hasPendingOperation flag in Camera plugin's takePicture should be reversed to fix memory errors
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2014-09-15 15:34:18 -07:00
Shazron Abdullah
ae22820046 CB-4003 - Add config option to not use location information in Camera plugin (and default to not use it) 2014-09-05 11:08:15 -07:00
Shazron Abdullah
fa30a56760 CB-7461 - Geolocation fails in Camera plugin in iOS 8 2014-09-05 11:08:15 -07:00
Shazron Abdullah
42bf5d2983 CB-7180 - Update Camera plugin to support generic plugin webView UIView (which can be either a UIWebView or WKWebView) 2014-08-11 23:13:15 -07:00
Andrew Grieve
1650dce693 ios: Delete postImage (dead code) 2014-06-27 13:49:56 -04:00
Andrew Grieve
7b60a0b6d1 Remove deprecated symbols for iOS < 6 2014-06-04 14:22:41 -04:00
RemeR
0c9de56da5 CB-6576 - Returns a specific error message when app has no access to library.
Signed-off-by: Shazron Abdullah <shazron@apache.org>
2014-04-30 16:03:37 -07:00
James Jong
91d6e10b29 CB-6212 iOS: fix warnings compiled under arm64 64-bit
-one update to CDVCamera.m
2014-03-13 10:16:30 -04:00
James Jong
c9bab1f94c CB-6212 iOS: fix warnings compiled under arm64 64-bit 2014-03-13 09:51:47 -04:00
Shazron Abdullah
4e6cf5cc2e CB-4958 - iOS - Camera plugin should not show the status bar 2013-10-15 10:29:54 -07:00
James Jong
9bcf725e39 [CB-4823] Fix XCode 5 camera plugin warnings 2013-09-16 15:13:35 -04:00
James Jong
b702aaf440 [CB-3482] Allow image metadata to be saved to album on iOS
-pass in metadata when saving to album using ALAssetsLibrary
2013-08-14 13:10:24 -07:00
James Jong
5f98661e0d [CB-3453] Save original picture to photo library
- saves original picture when the following camera options are set for no edits (i.e. allowEdit is false, correctOrientation is false, targetWidth/targetHeight are not specified)
- this mirrors cordova-android behavior
- testing done with mobile-spec auto and manual tests
2013-08-14 13:10:24 -07:00
James Jong
a9b79ebb44 [CB-3757] camera.getPicture from photolib fails on iOS
-set data pointer properly when there's no controller metadata
2013-06-17 17:48:15 -04:00
Steven Gill
f8948fb0bc fixed another mistake 2013-05-23 16:00:39 -07:00
Steven Gill
0b6342e56c updated plugin.xml, native src files 2013-05-23 14:51:18 -07:00
hermwong
fc2c9bd082 add iOS classes to plugin 2013-05-21 12:10:15 -07:00