package
The sos.management.package
API groups together methods for installing custom Android packages.
Methods
install()
The install()
method installs a certain package from the specified url.
install(baseUrl: string, packageName: string, version: string, build: string | null): Promise<void>;
Params
Name | Type | Description |
---|---|---|
baseUrl | string | URL where the package is available |
packageName | string | Name of the android package |
version | string | Package version |
build | string | null | If relevant for your device |
API Example
import { sos } from '@signageos/front-applet';
void sos.onReady(async () => {
await sos.management.package.install('https://cdn.your-cms.com', 'io.signageosWebView.app.ota', '2.4.0', 'benq');
});