系统分享面板
导航到 shareapp://message?=Check this out&url=https://app.yourdomain.com/item/42,原生分享对话框就会带着您的文字和链接打开。用户自行选择想用的应用。
导航到 shareapp://message?=Check this out&url=https://app.yourdomain.com/item/42,原生分享对话框就会带着您的文字和链接打开。用户自行选择想用的应用。
从隐藏的 iframe 或 window.location 调用 lighthaptic://、mediumhaptic://、heavyhaptic://、successhaptic://、warninghaptic:// 或 errorhaptic://,为关键操作提供触觉反馈。
借助 ShareIntent API,您的应用还可以作为分享目标出现在其他应用中,把文本、链接或图片接收到您的 Base44 Web 应用中。
把这段粘贴到 Base44 中以实现 Web 应用端。检查结果,发布,然后在 WebViewGold 应用中测试。
Add native sharing and subtle haptic feedback to this app; both only work inside our mobile app, detected by navigator.userAgent containing "WebViewGold". 1) Add a Share button on each item page: inside the mobile app set window.location.href to 'shareapp://message?=' + encodeURIComponent(title) + '&url=' + encodeURIComponent(itemUrl); in a browser use navigator.share or copy the link with a toast. 2) Add an "Invite friends" button in Settings that shares the invite link /join?ref= plus a referral code stored on the user record (create it if missing). 3) Wherever a success toast is shown, first navigate to 'successhaptic://'; on errors navigate to 'errorhaptic://'. Never trigger two of these navigations at the same moment.

出色的工作!无需任何编码就能轻松完成。简单快捷!创作者也提供了大力帮助!
约 15 分钟。
邀请朋友、分享结果、发送一条商品信息、推荐应用。每一处都放一个按钮:在应用内调用 shareapp://,在浏览器中使用 Web Share API 或复制链接作为回退。
检查 WebViewGold User-Agent(可在 Config.swift / Config.java 中配置),只有在应用内才使用原生 scheme;否则回退到 navigator.share。
表单保存或订单完成后用 successhaptic://,验证错误时用 errorhaptic://,切换开关时用 lighthaptic://。用得少一些,才能保持意义。
给分享出去的 URL 附加 ?ref=share,让 Base44 内置实体(数据库)、文件存储和后端函数 能把注册归因到分享。
在应用内和浏览器中都能工作:
function shareItem(text, url) {
var inApp = navigator.userAgent.indexOf("WebViewGold") !== -1;
if (inApp) {
window.location.href = "shareapp://message?=" + encodeURIComponent(text) + "&url=" + encodeURIComponent(url);
} else if (navigator.share) {
navigator.share({ text: text, url: url });
} else {
navigator.clipboard.writeText(url);
}
}
function haptic(kind) {
if (navigator.userAgent.indexOf("WebViewGold") !== -1) { window.location.href = kind + "haptic://"; }
}部分可用,取决于系统 WebView。shareapp:// scheme 是可靠的方式,能在两个平台上提供完整的原生分享面板。
有效,同样的触感 scheme 会在支持的 Android 设备上触发震动马达。
它是审核人员能看到的原生能力之一;与推送通知和离线处理结合,能支撑准则 4.2 的论点。
结果相同,只是您需要投入的工作量不同。三种方式都附带审核通过保证和 7×24 小时人工支持。
$109 每个平台,一次性付费
WebViewGold 许可证:一个现成的 Xcode 或 Android Studio 项目。粘贴您的 URL,设置名称和图标,开启所需功能,构建并提交。永久免费更新。
在主页查看方案$349 每个许可证,一次性附加购买
无需 Mac、Xcode 或 Android Studio:在浏览器中完成配置,我们在云端构建两个应用,并将其交付到 App Store Connect 和 Play Console。
Cloud Builder 如何运作 试用免费演示$698 每个平台 $798
把您的 URL 和图标发给我们。我们的团队在 72 小时内完成配置、构建并交付您的应用,白标,附源码项目。两个平台共 $1,158。
Full Service 详情 服务提供方:冬季特惠价格有效期至 2026年12月31日。
App Store & Google Play 审核通过保证 – 否则 14 天内退款
想直接交给我们?Full Service:我们在 72 小时内完成配置、构建并交付,每个平台 $698 起。有疑问?通过 7×24 小时在线聊天联系我们。
退款依据我们 FAQ 中列出的条件:应用因非内容原因被 Apple 和/或 Google 拒审,并在购买后 14 天内提出申请。