Sharing (Android)
Bridge for opening Android's native share sheet from website JavaScript with support for text, URL, and file payloads.
Bridge object: AndroidShare
Method | Return | Description |
|---|---|---|
|
| Returns |
|
| Returns whether a share target is available for the payload |
|
| Returns |
Auto Shim for navigator.share
On Android, MobiWeb now auto-injects a shim that defines:
navigator.share(...)(if missing)navigator.canShare(...)(if missing)
This lets websites that already use Web Share API trigger the native Android share sheet without website changes.
Payload Shape (Direct Bridge)
Notes:
textandurlare merged into the shared text body when both are present.files[].dataaccepts either pure base64 or full data URL (data:...;base64,...).Files are written to app cache and shared using
FileProviderURIs.
Examples
Using navigator.share (recommended):
Using direct bridge call: