Adobe has finally updated the Android SDK in AIR 24 and has introduced the Permissions as an AS3 API along with some other cool new features which has made us very happy. You may find the release notes here. However, there are two downsides regarding the built-in AS3 solution that you might consider using an ANE solution instead. If you are reading this, it’s probably because you are facing these problems and found this page after some Googling, right? 🙂
Let’s have more control over permissions in your AIR apps
So let’s mention the problems that we’re facing and also take a look at the solutions.
1. AS3 now supports only the following Permissions.
But what if you need other Permissions? Our PermissionChek ANE supports the following Permissions:
- LOCATION (we support this permission in our GPS ANE)
2. The AS3 solution requires you to actually initialize a related API in order to be able to manage the Permissions. For example, if you want to manage the camera permissions, you need to use the flash.media.Camera; class in your project. But what if you are dealing with a barcode scanner ANE? What if you need to manage a specific Permission without having to mess around with related AS3 APIs? Well, in those cases, the Permission ANE is just the perfect tool you need because it allows you manage permissions independent of any other APIs.
Checkout our GitHub Repository sample usage code to see how easily you can manage different Permissions.
Enjoy building Adobe Air apps.