目录

CheckForUpdateOptions

Options of app.checkForUpdate().

import { CheckForUpdateOptions } from '@mobrowser/api';

Example 

import { app } from '@mobrowser/api';

const result = await app.checkForUpdate('https://app.com/updates/admin', {
  headers: { Authorization: `Bearer ${token}` },
})

Properties 

headers 

headers?: Record<string, string>;

HTTP headers sent to the update server, for example credentials.

Any header can be set except these reserved ones, which the transport sets itself (compared case-insensitively): Accept, Accept-Encoding, Connection, Content-Length, Host, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, TE, Trailer, Transfer-Encoding, Upgrade, User-Agent.