We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug force update is closing when hardware back button is pressed. To Reproduce Steps to reproduce the behavior:
Expected behavior force update is needed so that old version are updated forcefully. user can still close the window and use old version.
Additional context my main activity has onBackPress() which helps user to exit app for twice clicks.
The text was updated successfully, but these errors were encountered:
You have to handle that in the onActivityResult method of your activity, that can't be controlled in the library.
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) when (requestCode) { UpdateManagerConstant.REQUEST_CODE -> { when(resultCode){ Activity.RESULT_OK -> { } Activity.RESULT_CANCELED -> { if(updateMgr?.mode == UpdateManagerConstant.IMMEDIATE) finish() } ActivityResult.RESULT_IN_APP_UPDATE_FAILED -> { } } } } }
Sorry, something went wrong.
UpdateManagerConstant.REQUEST_CODE accessing this from the library it shows package private is not accessible.
Unable to register updatemanger For Activity Result, moreover onActivityResult is deprecated now.
No branches or pull requests
Describe the bug
force update is closing when hardware back button is pressed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
force update is needed so that old version are updated forcefully. user can still close the window and use old version.
Additional context
my main activity has onBackPress() which helps user to exit app for twice clicks.
The text was updated successfully, but these errors were encountered: