Hi Zendesk Community,
I'm experiencing an issue with the Zendesk Messaging SDK on iOS where tapping a CSAT (Customer Satisfaction) push notification does not redirect the user to the chat screen.
Environment:
- Platform: iOS
- SDK: Zendesk Messaging SDK
Current Behavior:
- When a user receives a regular chat message notification and taps it, the app correctly redirects to the chat screen.
- When a user receives a CSAT survey notification and taps it, the app does NOT redirect to the chat screen.
Expected Behavior: Tapping the CSAT notification should redirect the user to the chat screen where they can see and respond to the CSAT survey.
Implementation:
I'm using the standard implementation from the Zendesk documentation:
```
let shouldBeDisplayed = PushNotifications.shouldBeDisplayed(userInfo)
if shouldBeDisplayed == .messagingShouldDisplay {
PushNotifications.handleTap(userInfo) { viewController in
}
}
```
Also try something like this, still not working
```
let shouldBeDisplayed = PushNotifications.shouldBeDisplayed(userInfo)
if shouldBeDisplayed == .messagingShouldDisplay || shouldBeDisplayed == .messagingShouldNotDisplay {
}
}
```
Questions:
- Is this expected behavior for CSAT notifications?
- If so, what is the recommended way to handle CSAT notification taps and redirect users to the chat screen?