[英]PlayStore app in some devices still showing older version while new version is live and available on play store
Some device's play store app is showing older version of my app(1.91) while new version(1.92) is available on play store.某些设备的 Play 商店应用程序显示我的应用程序的旧版本(1.91),而 Play 商店提供新版本(1.92)。 When I open the play store app programmatically to update my application from update button (which I have in my android app )of my app, play store app shows open button but it should have update button there(so user can update my app).当我以编程方式打开 Play 商店应用程序以从我的应用程序的更新按钮(我的 android 应用程序中有)更新我的应用程序时,Play 商店应用程序显示打开按钮,但它应该有更新按钮(因此用户可以更新我的应用程序)。
What should I do to resolve this problem.我该怎么做才能解决这个问题。 Should I unpublish the older version after publishing new version on play store在 Play 商店发布新版本后,我是否应该取消发布旧版本
A little late to answer here, but this will help others who face this issue.在这里回答有点晚了,但这将帮助面临这个问题的其他人。
Story:故事:
Time and again I have seen this happen with my apps where the new version is live and visible on some devices, but on others the Play store keeps on displaying older version.我一次又一次地看到这种情况发生在我的应用程序中,其中新版本在某些设备上是实时可见的,但在其他设备上,Play 商店继续显示旧版本。 This is some caching issue with Play store app.这是 Play 商店应用的一些缓存问题。
Solution:解决方法:
Conclusion:结论:
Who should you blame for this issue?这个问题应该归咎于谁? Google, of course.谷歌,当然。
Who will your user blame and give a bad rating to?你的用户会责怪谁并给谁差评? You, of course.你,当然。
PS Before arriving at this conclusion, make sure your app version is actually live on Play Store! PS 在得出这个结论之前,请确保您的应用程序版本实际上已在 Play 商店上线! You might also ask your user to send screen shot of play store listing version to confirm it.您还可以要求您的用户发送 Play 商店列表版本的屏幕截图以进行确认。
Here is what i did, which resolved my issue,这是我所做的,它解决了我的问题,
In one case although the app was no longer in review and was published, but had to wait for couple of hours before it showed up on that particular device.在一种情况下,虽然该应用程序不再接受审查并已发布,但必须等待几个小时才能出现在该特定设备上。 On another device (Samsung too) it updated immediately.在另一台设备(三星也是)上,它立即更新。
I have the solution.我有解决方案。
I use a database (eg Firebase RealTimeDatabase)我使用数据库(例如 Firebase RealTimeDatabase)
store a node manually with the currentVersion of the app.使用应用程序的当前版本手动存储节点。
programmatically check for the current app version in onResume with以编程方式检查onResume 中的当前应用程序版本
try{ String versionName = context.getPackageManager() .getPackageInfo(context.getPackageName(), 0).versionName; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return false; }
retrieve the value from the database eg 1.5.0从数据库中检索值,例如1.5.0
check if the current version (step 2) is smaller or not to the actual one检查当前版本(第 2 步)是否小于实际版本
if (versionName < versionNameFromDB) { showDialogToUpdate(); }
then just redirect the user to the google play of your app.然后只需将用户重定向到您的应用程序的谷歌播放。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.