-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unread count is not getting updated in IOS SDK. #20
Comments
Hi arasu01, Thanks |
@harish6989: Thanks for prompt response. The unread count was never updating when in the app(not in hotline screen). I have checked it by going to background and foreground, it always shows me 0 and as I can see there is 2 notification in the notification center. Also after receiving the notification, I have tried it by checking in "applicationDidBecomeActive" method for many times it was not updating. |
Hey @arasu01 Can you please check if the Also , you need to invoke In the absence of these. The SDK only polls once during app launch or when the user is in the SDK screen. The poll only happen if atleast 2 mins has elapsed since the last launch. This might seem long during your testing, but It works well for real world scenario. I recommend checking why the push notification was not delivered to the SDK handle function. Please check and let us know. |
Oh. That's very late. It must happen whenever we are opening the app from background. Also, It works well in android SDK when the app is background and same is not happening in iOS SDK. Is there any way to find when the unread count is updated?(Something like post a Notification etc..,) |
I am experiencing the same issue as @arasu01 . App is in the background, push notification received, the badge on the app icon goes to '1'. Then, when opening the app, and retrieving the unread count as indicated above, the count is zero. When there is a new message, and the user brings the app to the foreground (by clicking on the app icon), I would like to show the Hotline conversations immediately. I want to use the unread count to determine there ar pending messages, but that does not seem to be reliable... |
Hi @arpe For redirecting user to a Hotline message screen immediately, notification tap is req. for that you need to handle Thanks |
Same issue here. |
Hi @lucianocn , if you have push working right with us this feature should work without issues. If push has been an issue to configure with us - we can probably get on a screen share and sort this out for you. |
Hi @lucianocn, can you please elaborate/give us more context whether the issue you are facing is push related or with message(s) unread count. |
Kept the app in the background.
Received the push notification from the hotline. Then opened the app, in which 'applicationDidBecomeActive' I have checked the unread count. It always gives 0. Below is the code:
But this works in below case after a delay.
It was not updating until the above case is done. Can you please check and fix it.
The text was updated successfully, but these errors were encountered: