JivoChat / JivoSDK-iOS

The Jivo Mobile SDK allows you to embed the Jivo chat into your iOS mobile applications to receive customer requests
https://www.jivochat.com
Apache License 2.0
8 stars 5 forks source link

Push notification when app is closed / in background showing wrong title and message #13

Open cgosingtian opened 7 months ago

cgosingtian commented 7 months ago

Followed Push Notification instructions in https://jivochat.github.io/JivoSDK-iOS/tutorials/jivosdk/native_usage_basics

However, the push notifications don't look right when the app is in the background or if closed.

func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) isn't called in the background, but that seems to be where Jivo wants to change the title and the message.

What's the expected way to approach showing Jivo notifications when the app is closed / in background?

bronenos commented 4 months ago

This method does handle notifications in foreground mode due to ios rules, and Jivo uses this place as one of entry points, yes

But for background notifications, Localizable strings are used, so please look here for more details:

https://jivochat.github.io/JivoSDK-iOS/documentation/jivosdk/common_project_config