Copy link to clipboard
Copied
I use Adoe Air 22 beta on iOS 9.2.1 and 9.3.1.
When I make a call:
var PICcamera:CameraUI;
PICcamera.launch(MediaType.IMAGE);
..the app crashes. Also, the app crashes when I try to use a cameraRoll extension from distriqt (maybe for the same reason?).
When I used Air 21 the cameraUI worked, but unfortunately (as I read) I cannot upload such a windows build to the appStore.
Copy link to clipboard
Copied
Hi, I see you have not created the object of CameraUI.
Please try the following.
var PICcamera:CameraUI= new CameraUI();
PICcamera.launch(MediaType.IMAGE);
Let us know if it works.
-Roshan
Adobe AIR
Copy link to clipboard
Copied
Thanks for answering, Roshan.
I have created the object, I just didn't mentioned in my previous post.
The call was working fine in previous Air versions, something is wrong in Air 22 beta. I posted the issue hoping that it will be fixed before the final release.
For reference, the full code is like this:
var PICcamera:CameraUI;
if (CameraUI.isSupported) {
PICcamera = new CameraUI();
PICcamera.addEventListener(MediaEvent.COMPLETE, PICmediaEventComplete);
PICcamera.addEventListener(Event.CANCEL, PICmediaEventCancel);
PICcamera.addEventListener(ErrorEvent.ERROR, PICmediaEventError);
PICcamera.launch(MediaType.IMAGE);
}
If I remove the "launch" the app does not crash.
The app is allowed to access camera and photos.
Copy link to clipboard
Copied
Hi,
We have reproduced the issue at our end.
Our Engineering team will be looking into this. We will let you know as soon as the issue is fixed.
-Roshan
Adobe AIR
Copy link to clipboard
Copied
Thanks a lot Roshan, good to know.
Copy link to clipboard
Copied
This bug has been fixed in the latest beta. please check it from : Download Adobe AIR 22 Beta - Adobe Labs
Let us know if you face any issues.
-Roshan
Copy link to clipboard
Copied
Thanks a lot Roshan,
this bug has been fixed!