Hi in my application i am playing one Video and when its playing if user click on HomeButton app should not minimise.Is there any way to achieve this and will it create any issues for APP Approval?
I try to make app Active inside applicationWillResignActive method.
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
// //home button press programmatically
UIApplication *app = [UIApplication sharedApplication];
[app performSelector:@selector(active)];
}
App should not close when click on Home Button while playing a Video in AvPlayerViewController.