v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 140 forks source link

Capability to listen Proactive support chat message #422

Open chamartt opened 6 months ago

chamartt commented 6 months ago

Hello,

We are using our own UI design in order to show a message preview to the user, as we can not edit your popup UI when a message is received.

When the message is sent from the HelpDesk, we can use the Firebase messaging listener in order to catch and manage the message.

Is there also a way to listen a proactive chat message (automated) ? Otherwise, do you plan to allow us to customize your popup preview UI, except the bottom padding ?

Thanks a lot for your plugin @v3rm0n !

deepak786 commented 6 months ago

@chamartt

There is no way to customize the preview UI. You can open a feature request to Intercom support.

You can try the API setInAppMessagesVisibility With this API, you can disable the popups to appear at the bottom of your screen.

deepak786 commented 6 months ago

Hey @Br1an-Boyle, FYI

Br1an-Boyle commented 6 months ago

@chamartt There's currently no way to do this and unfortunately we don't have any plans to implement this level of customisation.

chamartt commented 6 months ago

@deepak786 - thanks for the information, indeed we hidden the button to let only our UI preview design. I'll open feature on Intercom.

@Br1an-Boyle - are you speaking about the UI preview customization or about the capability to listen Proactive support chat message ? This feature could be amazing, in order to use 100% our UI design, as we can only listen message sent from the HelpDesk for now.

chamartt commented 5 months ago

Hi @deepak786 & @Br1an-Boyle,

I still can not listen chat push message notification sent by Proactive support.

The FCM listenner is triggered when I send chat from Help Desk, but it's never triggered from a proactive chat notification (even with the Toggle ON in the proactive message configuation).

After conversation with Intercom, they can not do nothing as they have only native SDK.

Maybe is there another way to listen chat message sent from proactive, in order to manage the preview UI/UX ?

Can you take a look about this issue/request as we can know what could be possible with your plugin ? We will close the ticket depending the answer as well.

Thanks again for your work.

deepak786 commented 5 months ago

@chamartt Either you send a message from help desk or proactive support, it must go through FCM listener. I'm not sure why the FCM listener is not triggered from proactive support, as you said.

Could you please share some code sample about how are you listening for FCM?

intercom_flutter has PushInterceptReceiver to listen for the notifications. Maybe you can add a log in this receiver to test the FCM listener.

chamartt commented 4 months ago

@deepak786 - as we manage UI displaying of the preview, this is our lister: image

I'll try to add log in the listener you mentionned and keep you in touch.