Skip to content

Fix Qibla compass fallback - #74

Merged
escalopa merged 1 commit into
mainfrom
agent/fix-qibla-compass-fallback
Aug 19, 2026
Merged

Fix Qibla compass fallback#74
escalopa merged 1 commit into
mainfrom
agent/fix-qibla-compass-fallback

Conversation

@escalopa

Copy link
Copy Markdown
Owner

What changed

  • fall back to the browser Device Orientation API when Telegram orientation tracking is unavailable or relative-only
  • request iOS motion/orientation permission directly from the compass button action
  • retain the numeric Qibla bearing when no absolute heading is available

Root cause

The Mini App treated Telegram's DeviceOrientation API as the only source of a compass heading. That API is unavailable on older Telegram clients, and Telegram documents that a device may return relative orientation even when absolute data is requested. Both conditions were immediately presented as unsupported.

Validation

  • node --check global/internal/adapter/in/miniapp/static/app.js
  • git diff --check
  • Go package tests are blocked before compilation by the local Go toolchain mismatch: cached/precompiled packages are Go 1.26.3 while the active compiler is Go 1.26.5.

@escalopa
escalopa marked this pull request as ready for review August 19, 2026 22:40
@escalopa
escalopa merged commit 5663eb5 into main Aug 19, 2026
4 checks passed
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.

1 participant