Acknowledgments
- The ANE was created on FB 4.7 using Air Compiler 19.
- Appoxee SDK Version used by this plugin is 4.0.7.
Prerequisites
- Having an Appoxee Application setup properly with everything that is needed for creating an iOS Application, as explained here.
ANE Package Content
- The Appoxee SDK Framework (Headers and library)
- The Appoxee SDK-Adobe Air Bridge Library
Integration Instructions :
- Download the ANE+SWC files from the Appoxee Download Page.
- Create a new ActionScript Mobile Project, as shown in the image.
- Name your project , as shown in the image.
- In the new project's dialog under Platform Settings choose the Device target family. Make sure that "Apple iOS" is ticked under "Target Platforms"
- in the new project's dialog under Build Paths tab, in the Library Path tab, Add the Appoxee SWC. add other SWC files if you use other 3rd party libs.
- in the new project's dialog under Build Paths tab, in the Native Extensions tab, Add the Appoxee ANE. add other ANE files if you use other 3rd party libs.
- After the project is generated, go into it's properties,Make sure all ANE files you added including Appoxee's are ticked on. Press OK.
In your app's main .as file , add the following code :
Code into your main .as file//Add this to imports : import com.appoxee.AppoxeeANE; //Add this to class : private var _appoxeeANE:AppoxeeANE; //Add the class's constructor : _appoxeeANE = new AppoxeeANE("YOUR_APP_KEY","YOUR_SECRET_KEY",handleIncomingPushMessage); ... //Add this method to get notified when push messages arrive to the device private function handleIncomingPushMessage(payload:String):void { trace("Handle Incoming Push Message Called with : "+result); //handle push payload in callback }
Push Notification Callback and Extra Fields Parsing
The method handleIncomingPushMessage() id the method that will be called every time a push notification will be received by the device. Further explanation on using the Incoming Push Notification Callback Method can be found here.
- This conclude the basic integration of the ANE. Click here to see API usage.