Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Libraries/GLTNotificationResponder.h> // add this line with your imports
- - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
- {
- ...
- UILocalNotification *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
- if (notification)
- {
- UnitySendLocalNotification(notification);
- [GLTNotificationResponder SendNotification:notification]; // add this line
- }
- ...
- }
- - (void)application:(UIApplication*)application didReceiveLocalNotification:(UILocalNotification*)notification
- {
- AppController_SendNotificationWithArg(kUnityDidReceiveLocalNotification, notification);
- UnitySendLocalNotification(notification);
- [GLTNotificationResponder SendNotification:notification]; // add this line
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement