ios push notification in worklight, Receiving Notification when app in background as badge, But when i click the badge also i am getting payload as alert. I need only badge when app running in background.
Actually I need to display alert when the app is in foreground and badge if the app in background. In my push received handler function I am checking that. But in ios the handler function get fires only when the user clicks on badge, in Android when push received it fires automatically.