Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 706 Bytes

File metadata and controls

25 lines (19 loc) · 706 Bytes

Cordova RegisterUserNotificationSettings Plugin

Implements didRegisterUserNotificationSettings and broadcasts the event for listening plugins.

#import "AppDelegate+APPRegisterUserNotificationSettings.h"

- (void) pluginInitialize
{
    NSNotificationCenter* center = [NSNotificationCenter
                                    defaultCenter];

    [center addObserver:self
               selector:@selector(didRegisterUserNotificationSettings:)
                   name:UIApplicationRegisterUserNotificationSettings
                 object:nil];
}

- (void) didRegisterUserNotificationSettings:(UIUserNotificationSettings*)settings
{
    ...  
}