系统分享面板
导航到 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,您的应用还可以作为分享目标出现在其他应用中,把文本、链接或图片接收到您的 v0 Web 应用中。
把这段粘贴到 v0 中以实现 Web 应用端。检查结果,发布,然后在 WebViewGold 应用中测试。
Add native share and haptics for the mobile app version of this Next.js app. Create lib/native.ts (client-only) with isNativeApp() checking navigator.userAgent for "WebViewGold", shareNative(text, url) which sets window.location.href to 'shareapp://message?=' + encodeURIComponent(text) + '&url=' + encodeURIComponent(url) and falls back to navigator.share or clipboard copy, and haptic(kind) mapping light, success and error to lighthaptic://, successhaptic:// and errorhaptic://. Create components/share-button.tsx as a Client Component that receives title and absolute url props. Use it on the item page, and add an "Invite friends" button in settings that shares the user's referral link https://OUR_DOMAIN/join?ref=CODE, with the code created by a Server Action.

在过去5年我们尝试过的所有应用平台中,WebViewGold为我们带来了有史以来最短、最高效的上市时间。我不知道为什么没有更早发现你们,但我真的非常满意。目前我们的应用在iOS App Store和Google Play商店的下载量已超过6000次,没有任何问题!
约 15 分钟。
邀请朋友、分享结果、发送一条商品信息、推荐应用。每一处都放一个按钮:在应用内调用 shareapp://,在浏览器中使用 Web Share API 或复制链接作为回退。
检查 WebViewGold User-Agent(可在 Config.swift / Config.java 中配置),只有在应用内才使用原生 scheme;否则回退到 navigator.share。
表单保存或订单完成后用 successhaptic://,验证错误时用 errorhaptic://,切换开关时用 lighthaptic://。用得少一些,才能保持意义。
给分享出去的 URL 附加 ?ref=share,让 Next.js 路由处理程序和 Server Actions,通过 Neon 或 Supabase 使用 Postgres 能把注册归因到分享。
在应用内和浏览器中都能工作:
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 天内提出申请。