跳至内容
WebViewGold 从 Vibe Coding 到 App Store
中文
获取 WebViewGold

Cursor + 分享 & 触感反馈

您的 Cursor 应用的原生分享面板和触感反馈

两件小事能让 Cursor 应用在第一分钟就有原生感:一个真正的分享面板(AirDrop、信息、WhatsApp、邮件)而不是复制的链接,以及操作成功时的轻微震动。WebViewGold 把两者都作为 URL 调用提供,您可以接到现有按钮上。

每个平台一次性 $109 起,或由我们的团队全程代劳,$698 起。

  • 审核通过保证 – 否则 14 天内退款
  • 无需编程
  • 一次性付费,免费更新
  • 7×24 小时人工支持
  • 2014 年起德国出品 · ISO 27001

您将获得什么

系统分享面板

导航到 shareapp://message?=Check this out&url=https://app.yourdomain.com/item/42,原生分享对话框就会带着您的文字和链接打开。用户自行选择想用的应用。

触感反馈

从隐藏的 iframe 或 window.location 调用 lighthaptic://、mediumhaptic://、heavyhaptic://、successhaptic://、warninghaptic:// 或 errorhaptic://,为关键操作提供触觉反馈。

接收分享(Android)

借助 ShareIntent API,您的应用还可以作为分享目标出现在其他应用中,把文本、链接或图片接收到您的 Cursor Web 应用中。

给 Cursor 的提示词

把这段粘贴到 Cursor 中以实现 Web 应用端。检查结果,发布,然后在 WebViewGold 应用中测试。

给 Cursor 代理的提示词
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 :-)

朱利安·科赫(Julian Koch) · 联合创始人 Dueldonkey · CodeCanyon

把它接入 Cursor 应用

约 15 分钟。

  1. 找到分享时刻

    邀请朋友、分享结果、发送一条商品信息、推荐应用。每一处都放一个按钮:在应用内调用 shareapp://,在浏览器中使用 Web Share API 或复制链接作为回退。

  2. 检测应用

    检查 WebViewGold User-Agent(可在 Config.swift / Config.java 中配置),只有在应用内才使用原生 scheme;否则回退到 navigator.share。

  3. 为确认操作添加触感反馈

    表单保存或订单完成后用 successhaptic://,验证错误时用 errorhaptic://,切换开关时用 lighthaptic://。用得少一些,才能保持意义。

  4. 跟踪分享

    给分享出去的 URL 附加 ?ref=share,让 您自己的 API 路由或服务 能把注册归因到分享。

为您的 Web 应用准备的分享助手

在应用内和浏览器中都能工作:

javascript
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://"; }
}

常见问题

Web Share API 在应用内能用吗?

部分可用,取决于系统 WebView。shareapp:// scheme 是可靠的方式,能在两个平台上提供完整的原生分享面板。

触感反馈在 Android 上有效吗?

有效,同样的触感 scheme 会在支持的 Android 设备上触发震动马达。

分享功能与 App Store 审核有关吗?

它是审核人员能看到的原生能力之一;与推送通知和离线处理结合,能支撑准则 4.2 的论点。

让您的应用上架商店的三种方式

结果相同,只是您需要投入的工作量不同。三种方式都附带审核通过保证和 7×24 小时人工支持。

自己动手

$109 每个平台,一次性付费

WebViewGold 许可证:一个现成的 Xcode 或 Android Studio 项目。粘贴您的 URL,设置名称和图标,开启所需功能,构建并提交。永久免费更新。

在主页查看方案

Cloud Builder

$349 每个许可证,一次性附加购买

无需 Mac、Xcode 或 Android Studio:在浏览器中完成配置,我们在云端构建两个应用,并将其交付到 App Store Connect 和 Play Console。

Cloud Builder 如何运作 试用免费演示

Full Service

$698 每个平台 $798

把您的 URL 和图标发给我们。我们的团队在 72 小时内完成配置、构建并交付您的应用,白标,附源码项目。两个平台共 $1,158。

Full Service 详情 服务提供方: WeSetupYourWebViewApp

冬季特惠价格有效期至 2026年12月31日。

准备好发布您的 Cursor 应用了吗?

App Store & Google Play 审核通过保证 – 否则 14 天内退款

想直接交给我们?Full Service:我们在 72 小时内完成配置、构建并交付,每个平台 $698 起。有疑问?通过 7×24 小时在线聊天联系我们。

退款依据我们 FAQ 中列出的条件:应用因非内容原因被 Apple 和/或 Google 拒审,并在购买后 14 天内提出申请。