 
 @objc(PushyPlugin) class PushyPlugin : CDVPlugin {
     var pushy: Pushy?
+    var hasStartupNotification = false
     var startupNotification: [AnyHashable : Any]?
     
     func getPushyInstance() -> Pushy {

            
            // Store for later
            self.startupNotification = data
            
            // You must call this completion handler when you finish processing
            // the notification (after fetching background data, if applicable)

            completionHandler(UIBackgroundFetchResult.newData)
        })
        
        // Check for startup notification if set
        if self.hasStartupNotification {
            // Execute notification handler (pass in startup notification payload)
            getPushyInstance().getNotificationHandler()?(self.startupNotification!, {(UIBackgroundFetchResult) in})
        }
    }
    
