bombardier-gif / covid-vaccine-booking

This very basic script can be used to automate COVID-19 vaccination slot booking on India's Co-WIN Platform.
375 stars 216 forks source link

Otp Receiver #134

Closed shailesh closed 3 years ago

shailesh commented 3 years ago

It stops working jn the background and then I have to re open and enter the phone number and enable it.

ujaiswal commented 3 years ago

@shailesh Download the latest apk. The app should be running in background if you disable battery optimization on startup. Also, you now no longer need to enter mobile number multiple times.

vesan83 commented 3 years ago

@ujaiswal please give link to the latest verion

i have downloaded this verion at 14-5-21 at 01:15 am https://github.com/bombardier-gif/covid-vaccine-booking/raw/main/CoWinOtpRetreiver.apk

but still keeps on getting closed after a few hours also when you reopen the app you need to fill the mobile number again and start

ujaiswal commented 3 years ago

@shailesh @vesan83 I have created another PR for fixing minor issues when the phone number might not be saved when the app is forcefully closed by the system. https://github.com/bombardier-gif/covid-vaccine-booking/pull/144

You can download the apk from here which has this changes : https://github.com/ujaiswal/covid-vaccine-booking/blob/main/CoWinOtpRetreiver.apk

Please note that just disabling the battery optimization might not keep the app alive in the background all the time. There are certain phone settings like adaptive battery and power saver mode which causes the app in background to close. Refer to this link https://www.androidpolice.com/2020/05/30/how-to-prevent-apps-sleeping-in-the-background-on-android/

It is already there in the readme: https://github.com/bombardier-gif/covid-vaccine-booking#using-the-cowin-otp-retriever-android-app-1

BumpyKnuckls commented 3 years ago

Thanks @ujaiswal for the PR. Closing this one since the PR is merged. @shailesh @vesan83 Please download the apk and try again.