Recently, I started to use in-app update prompt library: https://developer.android.com/guide/playcore/in-app-updates.
最近,我开始使用应用内更新提示库:https://developer.android.com/guide/playcore/in-app-updates.
I wonder a case and couldn't find answer for it. My question:
我想知道一个案例,但找不到答案。我的问题:
Let's say I have these versions:
假设我有这些版本:
- v1 with priority 0
- v2 with priority 1
appUpdateInfo.updateAvailability()
will return v2 of my app, so that I will show the prompt for the v2.
AppUpdateInfo.updateAvailability()将返回我的应用程序的v2,因此我将显示v2的提示。
Let's say I released a new version:
假设我发布了一个新版本:
In that case, will appUpdateInfo.updateAvailability()
still return v2 or will return true?
在这种情况下,appUpdateInfo.updateAvailability()将仍然返回v2还是将返回TRUE?
It can return true for v2. But after I released v3, v2 should not be available anymore right? So it can return false. I am not sure which is the correct one.
它可以为v2返回TRUE。但在我发布了v3之后,v2应该不再可用了,对吗?因此它可以返回FALSE。我不确定哪一个是正确的。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!