The AirWatch SDK receives notifications from the AirWatch Console through the implementation of a class which extends the AirWatchSDKBaseIntentService.

  1. Register the receiver.

    In order for your SDK app to listen to these notifications, register the receiver in your Android Manifest file. You can do that by adding the following excerpt to your manifest.

    <uses-permission android:name="com.airwatch.sdk.BROADCAST" /><receiver
                            android:permission="com.airwatch.sdk.BROADCAST" >
                            		// Replace your app package name here
                            		<action android:name="<packagename>.airwatchsdk.BROADCAST" />
                            		<action android:name="android.intent.action.PACKAGE_ADDED" />
                            		<action android:name="android.intent.action.PACKAGE_REMOVED" />
                            		<action android:name="android.intent.action.PACKAGE_REPLACED" />
                            		<action android:name="android.intent.action.PACKAGE_CHANGED" />
                            		<action android:name="android.intent.action.PACKAGE_RESTARTED" />
                            <data android:scheme="package" />
  2. Receive the callback methods.

    Create a class named AirWatchSDKIntentService which extends AirWatchSDKBaseIntentService in the app package path to receive the callback methods.


  3. Register the intent service in your manifest.

    <service android:name="<packagepath>.AirWatchSDKIntentService" />