Mega Search
23.2 Million


Sign Up

Make a donation  
xe7 background location sensor? [Edit]  
News Group: embarcadero.public.delphi.platformspecific.ios

Hi, 

i use xe7 and iOS 7.1 and i want to use background location services. When my software active, it runs very good but when iphone sleep then its stop. i found setIdleTimerDisabled method but it won't work for me?

How can i use background services on iOS?

i use these code for setIdleTimeDisabled :

procedure TForm1.FormCreate(Sender: TObject);
var
  UIApp : UIApplication;
begin
  UIApp := TUIApplication.Wrap(TUIApplication.OCClass.sharedApplication);
  UIApp.setIdleTimerDisabled(True);

Thanks a lot.

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 10-Dec-2014, at 1:37 AM EST
From: KabloNET Programmer
 
Re: xe7 background location sensor?  
News Group: embarcadero.public.delphi.platformspecific.ios
Sorry, my bad...

i didn't edit my app Info.plist file. I edit it and problem solved...

Thanks.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Dec-2014, at 2:27 AM EST
From: KabloNET Programmer