feat(ohos): mobile native plugins, bridge facade adaptation, and permission request fallbacks - #25
Open
ljy9812 wants to merge 1 commit into
Open
feat(ohos): mobile native plugins, bridge facade adaptation, and permission request fallbacks#25ljy9812 wants to merge 1 commit into
ljy9812 wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Impact
OHOS only; all ArkTS plugins live under
openharmony/per-plugin directories and Rust code is gated withcfg(target_env = "ohos"). Other platforms unchanged.Testing
Verified on HUAWEI MateBook Pro (desktop form, API 23):
cargo checkclean for both the OHOS mobile target (OHOS_DEVICE_TYPE=mobile) and Windows native targetRelated
Supersedes #22. Counterpart PRs: tauri#75, tao#21, wry#21, muda#5, tray-icon#9, openharmony-ability#46, window-vibrancy#3.