Unable to set iOS camera permissions with AIR SDK 24
As the air sdk 24 was released, it introduced the permissions API. Currently I have an app that targets the iOS platform and when it tries to access the camera, it fails with Error #3800: This call requires Camera permission.
I have tried to follow the example provided in the SDK release notes (12/13/2016 - Release - AIR 24 Runtime and SDK but when calling cam.requestPermission(); as outlined in the example, the app is crashing silently and the debugger doesn't show any error.
I am using Adobe Flash Builder 4.7 with AirSDK 24 installed and the target device is an iPad AIR with iOS 10.1.
One note though is that I have tried debugging the following properties/method calls:
Camera.permissionStatus
cam.requestPermission();
and in my console result both undefined, even though in Flash Builder it clearly shows that I am using AIR SDK 24 and also the xml app descriptor also is using version 24, is it possible that the IDE in debug mode is using another SDK version?
My fear is that the Flex SDK 4.6 that I am using in the IDE is replacing the AIR SDK and that is why the new methods/properties are not available, I have tried overlaying the Flex SDK with the AIR SDK but the IDE is complaining about that and it seems I cannot overlay Flex SDK 4.6 with AIR SDK 24.
Any thoughts on how can I be sure that I am debugging my app using the AIR SDK 24 with the Flash Builder 4.7 and also request camera permissions from the user?
