Recent searches
No recent searches
iOS chat notifications not working when app is in the foreground
Posted Dec 03, 2021
Hi there,
I hope someone can help me here. We have integrated the iOS chat v2 SDK and everything is working apart from one flow.
The notifications when an agent sends a message is working until we open up the view and connect to the chat view. If we dismiss the chat view but stay in the application no more push notifications are sent to the device therefore no new notifications come until we background the application or go back to the chat view without being prompted to.
I feel it must have something to do with the session still being open but there's nothing in the docs talking about how to handle this from what I can see.
Does anyone have any advice on what we might be doing wrong here?
Any help is greatly appreciated!
0
3 comments
Mick O'Donnell
Hi Jamie,
Have you enabled in-app push notifications in your app as described here?
0
Greg Katechis
In addition to Mick's notes above, I had another customer raise this issue recently and he found a solution! I'll paste his response to me here, let us know if the combination of these two things helps!
0
Jonathon Francis
Hi Greg, where would we be able to do this? The chat view controller is created with `Messaging.instance.buildUI` which returns a plain UIViewController - the superclass is abstracted away, we cannot subclass it (and even if we could our subclass wouldn't be initiated with the above method call).
Thanks
0