I'm thinking the GameSalad Viewer should stop the iOS testing device from going to sleep.
Basically, the testing of takes so long that my iOS device falls asleep before the download/asset compression is finished. When I wake up my phone, the game doesn't run.
Comments
___________________________________________________________________________________
Project Help from Tenrdrmer Click Here
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
Menu #4 - Level Banners HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
GS just needs to add it to the viewer code. GS apps never go to sleep so why can they not add that to the viewer.
Honestly you would think there is a check box the could be set in the info.plist file but I don't know just a guess.
Photic's your an xcoder see if you can find a way to alter the viewer project to include that.
Ace
I'm testing it now.
system.setIdleTimer( false )
Ace
I'm not seeing an info.plist setting.
I tried editing the main.m file too, but that didn't work.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/2314-how-programmatically-prevent-auto-lock.html
idleTimerDisabled:1;
I dont know what the numbers here represent.
I'm not sure if I'm supposed to be posting the code though.
Thanks
Ace
GameSalad might actually include it in the viewer, so that everyone can benefit.
I'm not worried. I'm going to go get a sandwich.
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I cut and pasted this directly:
Simply add the following line in your AppDelegate source
`[UIApplication sharedApplication].idleTimerDisabled=YES;`
I've added this line in the didFinishLaunchingWithOptions method
`
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// Add the main view controller's view to the window and display.
self.window.rootViewController = self.mainViewController;
[self.window makeKeyAndVisible];
[UIApplication sharedApplication].idleTimerDisabled=YES;
return YES;
}
`
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left