ALSystemUtilities icon indicating copy to clipboard operation
ALSystemUtilities copied to clipboard

ALBattery remaining hours methods not working

Open kexoth opened this issue 8 years ago • 3 comments

Hey @andrealufino

ALBattery remaining hours methods don't work for me. As I saw the infoForDevice method returns nil on device & on simulator it returns the dictionary, but doesn't find the needed data & it returns in both situations "NS".

Tested on iPhone 5 with iOS 8.4, iOS & iOS Simulator with iOS 8.2.

It applies for all the methods listed:

  • + (NSString *)remainingHoursForStandby;
  • + (NSString *)remainingHoursFor3gConversation;
  • + (NSString *)remainingHoursFor2gConversation;
  • + (NSString *)remainingHoursForInternet3g;
  • + (NSString *)remainingHoursForInternetWiFi;
  • + (NSString *)remainingHoursForVideo;
  • + (NSString *)remainingHoursForAudio;

Any idea why is that so, any changes in Apple's API maybe?

Thanks for the library,

@kexoth

kexoth avatar Jul 23 '15 18:07 kexoth

Hey! What device are you using?


Andrea Mario Lufino iOS Dev & Expert http://about.aliosdev.com

[email protected]

Il giorno 23/lug/2015, alle ore 20:03, Aleksandar Kex Trpeski [email protected] ha scritto:

Hey @andrealufino https://github.com/andrealufino ALBattery remaining hours methods don't work for me. As I saw the infoForDevice method returns nil on device & on simulator it returns the dictionary, but doesn't find the needed data & it returns in both situations "NS".

It applies for all the methods listed:

  • (NSString *)remainingHoursForStandby;
  • (NSString *)remainingHoursFor3gConversation;
  • (NSString *)remainingHoursFor2gConversation;
  • (NSString *)remainingHoursForInternet3g;
  • (NSString *)remainingHoursForInternetWiFi;
  • (NSString *)remainingHoursForVideo;
  • (NSString *)remainingHoursForAudio; Any idea why is that so, any changes in Apple's API maybe?

Thanks for the library,

@kexoth https://github.com/kexoth — Reply to this email directly or view it on GitHub https://github.com/andrealufino/ALSystemUtilities/issues/13.

andrealufino avatar Jul 24 '15 07:07 andrealufino

I wrote you that one too: "Tested on iPhone 5 with iOS 8.4, iOS & iOS Simulator with iOS 8.2."

Thanks for the feedback.

kexoth avatar Jul 27 '15 16:07 kexoth

Any luck with that?

ecler avatar Aug 19 '15 11:08 ecler