summaryrefslogtreecommitdiff
path: root/plugins/de.appplant.cordova.common.registerusernotificationsettings/README.md
blob: bebb014da9c4f5f7ecfdf2158fc399437a9ebe75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

Cordova RegisterUserNotificationSettings Plugin
===============================================

Implements didRegisterUserNotificationSettings and broadcasts the event for listening plugins.

```obj-c
#import "AppDelegate+APPRegisterUserNotificationSettings.h"

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

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

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