This is dictated by how iOS handles notifications by design. When a visible notification is received in the background, the OS displays the banner without informing your application code about the event. The application only learns about the push if the user interacts with it.
Because of this, Pushwoosh SDK callbacks trigger differently depending on the app's state:
- App is in Foreground: iOS immediately passes the received notification to your app. The
push-receiveevent triggers instantly. - App is in Background or Closed: There is no way for your app to know a notification has arrived. The Pushwoosh SDK will fire the
push-receiveandpush-openedevents only when the user opens the notification.
Note: The only exception is "Silent Pushes" (background updates without visual alerts, sounds, or badges). iOS passes silent pushes directly to the app in the background, triggering the push-receive event without requiring user interaction.
Comments
0 comments
Please sign in to leave a comment.