Commit Graph

82 Commits

Author SHA1 Message Date
Manuel Beck
90ad137398 fix(ios)! remove iPadOS popover code (#941)
- On iPadOS it was possible to configure a popover for setting the position, width and arrow position of the popover.  The code used the deprecated `UIPopoverController`, which would have to be fixed. To keep the plugin also maintainable, this was removed.
- The popover could repositioned with a `CameraPopoverHandle` on a `window.onorientationchange`. This was removed also.
- Removed documentation for popover from `README.md`
2026-01-15 17:26:37 +01:00
Manuel Beck
dc682b2532 feat(ios): use PHPickerViewController for iOS 14+ (#937)
- Does not need any permissions for reading images
- The PHPickerViewController class is an alternative to UIImagePickerController. PHPickerViewController improves stability and reliability, and includes several benefits to developers and users, such as the following:
- Deferred image loading and recovery UI
- Reliable handling of large and complex assets, like RAW and panoramic images
- User-selectable assets that aren’t available for UIImagePickerController
- Configuration of the picker to display only Live Photos
- Availability of PHLivePhoto objects without library access
- Stricter validations against invalid inputs
- See documentation of PHPickerViewController: https://developer.apple.com/documentation/photosui/phpickerviewcontroller?language=objc
- Added tests for PHPickerViewController in `CameraTest.m`

* Documentation and formatting

- Document `takePicture` and `showCameraPicker` in `CDVCamera.m`
- A pragmas for UIImagePickerControllerDelegate methods and CLLocationManager methods
- Format some long methods declarations to multi-line instead single-line for better readability
- Remove unnecessry `dispatch_async(dispatch_get_main_queue() ...` in `takePicture` before calling `showCameraPicker`. This is already done in `showCameraPicker`.
- Source out code for permission denied alert dialog when accessing the camera or UIImagePickerController on iOS < 14 for picking images

* feat(ios): proper formatting of methods

- Use linux brace style: A brace have to be on a new line for method declarations
- Remove unnecessary whitespaces in method declrations

* doc: readme update

- Better document usage descriptions
- `NSPhotoLibraryUsageDescription` not needed for iOS 14+ when only picking images
- Improve formatting for xml, js
- sourceType `SAVEDPHOTOALBUM` is the same as `PHOTOLIBRARY` on Android and iOS 14+
- Use `PHOTOLIBRARY` as sourceType instead of `SAVEDPHOTOALBUM` in  photo picker example

* Android: Document `SAVEDPHOTOALBUM``

- Make clear that `SAVEDPHOTOALBUM` is the same like `PHOTOLIBRARY` and has only an effect on iOS < 14
- Format code when creating image chooser and document the request code parameter
2026-01-13 08:33:59 +01:00
エリス
b002b48735 chore: remove trailing whitespace (#921) 2025-01-15 16:03:14 +09:00
Norman Breau
4c9dc10512 deprecation: allowEdit (#914)
* deprecation: allowEdit

* applied suggestions to verbiage
2024-10-30 09:48:20 -03:00
Norman Breau
48c4cdd47f refactor(android): Make WRITE_EXTERNAL_STORAGE optional (#909)
* refactor(android): Rework permission management to make WRITE_EXTERNAL_STORAGE optional

* removed unused getPermissions API

* Proper error if WRITE_EXTERNAL_STORAGE is required but missing the declaration

* removed obsolete hasPermissions API
2024-10-28 15:21:37 -03:00
Norman Breau
7d159cf3c9 docs: Revisions for v8 public API changes with the return string formats of getPicture (#913) 2024-10-28 14:01:04 -03:00
jcesarmobile
20293f3d64 fix!: remove deprecated platforms (#848) 2023-09-01 00:34:30 +02:00
jcesarmobile
d0d46c151c docs(README): Document ANDROIDX_CORE_VERSION variable (#808) 2022-09-25 05:03:51 +02:00
エリス
879712028a ci: add action-badge (#765) 2021-09-25 01:04:05 +09:00
エリス
204234b1b9 ci: remove travis & appveyor (#764) 2021-09-25 00:07:07 +09:00
jcesarmobile
0333d001c7 breaking: remove NATIVE_URI DestinationType (#637) 2020-08-07 14:38:05 +02:00
Norman Breau
2a750f0fa1 Merge pull request #508 from rtpHarry/patch-1
docs(readme): app renamed to Google Photos
2020-04-24 23:09:49 -03:00
jcesarmobile
6feaa95559 docs(README): remove confusing comment (#513) 2019-10-20 01:05:19 +02:00
jcesarmobile
c887c229f0 docs(README): remove orphan windows phone 7 note (#512) 2019-10-19 17:07:21 +02:00
Matthew Harris
6900fbaefa docs(readme): app renamed to Google Photos 2019-09-25 22:04:31 +07:00
jcesarmobile
7ddb3dfbbe Remove deprecated platforms from docs (#394) 2018-12-10 00:52:39 +01:00
Ams
cd72047dfc CB-13865: (IOS-Ipad) Making popover Window Size configurable using popoverOptions - imagePicker (#314) 2018-11-25 13:59:51 +01:00
Jan Piotrowski
bfbe4a1e52 fix quirk 2018-11-23 20:18:31 +01:00
Jan Piotrowski
a5a3d88152 clarify android quirk of cameraDirection 2018-11-20 23:40:08 +01:00
jcesarmobile
07e85742aa Remove automatic README generation (#365) 2018-11-01 16:13:52 +01:00
jcesarmobile
c0d78ad644 Revert "Bump minor version to 4.1.0-dev (#357)" (#363)
This reverts commit 7ee91a927d.
2018-10-30 16:44:58 +01:00
jcesarmobile
7ee91a927d Bump minor version to 4.1.0-dev (#357) 2018-10-24 13:26:07 +02:00
Jan Piotrowski
bcb26fbbd2 remove JIRA link 2018-10-04 01:15:01 +02:00
Nicco Kunzmann
ead7d5e6c2 replace warning emoji with warning unicode (#317)
Due to the use of the emoji, the documentation page shows
⚠️ instead of ⚠.
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/index.html
2018-05-19 12:04:58 +02:00
jcesarmobile
e36482c7ba Fix a mistake in the examples of usage descriptions (#313) 2018-02-12 10:36:58 +01:00
Tsuruda
e25aed97c5 modified init value (#264) 2018-02-11 18:22:34 +01:00
Steve Gill
4ae0de1c5e CB-13681 Updated version and RELEASENOTES.md for release 4.0.0 (via coho) 2017-12-15 17:25:06 -08:00
Suraj Pindoria
7fad5d5786 CB-13661: Remove deprecated platforms 2017-12-12 11:09:29 -08:00
Steve Gill
d456eeb711 CB-13542 Updated version and RELEASENOTES.md for release 3.0.0 (via coho) 2017-11-06 14:37:41 -08:00
Steve Gill
f761934814 Merge pull request #290 from JoseExposito/master
CB-13421: (osx) Added macOS support
2017-11-03 22:21:09 -07:00
Julio César
51d665a7a1 CB-13332 (iOS): document NSPhotoLibraryAddUsageDescription
This closes #296
2017-10-21 17:27:52 +02:00
Julio César
9f480b10cb CB-13264 (iOS): Remove ios usage descriptions
This closes #295
2017-10-21 16:45:13 +02:00
Julio César
3e24b15934 CB-13446: Sync template with previous doc changes
This closes #291
2017-10-19 18:38:08 -07:00
Kelvin Dart
2acda2d2f9 CB-13294 Remove cordova-plugin-compat
This closes #293
2017-10-19 18:28:14 -07:00
José Expósito
97d2014d62 Adds macOS support 2017-10-10 17:11:10 +02:00
Alexander Sorokin
e69240f251 CB-12991: (CI) Updated CI badges 2017-07-06 13:58:47 +03:00
Jacques de Villiers
7155b636d5 Incorrect "JIRA issue tracker" link in Readme 2017-06-19 14:37:15 +01:00
Shazron Abdullah
160ed2d03f CB-12912 - Incorrect 'Report Bugs' link in README
This closes #270
2017-06-14 01:59:09 -07:00
Alexander Sorokin
9615620843 CB-12622: Updated build badges in README 2017-04-26 14:29:16 +03:00
Julio César
5ebda25164 Closing invalid pull request: close #247 2017-01-31 01:12:01 +01:00
Alexander Sorokin
81f9433606 CB-12363 Added build badges for iOS 9.3 and 10.0 2017-01-18 13:27:26 +03:00
Alexander Sorokin
42fc8e0bcd CB-12230 Removed Windows 8.1 build badges 2016-12-09 14:22:12 +03:00
Vladimir Kotikov
c9e6a9a38a CB-12086 Regenerate README.md from template 2016-11-14 10:01:22 +03:00
Steve Gill
cc1076d3cb CB-11832 Updated version and RELEASENOTES.md for release 2.3.0 2016-09-08 23:38:52 -07:00
Jacques de Villiers
9b566d3f0b CB-11661: (ios) Add mandatory iOS 10 privacy description
Add support for photoalbum description

 This closes #236
2016-09-06 23:22:58 +02:00
Vladimir Kotikov
9fe94479e2 CB-11661: (ios) Add mandatory iOS 10 privacy description
This commit adds corresponding change to README template so changes from a3af38a won't be lost
2016-09-01 16:08:20 +03:00
Steve Gill
2f89666db7 Revert "close #229"
This reverts commit fa58e83fca.
2016-08-30 11:51:59 -07:00
Steve Gill
fa58e83fca close #229 2016-08-25 16:20:16 -07:00
mhartington
a3af38ad5b CB-11661: (ios) Add mandatory iOS 10 privacy description 2016-08-25 16:17:28 -07:00
Vladimir Kotikov
b89645c749 CB-11295 Add WP8.1 quirk when choosing image from photoalbum 2016-08-23 16:18:13 +03:00