Disable an apk for certain Android versions through google play console

南楼画角 提交于 2019-12-10 21:10:00

问题


I have an app that can switch airplane mode on and off on schedule. Or, rather, it could, until Android 4.2 came along, and this setting became unavailable. My app does not have an android:maxSdkVersion set in the manifest, and I've already started receiving angry emails from users who have Android 4.2 devices. And besides, according to answers here, android:maxSdkVersion is probably not the best solution anyway.

I would like to disable my app for Android 4.2+ users, but keep it available for pre-4.2 devices. What would be the best way to do this? Ideally, through the developer console, without having to upload a new apk.


回答1:


Like it says here, and in the question you linked to, setting the maxSdkVersion does filter it in Google Play, so it won't be seen by devices above that level. That's the only place that checks it, though. Side-loading will still be possible.

The only real problem you'll run into is with people upgrading their OS. If they downloaded it from Play with 4.1, and later upgrade to 4.2, the app won't work correctly.

For those users(and side-loaders), you may want to do a version check on startup. If they fail the check, gracefully tell them what happened in a dialog, etc. Much better than an invisible "it doesn't work anymore!"



来源:https://stackoverflow.com/questions/15078768/disable-an-apk-for-certain-android-versions-through-google-play-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!