VirginMobileMinutesChecker icon indicating copy to clipboard operation
VirginMobileMinutesChecker copied to clipboard

Fix display when start date is in the future

Open ghost opened this issue 13 years ago • 7 comments

I am not 100% sure on this, since date-based issues are always real brain burners (at least for me), but with this version of the app I have a correct display instead of that shown in issue #15.

Basically, I think the issue is caused by the fact that my account month starts in the future, instead of "now" being a point between the start and the end (start being a month prior to the "charged on" date from the VMU web site).

It is possible it is also caused by the fact that the month is next year. I do not recall the app having issues before, and I usually pay my bill some time around the last weekend of the month. So it seems there would have been other times that it would also be the case that the "month starts in the future".

It would be great if others could test this. I won't be able to test much more until my month rolls over on December 14th.

ghost avatar Dec 03 '11 00:12 ghost

Hi - thanks for this! My month rolls over in a few days. Were you able to test on December 14? How'd it go?

poundifdef avatar Jan 02 '12 06:01 poundifdef

It needed additional work (see my fork for the updated commits), but it now seems to work right.

On 1/2/12 1:51 AM, "Jay Goel" <reply+i-2434922-14d87b754bc326e453a61c139e3ea695e8e82700-272810@reply.gith ub.com> wrote:

Hi - thanks for this! My month rolls over in a few days. Were you able to test on December 14? How'd it go?


Reply to this email directly or view it on GitHub: https://github.com/poundifdef/VirginMobileMinutesChecker/pull/16#issuecomm ent-3327772

ghost avatar Jan 02 '12 14:01 ghost

When my phone is at the end of its next billing cycle I will take a look at this. I have noticed that it incorrectly shows the graph at least on the day the cycle is renewed, but I am not sure, I'll have to take another look at this.

gurchik avatar Apr 18 '12 01:04 gurchik

Yes, I'm not sure there's a lot you can do about this, other than load the app by tapping on the widget to force a refresh. Android enforces rules about widget updates for power and performance reasons.


From: Derek Maciel [[email protected]] Sent: Tuesday, April 17, 2012 9:24 PM To: Andrew Subject: Re: [VirginMobileMinutesChecker] Fix display when start date is in the future (#16)

When my phone is at the end of its next billing cycle I will take a look at this. I have noticed that it incorrectly shows the graph at least on the day the cycle is renewed, but I am not sure, I'll have to take another look at this.


Reply to this email directly or view it on GitHub: https://github.com/poundifdef/VirginMobileMinutesChecker/pull/16#issuecomment-5189929

ghost avatar Apr 19 '12 16:04 ghost

If I recall correctly, it is possible to programatically invoke a widget's refresh early. Maybe we can check if it is after midnight of the Billing On date, and if it is, automatically refresh the app?

gurchik avatar Apr 19 '12 19:04 gurchik

You should probably set an alarm, which would be hooked up to a broadcast receiver callback. I've never actually messed with the widget APIs but that's a general idea of how it might work.

I'm not sure it's worth messing with, though. A) because I'm sure VMU doesn't update their all accounts exactly at 12:00 am. (if they're like most other businesses it happens in batches for several hours over the early morning time frame). and B) The only reason this is an issue is because the widget simply doesn't refresh for some time after the site is updated. Without knowing when, exactly, the refresh (of the web site) will happen, your only alternative is to refresh (the widget) more often, which then makes it a battery hog.

If you ask me, I'm inclined to just let the user tap on the widget, which causes a refresh, and fixes the issue. That's what I do, anyway.


From: Derek Maciel [[email protected]] Sent: Thursday, April 19, 2012 3:26 PM To: Andrew Subject: Re: [VirginMobileMinutesChecker] Fix display when start date is in the future (#16)

If I recall correctly, it is possible to programatically invoke a widget's refresh early. Maybe we can check if it is after midnight of the Billing On date, and if it is, automatically refresh the app?


Reply to this email directly or view it on GitHub: https://github.com/poundifdef/VirginMobileMinutesChecker/pull/16#issuecomment-5229877

ghost avatar Apr 19 '12 20:04 ghost

Plus, I don't really see it as an issue that it doesn't refresh right after midnight. To be honest, at midnight I wouldn't be surprised that the widget is out of date, and I am okay with that. If I need it to be updated, I can do it manually, and as long as it's updating every 30 minutes as it should, I won't see it as an issue (I just don't want it to be out of date the next morning, for example).

gurchik avatar Apr 20 '12 00:04 gurchik