Skip to content

feat(ohos): mobile native plugins, bridge facade adaptation, and permission request fallbacks - #25

Open
ljy9812 wants to merge 1 commit into
Eulogizethesun:ohdevfrom
ljy9812:ohdev-adjust
Open

feat(ohos): mobile native plugins, bridge facade adaptation, and permission request fallbacks#25
ljy9812 wants to merge 1 commit into
Eulogizethesun:ohdevfrom
ljy9812:ohdev-adjust

Conversation

@ljy9812

@ljy9812 ljy9812 commented Aug 22, 2026

Copy link
Copy Markdown

Changes

  • New OHOS ArkTS plugins: geolocation, barcode-scanner, biometric, haptics, nfc; notification registerListener/removeListener + action dispatch
  • geolocation watchPosition channel emit streaming; requestPermissions four-path settle fallback (requestPermissionsFromUser promise can hang on map-preview dialog) + polled permission read (selfPermissionStateChange fires before ATM commit)
  • barcode-scanner: same settle fallback pattern for CAMERA permission
  • bridge facade adaptation + OHOS cross-check enablement
  • OHOS adaptations for opener/clipboard/window-state/single-instance/process/notification; cfg isolation fixes
  • gate opener/window-state desktop-only APIs for mobile compile; fix window-state update_state freeze (skip sync is_minimized/is_maximized)

Impact

OHOS only; all ArkTS plugins live under openharmony/ per-plugin directories and Rust code is gated with cfg(target_env = "ohos"). Other platforms unchanged.

Testing

Verified on HUAWEI MateBook Pro (desktop form, API 23):

  • geolocation permission dialog grant path settles in ~3s with correct granted status; watchPosition emit streaming works
  • barcode-scanner CAMERA permission fallback, haptics, nfc, biometric covered by api example manual cases
  • cargo check clean for both the OHOS mobile target (OHOS_DEVICE_TYPE=mobile) and Windows native target
  • Local checklist review passed: 0 Blocker / 0 Major (5 Minor noted)

Related

Supersedes #22. Counterpart PRs: tauri#75, tao#21, wry#21, muda#5, tray-icon#9, openharmony-ability#46, window-vibrancy#3.

…ission request fallbacks

- New OHOS ArkTS plugins: geolocation, barcode-scanner, biometric, haptics,
  nfc; notification registerListener/removeListener + action dispatch
- geolocation watchPosition channel emit streaming; requestPermissions
  four-path settle fallback (requestPermissionsFromUser promise can hang
  on map-preview dialog) + polled permission read
  (selfPermissionStateChange fires before ATM commit)
- barcode-scanner: same settle fallback pattern for CAMERA permission
- bridge facade adaptation + OHOS cross-check enablement
- OHOS adaptations for opener/clipboard/window-state/single-instance/
  process/notification; cfg isolation fixes
- gate opener/window-state desktop-only APIs for mobile compile; fix
  window-state update_state freeze (skip sync is_minimized/is_maximized)

Verified on device: geolocation permission dialog grant path settles in
~3s with correct granted status; watchPosition emit streaming works.

Co-Authored-By: Claude <noreply@anthropic.com>
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