__CAPGO_KEEP_0__仓库
复制一个包含安装步骤和本插件完整Markdown指南的设置提示。
Ionic live reload
Section titled “Ionic live reload”- When you develop, if you use the Ionic live reload feature from the CLI, it will override the plugin, so you will never see your update.
Quasar live reload
Section titled “Quasar live reload”- It uses the same system as ionic under the hood, so you will not see your updates.
Updates fail
Section titled “Updates fail”- This usually happens when large updates (> 20mb) are pushed, a big percentage of users will not get the last version.
In the past, users needed to keep the app open until the download was done, now we use background download, but it’s still limited to a few seconds.
[Android]
[Android][无法下载]
[无法下载]我们在印度发现了一些设备问题,通过电话与用户联系,尝试了不同的DNS服务器,问题解决了。
如果您遇到此问题,请尝试使用不同的DNS服务器,如Cloudflare或Google DNS。
Cloudflare: 1.1.1.1和1.0.0.1
Google DNS: 8.8.8.8和8.8.4.4或dns.google
[自主托管]
[自主托管]当您推送自主托管更新时,请注意,您不能使用“HTTP”端点,因为这违反了Android应用的安全政策。如果您仍然想这样做,请遵循以下指南:
解压
解压解压问题:DEFLATED 条目可以有 EXT 描述符
如果您使用的打包工具不是 CLI,打包格式或 zip 格式可能不正确,请使用 CLI 命令 npx @capgo/cli zip BUNDLE_FOLDER.
这是 Java 的已知问题:
清除浮动问题
清除浮动问题- 如果您遇到 usesCleartextTraffic 问题,原因是插件遵循 Sonar Cloud 的最佳实践,90% 的情况下会正常工作,但某些插件会导致问题。
要解决它,请在 android/app/src/main/AndroidManifest.xml 在 <application> key :
tools:replace="android:usesCleartextTraffic"xmlns:tools="http://schemas.android.com/tools"IOS
IOS标题隐私清单
隐私清单标题添加 NSPrivacyAccessedAPICategoryUserDefaults 到您的 隐私清单 (通常 ios/App/PrivacyInfo.xcprivacy):
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> <dict> <key>NSPrivacyAccessedAPITypes</key> <array> <!-- Add this dict entry to the array if the file already exists. --> <dict> <key>NSPrivacyAccessedAPIType</key> <string>NSPrivacyAccessedAPICategoryUserDefaults</string> <key>NSPrivacyAccessedAPITypeReasons</key> <array> <string>CA92.1</string> </array> </dict> </array> </dict></plist>我们建议您声明 CA92.1 As for why you need to access the UserDefaults API.
网络权限
网络权限当使用本地服务器进行测试更新时,应用程序会要求网络权限,这是正常的行为,使用远程服务器时不会出现这种情况。
两种系统
两种系统在手动模式下进行更新时,某些事件不容易捕捉,例如更新失败会在您的 JavaScript code 重载之前触发,因此您无法捕捉到它。
另一个选择是列出捆绑包并检查错误统计,以便知道更新是否失败。
我们需要在未来找到更好的方式来处理这个问题,但这不是优先事项,因为自动模式是推荐的更新方式。
欢迎提交 PR 来帮助我们改进这个问题。
CLI
CLI如果您的CLI出现任何问题
检查是否 appId 并且 appName 是否在您的 capacitor.config.ts
请参阅官方文档:
继续阅读已知问题
继续阅读已知问题如果您正在使用 已知问题 为了规划原生插件工作,连接它与 使用@capgo/capacitor-updater 为原生能力在使用@capgo/capacitor-updater Capgo插件目录 为产品工作流程在Capgo插件目录 Capacitor插件由Capgo 为实现细节在Capacitor插件由Capgo 添加或更新插件 为实现细节在添加或更新插件,并 Ionic企业插件替代方案 为 Ionic Enterprise Plugin Alternatives 的产品工作流程。