You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Amazon Fire OS Quirks <aname="camera-getPicture-quirks"></a>
464
-
465
-
Amazon Fire OS uses intents to launch the camera activity on the device to capture
466
-
images, and on phones with low memory, the Cordova activity may be killed. In this
467
-
scenario, the image may not appear when the Cordova activity is restored.
468
-
469
459
#### Android Quirks
470
460
471
461
Android uses intents to launch the camera activity on the device to capture
@@ -481,10 +471,6 @@ successful.
481
471
482
472
Can only return photos as Base64-encoded image.
483
473
484
-
#### Firefox OS Quirks
485
-
486
-
Camera plugin is currently implemented using [Web Activities][web_activities].
487
-
488
474
#### iOS Quirks
489
475
490
476
Including a JavaScript `alert()` in either of the callback functions
@@ -511,23 +497,8 @@ To avoid this we suggest using SPA pattern or call `camera.getPicture` only from
511
497
512
498
More information about Windows Phone 8.1 picker APIs is here: [How to continue your Windows Phone app after calling a file picker](https://msdn.microsoft.com/en-us/library/windows/apps/dn720490.aspx)
513
499
514
-
#### Tizen Quirks
515
-
516
-
Tizen only supports a `destinationType` of
517
-
`Camera.DestinationType.FILE_URI` and a `sourceType` of
- Any `cameraDirection` value results in a back-facing photo.
526
-
527
-
- Ignores the `allowEdit` parameter.
528
-
529
-
-`Camera.PictureSourceType.PHOTOLIBRARY` and `Camera.PictureSourceType.SAVEDPHOTOALBUM` both display the same photo album.
530
-
531
502
#### Android Quirks
532
503
533
504
- Any `cameraDirection` value results in a back-facing photo. (= You can only use the back camera)
@@ -538,38 +509,6 @@ Tizen only supports a `destinationType` of
538
509
539
510
- Ignores the `encodingType` parameter if the image is unedited (i.e. `quality` is 100, `correctOrientation` is false, and no `targetHeight` or `targetWidth` are specified). The `CAMERA` source will always return the JPEG file given by the native camera and the `PHOTOLIBRARY` and `SAVEDPHOTOALBUM` sources will return the selected file in its existing encoding.
540
511
541
-
#### BlackBerry 10 Quirks
542
-
543
-
- Ignores the `quality` parameter.
544
-
545
-
- Ignores the `allowEdit` parameter.
546
-
547
-
-`Camera.MediaType` is not supported.
548
-
549
-
- Ignores the `correctOrientation` parameter.
550
-
551
-
- Ignores the `cameraDirection` parameter.
552
-
553
-
#### Firefox OS Quirks
554
-
555
-
- Ignores the `quality` parameter.
556
-
557
-
-`Camera.DestinationType` is ignored and equals `1` (image file URI)
558
-
559
-
- Ignores the `allowEdit` parameter.
560
-
561
-
- Ignores the `PictureSourceType` parameter (user chooses it in a dialog window)
562
-
563
-
- Ignores the `encodingType`
564
-
565
-
- Ignores the `targetWidth` and `targetHeight`
566
-
567
-
-`Camera.MediaType` is not supported.
568
-
569
-
- Ignores the `correctOrientation` parameter.
570
-
571
-
- Ignores the `cameraDirection` parameter.
572
-
573
512
#### iOS Quirks
574
513
575
514
- When using `destinationType.FILE_URI`, photos are saved in the application's temporary directory. The contents of the application's temporary directory is deleted when the application ends.
@@ -578,29 +517,6 @@ Tizen only supports a `destinationType` of
578
517
579
518
- When using `destinationType.NATIVE_URI` and `sourceType.PHOTOLIBRARY` or `sourceType.SAVEDPHOTOALBUM`, all editing options are ignored and link is returned to original picture.
580
519
581
-
#### Tizen Quirks
582
-
583
-
- options not supported
584
-
585
-
- always returns a FILE URI
586
-
587
-
#### Windows Phone 7 and 8 Quirks
588
-
589
-
- Ignores the `allowEdit` parameter.
590
-
591
-
- Ignores the `correctOrientation` parameter.
592
-
593
-
- Ignores the `cameraDirection` parameter.
594
-
595
-
- Ignores the `saveToPhotoAlbum` parameter. IMPORTANT: All images taken with the WP8/8 Cordova camera API are always copied to the phone's camera roll. Depending on the user's settings, this could also mean the image is auto-uploaded to their OneDrive. This could potentially mean the image is available to a wider audience than your app intended. If this is a blocker for your application, you will need to implement the CameraCaptureTask as [documented on MSDN][msdn_wp8_docs]. You may also comment or up-vote the related issue in the [issue tracker][wp8_bug].
596
-
597
-
- Ignores the `mediaType` property of `cameraOptions` as the Windows Phone SDK does not provide a way to choose videos from PHOTOLIBRARY.
## Sample: Take Pictures, Select Pictures from the Picture Library, and Get Thumbnails <aname="sample"></a>
605
521
606
522
The Camera plugin allows you to do things like open the device's Camera app and take a picture, or open the file picker and select one. The code snippets in this section demonstrate different tasks including:
0 commit comments