dcloudio / dcloudio/uni-app

本地运行 app 到模拟器 提醒 未匹配到云函数[uni-upgrade-center]

Open
#5,544 2 comments 0 reactions 0 assignees View on GitHub
uniCloud
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### 云服务商

阿里云

### Bug 描述

起因:发布新版本 apk 后强制更新弹窗没有 立即更新按钮,导致用户没法更新又没法关闭
排查: 将本地代码回退到上个版本后本地运行到模拟器中,然后控制台提醒 "未匹配到云函数[uni-upgrade-center]",本来是想排查一下是什么原因导致的无法显示更新按钮,结果本地提醒没有匹配到云函数导致无法从本地进行排查(看来一下 uni_modules/uni-upgrade-center-app/package.json 版本是 0.6.4,由于本地没法测试 不太敢去更新包到最新)

问题:
1. 什么情况下会出现显示了 强制更新弹窗但是没有立即更新按钮?(如果下载包成功后但是没有安装,会出现这种情况吗?)
2. 怎样才可以在本地正常执行 uni-upgrade-center 云函数?

### 复现步骤

问题咨询

### 预期结果

希望能够本地运行时能够正常执行 uni-upgrade-center 云函数

### 实际结果

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading uni_modules/uni-upgrade-center-app/package.json and the uni-upgrade-center cloud-function entry point referenced in the report. Run the app locally on an emulator using the reported setup and observe the missing-function warning and forced-update dialog. Done means the local cloud function can be invoked and the causes of the missing update button are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cloud, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.