Skip to content

Commit

Permalink
extend GlassAppliation (AppDelegate) to deal with registration of pus…
Browse files Browse the repository at this point in the history
…h notifications
  • Loading branch information
johanvos committed Jan 6, 2020
1 parent 2781b93 commit 9397ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
#include "AttachMacros.h"
#import <UserNotifications/UserNotifications.h>

@interface PushNotifications : NSObject <UIApplicationDelegate> { }
@interface GlassApplication : NSObject <UIApplicationDelegate> { }
@end

@interface PushNotifications (NotificationsAdditions)
@interface GlassApplication (NotificationsAdditions)

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;

@end
@end
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
debugPushNotifications = YES;
}

@implementation PushNotifications (NotificationsAdditions)
@implementation GlassApplication (NotificationsAdditions)

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
Expand Down

0 comments on commit 9397ff0

Please sign in to comment.