cordova-common-registerusernotificationsettings-npm

Implements didRegisterUserNotificationSettings and broadcasts the event.

Usage no npm install needed!

<script type="module">
  import cordovaCommonRegisterusernotificationsettingsNpm from 'https://cdn.skypack.dev/cordova-common-registerusernotificationsettings-npm';
</script>

README

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
{
    ...  
}