Skip to main content

gnss-session.getstate()

Query the GNSS sub-system’s state

Availability

Device (from impOS™ 43)
Only available on imps with cellular modems

Returns

Table — see below

Description

Call this method to determine whether the GNSS sub-system is enabled. The returned table contains the key status — its value will be one of the following integers:

Value Description
1 the GNSS sub-system is on (as returned by the modem)
0 the GNSS sub-system is off