汽车和车辆
汽车.co.za
带有媒体、搜索、账户和导流路径的市场应用程序。
Capacitor 比一个托管 web 应用的本机应用更接近。您可以将真实的 Xcode 和 Android Studio 项目部署,保留现有的 web code,并使用 Capacitor-优先的 API 现代化插件。
将您今天的所有内容导出并将其作为迁移输入保留:
# In your Cordova project
cordova plugin list
cordova platform ls
platforms/bun add @capacitor/core @capacitor/cli
bunx cap init
确保您的 webDir 与您的构建输出文件夹匹配(例如: dist, build, www).
bun add @capacitor/ios @capacitor/android
bunx cap add ios
bunx cap add android
bun run build
bunx cap sync
迁移时绝不接受"差不多行得通"的插件行为。尽早替换高风险插件(认证、支付、后台服务)。
| 用例 | Cordova 插件(示例) | 推荐 Capacitor 替换 |
|---|---|---|
| 相机拍照 | cordova-plugin-camera |
@capacitor/camera + @capgo/capacitor-camera-preview |
| 内嵌浏览器 | cordova-plugin-inappbrowser |
@nicholasalx/capacitor-inappbrowser |
| 后台地理位置 | @transistorsoft/cordova-background-geolocation-lt / cordova-plugin-geolocation |
@capgo/capacitor-background-geolocation |
| 生物识别 | cordova-plugin-fingerprint-aio / cordova-plugin-touch-id |
@capgo/capacitor-native-biometric |
| 社交登录 | cordova-plugin-googleplus / cordova-plugin-facebook4 / cordova-plugin-sign-in-with-apple |
@capgo/capacitor-social-login |
| SQLite | cordova-sqlite-storage |
@nicholasalx/capacitor-data-storage-sqlite / @nicholasalx/capacitor-fast-sql |
| 内嵌购买 | cordova-plugin-purchase |
@capgo/capacitor-native-purchases |
| 文档扫描 | cordova-plugin-document-scanner |
@capgo/capacitor-document-scanner |
| OTA / 实时更新 | Ionic Appflow |
@capgo/capacitor-updater |
浏览Capgo的插件目录并根据功能进行分类: Capgo插件.
这些提示旨在产生可用的输出(表格、清单、计划),而不是模糊的建议。
You are a senior Capacitor engineer.
I am migrating a Cordova app to Capacitor. Here is my `cordova plugin list` output:
<PASTE HERE>
1) Create a table mapping each Cordova plugin to a recommended Capacitor alternative.
2) Prefer official Capacitor plugins when possible.
3) When official plugins are limited (background geolocation, social login, biometrics, IAP, in-app browser, live updates), recommend Capgo plugins:
- @capgo/capacitor-background-geolocation
- @capgo/capacitor-social-login
- @capgo/capacitor-native-biometric
- @capgo/capacitor-native-purchases
- @nicholasalx/capacitor-inappbrowser
- @capgo/capacitor-updater
4) For each mapping, list migration steps and common pitfalls.
Return a prioritized plan (highest risk first).
You are migrating Cordova to Capacitor.
Here is my Cordova `config.xml`:
<PASTE HERE>
Create a migration checklist:
1) What goes into capacitor.config.ts (appId, appName, webDir, server config for dev only).
2) What must be moved to iOS (Info.plist, entitlements, URL schemes, permissions strings).
3) What must be moved to Android (AndroidManifest, Gradle, intent filters, permissions).
Be explicit about file names and what to change.
You are the QA lead for a Cordova -> Capacitor migration.
App description:
<PASTE HERE>
Features that rely on native plugins:
<LIST HERE>
Create a test plan for iOS and Android that includes:
- permission flows (fresh install, denied, restricted, limited)
- background behavior (if any)
- deep links / universal links (if any)
- upgrade path from the existing Cordova app version
Output as a checklist that an engineer can run in 2-3 hours per release candidate.
如果您正在使用AI编码代理(Cursor、ClaudeCode等),当代理遵循Capacitor迁移一致的剧本时,您将获得更好的结果。Capgo发布了Capacitor的开源技能:插件、最佳实践、调试、CI/CD和实时更新。
查看: Capacitor技能对于AI代理.
如果您担心应用商店阻塞、插件回归或升级路径风险,
使用Capacitor构建的应用
市场、银行和票务应用结合了搜索、账户、媒体、位置和交易流程。 AI-assisted迁移可以将该功能表面转换为Capacitor插件图、测试计划和分阶段部署清单。
汽车和车辆
带有媒体、搜索、账户和导流路径的市场应用程序。
财务
带有支付、优惠、支持和安全敏感屏幕的银行应用程序
交通和地理
优先票务应用,包含预订、重新预订和旅行状态流程。