Answered

Is it possible to change the details of the push notifications payloads in order to increase the app badge count accordingly to the chat pending messages?

  • 14 January 2021
  • 12 replies
  • 311 views

We did implement the intercom Integration with our mobile app and everything works like a charm BUT we realised we are sending communications to our clients over the chat but they don't seem to realise messages are waiting for them since the app badge count is zero.

 

I'd tried to increase the value over the AppDelegate methods but can't make it increase the count when the app is not running or in background.

 

Also tried to create a Notification Extension for the app but the criteria for the modifications won't meet since the payload of the notifications has the value mutable content set to false (mutableContent: NO)

 

Another way to make this work would be to send notifications as silent ones but don't know if the payload from Intercom's notifications is customisable.

 

Any help with this subject would be much appreciated.

 

Bests.

icon

Best answer by Eric Fitz 23 April 2021, 17:19

View original

12 replies

Userlevel 1

Hey there @user834​, can I first confirm if you're looking to implement this for iOS, Android or Cordova? What platform are you building on?

+1. Hi Eric, we have similar problem and question. It is not possible to update badge count when app in background. Could you suggest us how it can be resolved? As it was explained above it is possible to fix it on the app side if the Intercom push notification payload will have the value mutable content set to true (mutableContent: YES).

As the workaround we can subscribe on Intercom web hooks with our server, listen unread conversations count, create and send the new push notification with correct push to iOS app. Would it work for us?

 

Hi Eric,

 

this is a big issue for us too. We use a native iOS app. The notification comes in, but the badge is not shown on the app.

@eric f11​ Hey Eric. We've just integrated Intercom push notifications for our iOS app and run into this issue also. The docs state:

Intercom never changes the badge value of your app. Thus we can ensure that whatever badge value you’re managing in your app, we don’t alter in any way.

 

This is easy enough to handle manually when the app is running in foreground as we can observe when the unread message count changes, but it's proving difficult to update the badge value whilst the app is in the background. This means users may not think they have any unread messages, but they do and are just unaware because they missed the notification. This will negatively impact our users' customer support experience.

 

Any support on this would be great!

@mathijs​ @voices​ would you be able to upvote this please to boost our chances of hearing back soon? 😀

 

Userlevel 1

Hey everyone, thanks so much for your patience here as I dig up a bit more about this. The disappointing answer is that updating the badge value will apps are running in the background is not something that we currently support, so there's no way to configure this within your apps.

 

I'm going to tag in our @Product Wishlist​ group to remind me to add this feature request to my monthly feedback report for our product team.

Hi Eric, do you have an update on this one?

Userlevel 1

Hey @martijn​, this is a feature request for now!

Hi Eric, please can you give an update on this? Seems like it should be there by now!

Hi Eric, please can you give an update on this?

Hi Eric/Intercom,

Is there any update yet or expected from your end? We also face the same limitation/issue for our application.

It would already be great if  "content-available": 1 or mutable-content can be added to the payload, so we can handle the badge counter at our end.

Looking forward to your update.

Hi Eric/Intercom,

Is there any update yet or expected from your end? We also face the same limitation/issue for our application.

It would already be great if  "content-available": 1 or mutable-content can be added to the payload, so we can handle the badge counter at our end.

Looking forward to your update.

+1

Reply