GnssNavigationMessage.Callback support?

116 views
Skip to first unread message

Chad Nelson

unread,
Jun 24, 2017, 12:33:31 PM6/24/17
to GPSTest
Both my wive's Nexus 5x and my Pixel return 0 (i.e. "Not Supported") from onStatusChanged when I register a GnssNavigationMessage callback.

LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
lm.registerGnssNavigationMessageCallback(new GnssNavigationMessage.Callback() {
    @Override
    public void onGnssNavigationMessageReceived(GnssNavigationMessage event) {
        // ...
    }

    @Override
    public void onStatusChanged(int status) {
        // ...
    }
});

Does anyone know which devices (if any) currently support the raw navigation messages?

Sean Barbeau

unread,
Jun 25, 2017, 10:46:17 PM6/25/17
to GPSTest
Chad,
That's a great question, I've been wondering the same.  Here's some notes on what I've found so far for navigation messages and pseudorange data, via my own and others' observations:
https://github.com/barbeau/gpstest/blob/master/FAQ.md#what-android-70-devices-support-logging-raw-pseudorange-and-navigation-messages

According to this table only the Nexus 9 non-cellular version supports navigation messages.

I could have sworn that my LG G5 supported at least pseudorange data (and maybe navigation messages?) when I first implemented logging support for this in GPSTest, but I just checked now and I'm seeing the same "0 - not supported" callback in onStatusChanged() too.  I'm not sure if something changed in a firmware update or if I'm remembering incorrectly.

If anyone else wants to report on their device capabilities here, I'll add them to the above table.

Here are the instructions for how to see NMEA, navigation messages, and pseudorange data using GPSTest with Android Studio:

I'll also work on surfacing the onStatusChanged() results in the UI of GPSTest to make it easier for users to see what their device supports - issue opened at:

Sean

Sean Barbeau

unread,
Jun 27, 2017, 8:52:08 PM6/27/17
to GPSTest
I also just stumbled on this, which includes more devices - I'll add this to the above GPSTest page too:
https://developer.android.com/guide/topics/sensors/gnss.html#supported_devices
Reply all
Reply to author
Forward
0 new messages