I have an issue with my iOS IPA. i want that while my app is running screen will no off. For this when i googled i get answer that is telling to use UIApplication.sharedApplication().idleTimerDisabled = true
. So i try this in AppDelegate.cs. But this is not working in my ios IPA. Because after sometime screen is going to be off. Also the same answer i get on Stackoverflow with high repution
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
global::ZXing.Net.Mobile.Forms.iOS.Platform.Init();
UIApplication.SharedApplication.IdleTimerDisabled = true;
formsApp = new App();
LoadApplication(formsApp);
return base.FinishedLaunching(app, options);
}
Can you please tell what i am doing mistake in my code? Thanks for your solution and code.