系统分享面板
导航到 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,您的应用还可以作为分享目标出现在其他应用中,把文本、链接或图片接收到您的 Cursor Web 应用中。
把这段粘贴到 Cursor 中以实现 Web 应用端。检查结果,发布,然后在 WebViewGold 应用中测试。
Read https://www.webviewgold.com/docs/iOS/app-sharing-dialog/ and https://www.webviewgold.com/docs/iOS/haptic-feedback/. Create lib/native.ts with isNativeApp() (navigator.userAgent includes "WebViewGold"), share(text, url) that navigates to 'shareapp://message?=' + encodeURIComponent(text) + '&url=' + encodeURIComponent(url) in the native app and falls back to navigator.share or clipboard copy, and haptic(kind) mapping light, heavy, success, warning and error to the matching haptic:// schemes, queued so two native calls are at least 300 ms apart. Refactor existing share buttons to use it, add haptic('success') after successful mutations, and add an "Invite friends" flow that shares APP_URL/join?ref=CODE with a server-generated referral code. Summarize the changes.
只要有一个优化良好的Web应用版本,几分钟内您就能拥有一个出色的移动应用。除此之外,客户服务非常友好且乐于助人!我只能说:推荐WebViewGold :-)
约 15 分钟。
邀请朋友、分享结果、发送一条商品信息、推荐应用。每一处都放一个按钮:在应用内调用 shareapp://,在浏览器中使用 Web Share API 或复制链接作为回退。
检查 WebViewGold User-Agent(可在 Config.swift / Config.java 中配置),只有在应用内才使用原生 scheme;否则回退到 navigator.share。
表单保存或订单完成后用 successhaptic://,验证错误时用 errorhaptic://,切换开关时用 lighthaptic://。用得少一些,才能保持意义。
给分享出去的 URL 附加 ?ref=share,让 您自己的 API 路由或服务 能把注册归因到分享。
在应用内和浏览器中都能工作:
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 天内提出申请。