Wednesday, 28 August 2013

iOS Static library for unity with App switching issue Facebook integration

iOS Static library for unity with App switching issue Facebook integration

These days i am writing a iOS static library for unity games facebook
integration. Static library functionality is done and it works perfect.
One issue i am facing is dont have any appdelegate inside my static
library code so i cant add
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
NSLog(@"openURL");
return [FBSession.activeSession handleOpenURL:url];
}
Anywhere. This method needed to control app switching when app switch to
get read or publish permissions. I created a demo project and added this
method to the app delegate of demo project and it works Perfect but if i
dont add this method to Appdelegate of demo project app switching does not
happen. I dont want the plugin user to add this method manually after
getting output from unity.
Is there any way to figure it out. So that app switching works perfect. Do
i need add an appdelegate to static library classes or something else.

No comments:

Post a Comment