Skip to content

feat(geolocation): support for non-GMS devices - #3377

Open
cfpwastaken wants to merge 8 commits into
tauri-apps:v2from
cfpwastaken:v2
Open

feat(geolocation): support for non-GMS devices#3377
cfpwastaken wants to merge 8 commits into
tauri-apps:v2from
cfpwastaken:v2

Conversation

@cfpwastaken

Copy link
Copy Markdown

Closes #2115
I also fixed an issue where the watchPosition() command wouldn't actually resolve (and thus never returning a channel id) and added the watchPosition/clearWatch commands to the example app.
I can split these changes off if needed.

@cfpwastaken
cfpwastaken requested a review from a team as a code owner April 3, 2026 15:05
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 70d32cd

There are 32 changes which include deep-link with patch, deep-link-js with patch, dialog with patch, dialog-js with patch, fs with patch, fs-js with patch, geolocation with minor, geolocation-js with minor, haptics with patch, haptics-js with patch, http with minor, http-js with minor, log with patch, log-js with patch, persisted-scope with patch, positioner with patch, positioner-js with patch, single-instance with patch, sql with patch, sql-js with patch, stronghold with patch, stronghold-js with patch, updater with minor, updater-js with minor, upload with patch, upload-js with patch, websocket with patch, websocket-js with patch, nfc with patch, nfc-js with patch, notification with minor, notification-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.46 2.0.47
api-example-js 2.0.42 2.0.43
deep-link-example-js 2.2.12 2.2.13
deep-link 2.4.9 2.4.10
deep-link-js 2.4.9 2.4.10
fs 2.5.1 2.5.2
fs-js 2.5.1 2.5.2
dialog 2.7.2 2.7.3
dialog-js 2.7.2 2.7.3
geolocation 2.3.2 2.4.0
geolocation-js 2.3.2 2.4.0
haptics 2.3.2 2.3.3
haptics-js 2.3.2 2.3.3
http 2.5.9 2.6.0
http-js 2.5.9 2.6.0
log 2.9.0 2.9.1
log-js 2.9.0 2.9.1
nfc 2.3.5 2.3.6
nfc-js 2.3.5 2.3.6
notification 2.3.3 2.4.0
notification-js 2.3.3 2.4.0
persisted-scope 2.3.7 2.3.8
positioner 2.3.3 2.3.4
positioner-js 2.3.3 2.3.4
single-instance 2.4.3 2.4.4
sql 2.4.0 2.4.1
sql-js 2.4.0 2.4.1
stronghold 2.3.1 2.3.2
stronghold-js 2.3.1 2.3.2
updater 2.10.1 2.11.0
updater-js 2.10.1 2.11.0
upload 2.4.0 2.4.1
upload-js 2.4.0 2.4.1
websocket 2.4.2 2.4.3
websocket-js 2.4.2 2.4.3

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@cfpwastaken cfpwastaken changed the title Add support for the geolocation plugin on non-GMS devices feat(geolocation): support for non-GMS devices Apr 3, 2026
@tomkel

tomkel commented May 21, 2026

Copy link
Copy Markdown

Thank you for starting this, I don't use Google Play Services and this has been blocking me from adopting Tauri.

@Legend-Master

Copy link
Copy Markdown
Contributor

Seem like all the APIs used here will require API level 31? We'll need to guard them since the plugin still wants to support older devices.

@cfpwastaken

Copy link
Copy Markdown
Author

Good point. Will look into that.
API Level 31 is for Android 12, 2021. Makes sense to guard that.
I'm also just noticing that the CI is screaming at the changeset file.

Comment thread .changes/geolocation-non-gms.md
Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
@cfpwastaken

Copy link
Copy Markdown
Author

Is this gonna be a problem?
image

@FabianLars

Copy link
Copy Markdown
Member

no, all good

@cfpwastaken

Copy link
Copy Markdown
Author

That should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat][Geolocation] Add support for getCurrentPosition via Android Framework Location API

4 participants