Installation

Adobe Air is supported using the third party provider RaygunAS.

Building the Client

Clone the repository and build the .swc file..

Copy the .swc file to wherever you have your libs and all is set.

Usage

Go to your app and put the following lines in the main Sprite class, after some initial setup is complete, but before the main drawing begins:

_raygunAs = new RaygunAS(this,RAYGUN_API_KEY, APP_VERSION);
_raygunAs.addEventListener(RaygunAS.READY_TO_ZAP, onRaygunReady);
    _raygunAs.chargeRaygun();
}

private function onRaygunReady( event:Event ):void
{
    //do logic here
}

Initialize your main method in the onRaygunReady callback, this will allow RaygunAS to capture an error at any point in the stack.

That’s that for the setup, and now if you create an Error RaygunAS will be triggered and send the Error report to your app’s dashboard.

Additionally you can attach a _RaygunAs.RAYGUNCOMPLETE listener to your RaygunAS instance in order to catch those error. It handles _UncaughtErrorEvent.UNCAUGHTERROR events.

The provider is open source and available at the RaygunAS repository.

On this page: