Manage emulators, simulators and real devices
npm install mobile-devices-managerProvides basic mathods as:
-subscribeForDevice for device. Accepts:
{ platform :platformName, name: name, info: info, apiLevel:apiLevel }
{ platform :platformName, token: token, info: info, apiLevel:apiLevel }
{ type :deviceType, name: name, info: info, apiLevel:apiLevel }
-unsubscribeFromDevice for {token: device.token}.
-boot device.
-kill device.
Basically works with query of type IDevice exposed in mobile-devices-controller
export interface IDevice {
name: string,
token: string,
type: DeviceType,
platform: Platform,
status?: Status,
startedAt?: number,
busySince?: number,
pid?: number,
apiLevel?: string,
info?: string,
config?: any,
}
Install the node packages via:
$ npm install
DEVICE_INFO_STORAGE=path to storage. Set evn variable USE_MONOGDB_STORAGE=true
$ brew update$ brew install mongodb
#### Create database default folder
mkdir -p data/db
#### Run mongodb
mogod