Skip to content

Conversation

@nickw1
Copy link
Contributor

@nickw1 nickw1 commented Nov 11, 2025

Description

Removed try/catch on lines 75-86 of geolocationBackend.ts as described in issue #16. This code is unnecessary as permissions handling is setup by the init() method of DeviceOrientationControls, and errors on environments with no DeviceOrientationEvent.requestPermission() API available.

Test Steps

Build the repo, and test the geolocation app. Error described in issue #16 no longer occurs on my device.

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2025

🦋 Changeset detected

Latest commit: 368c9cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@omnidotdev/rdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nickw1 nickw1 changed the title Remove unnecessary (and erroring on some devices) permission calls in… Remove unnecessary permission calls in geolocationBackend Nov 11, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/omnidotdev/rdk/@omnidotdev/rdk@17

commit: 368c9cf

@coopbri
Copy link
Contributor

coopbri commented Nov 12, 2025

Works for me on both Pixel 9 and iPhone 12. Thanks @nickw1 good catch!

Closes #16

@coopbri coopbri merged commit 68b6de2 into omnidotdev:master Nov 12, 2025
4 checks passed
@coopbri
Copy link
Contributor

coopbri commented Nov 12, 2025

Landed in v0.2.1

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.

2 participants