title: cordova swifr plugin application: UIApplication
body: <p>I create cordova app for ios and some plugin:</p>
  
  <pre><code>@objc(ModusEchoSwift)
  class ModusEchoSwift : CDVPlugin {
  @objc(getSettings:)
      func getSettings(_ command : CDVInvokedUrlCommand){
  
      var pluginResult = CDVPluginResult(
        status: CDVCommandStatus_ERROR
      )
  
      let  msg = command.arguments[0] as? String ?? ""
  
      print("msg: " + msg);
  
      print("########## ENTER MACPLUGIN 2 ###########");
  
      pluginResult = CDVPluginResult(
        status: CDVCommandStatus_OK,
        messageAs: msg
      )
  
  
  
      self.commandDelegate!.send(
        pluginResult,
        callbackId: command.callbackId
      )
  
      }
  
  
  }
  </code></pre>
  
  <p>it's work, but now it's need to add UIApplication for push register and get token. I have example:</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {
  
  
          let center = UNUserNotificationCenter.current()
          center.requestAuthorization(options:[.badge, .alert, .sound]) { (granted, error) in
              // Enable or disable features based on authorization.
          }
          application.registerForRemoteNotifications()
          return true
  }
  </code></pre>
  
  <p>but how do add it to my getSettings method? Thanks!</p>