appcues / appcues-ios-sdk

The Appcues iOS SDK
https://www.appcues.com/mobile
MIT License
8 stars 2 forks source link

Add deferred handling for push notifications received without a session #519

Closed mmaatttt closed 5 months ago

mmaatttt commented 5 months ago

The flow is pretty simple:

  1. If we receive a push response and appcues isn't active, store the ParsedNotification.
  2. On any identify call, attempt the deferred notification response.

Notes

  1. The sequence of analytics is session started, identify, push opened
  2. attemptDeferredNotificationResponse returns a boolean which isn't currently used apart from tests. In theory it could easily have a completion handler. It's something we might need to deal with if we find the push response handling colliding with other things happening on session start or after a sign in
shortcut-integration[bot] commented 5 months ago

This pull request has been linked to Shortcut Story #63930: add support for deferred push actions.