NativeJS - Share
Run the following code via javascript to invoke the native share dialog on Android and iOS. You may also use gonative://share/sharePage in your native sidebar and tab menus.
1
window.location.href = 'gonative://share/sharePage';
Copied!
You may also use the following to share a URL other than the current URL:
1
window.location.href='gonative://share/sharePage?url=http://example.com';
Copied!
Please make sure to URL-encode the URL you use https://example.com -> encodeURIComponent(https://example.com) -> https%3A%2F%2Fexample.com
Last modified 5mo ago
Copy link