This library is a part of OneMDM project. A Library for Android MDM clients to push applications to the device. The library can be integrated with any mobile applications to accept app install messages through FCM.
Add the library in the dependencies section:
dependencies {
...
compile 'com.multunus:apppusher:0.1'
}
In the application’s main activity onCreate
method, start the onemdm-installer service as follows:
public void onCreate() {
...
AppPusher.init();
}
Here is the format of FCM message to push an app to the device:
{
"type": "app_install",
"name": "<App Name>",
"url": "<APK URL>"
}
Once the message is delivered, the device will download the application and prompt the user to install it.