Skip to content

Bluetooth GNSS doesn't report bearing #6

@pyrog

Description

@pyrog

I use Osmand app and when mock location is active, Osmand always display the map with north up.

supportsBearing is false so I guess that even if setBearing is called, the apps don't get any bearing ?

See osmandapp/OsmAnd#13629

locationManager.addTestProvider(LocationManager.GPS_PROVIDER,
/*boolean requiresNetwork*/ false,
/*boolean requiresSatellite*/ true,
/*boolean requiresCell*/ false,
/*boolean hasMonetaryCost*/ false,
/*boolean supportsAltitude*/ true,
/*boolean supportsSpeed*/ true,
/*boolean supportsBearing */ false,
Criteria.POWER_LOW,
Criteria.ACCURACY_MEDIUM);

if (!Double.isNaN(bearing))
newLocation.setBearing(bearing);
else {
//Log.d(TAG, "bearing is nan so not setting in newlocation");
}

PS: Osmand also get 0 satellites

Capture d’écran 2022-01-25 à 20 41 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions