legendsayantan / MsRewards

Earn Microsoft Rewards Points in the fastest and easiest way, just using an Android Device.
https://rewards.is-an.app
36 stars 1 forks source link

[BUG] Wrong total time display #8

Closed Caerus256 closed 6 months ago

Caerus256 commented 6 months ago

Describe the bug Hey Sayantan! I am enjoying the app in my account but in turbo search, it shows that it takes 5 hours to do the searches but instead it takes 9-10 hours for me. My guess is that i have kept my search delay to 4-5 minutes between each search and the turbo search waits 15 minutes after completing these searches so it was taking nearly 30 minutes or so between each cycle of these searches. Is it possible to add a timer which can auto calculate wait time based on total time taken on previous search cycle.

example: if my searches takes 5 minutes to be completed, then it waits for 10-11 minutes instead of 5+15 minutes. so that it can save time. Also in my account when i tested i found that Ms is allowing searches to be reset time after 15 minutes from the 1st search of the cycle instead of last search. like if the 1st search is done at 9:30 and the cycle completes at 9:40, the next cycle 1st search is giving points at 9:45, i dont have to wait another 15 minutes after 9:40 to get points again.

I want to sponser the project but i am just a college student and will be happy to sponser when i get a internship.

I hope i have explained it well.

Thank you

legendsayantan commented 6 months ago

Hi! The time displayed on the Turbo Search window is only an estimate, and the actual time also depends on network availability, speeds, device battery level etc which are not possible to pre-estimate.

I would have liked to design it the optimized way you described, but I am bound to use PeriodicWorkRequest with WorkManager to ensure that android treats it as a high priority task. Android PeriodicWorkRequest documentation says the following -

Periodic work has a minimum interval of 15 minutes.

This means, Android system will reliably do the job, if I leave it alone for at least 15 minutes.

On a side note , I have noticed your sponsorship. to avail the benefits, please copy the App ID and paste it here.

Caerus256 commented 6 months ago

Hey thanks for the reply. I now get the idea of PeriodicWorkRequest, also it is just a suggestion from my side. If it takes most of your time, then no need of that feature just for my account or 2. I sponsored the project cause it is a good project and I have gained from it. It is just not for the feature request.

legendsayantan commented 6 months ago

I would have done it that way, I didn't because by using other methods than PeriodicWorkRequest, Android may think this app is just wasting too much battery and force stop it.

Sponsors of this project are allowed to use multiple accounts on one device, but if you don't want it that's fine.