Skip to content

Commit

Permalink
Merge pull request #26 from johanvos/25-iospush
Browse files Browse the repository at this point in the history
add GlassApplication extension
Fixes #25
  • Loading branch information
johanvos authored Jan 6, 2020
2 parents 2781b93 + 9397ff0 commit 2e633a1
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 2e633a1

Please sign in to comment.