Hello,
I implemented the chat application using "In-App Chat Web", but the chat message is not displayed unless I reload web page.
Can I get the chat message in real time without reloading?
Best regard,
Toshiya Kirihata
Hello Toshiya,
Your previous post contained your firebase secret, which you should never share. I edited your post to remove your attachment and blur the images.
Best Regards,
Samuel Jesus
Hi Toshiya,sounds like you didn't use an ajax refresh in your notification action on your page.Did you see following documentation: https://success.outsystems.com/Documentation/SILK_UI_Framework/In-App_Notifications_Web_Component ?
I hope this will help you.
RegardsJimmy
Jimmy Vankerkhove wrote:
Hello Jimmy,
Thank you for your reply.
I don't try it.
If I use notification action, can I get the message in real time?
Best regards
Toshiya
Toshiya Kirihata wrote:
Hi Toshiya, try this link: https://success.outsystems.com/Documentation/SILK_UI_Framework/In-App_Chat_Web_Component
You will see how to configure real-time messaging using Firebase :)
Let me know if you have further questions!
Thanks,
Marina
Marina Calado wrote:
Hello Marina,
I have already seen this page and I used Firebase but I could not get the message in real time.
If I refresh the page, I get the message in real time.
Do I have to use notification action?
Best regards,
Actually in this component there is no Notification Action. Jimmy's answer is correct, but its about the component In-App Notifications Web, and you are using the In-App Chat Web.
With the In-App Chat Web component, you don't need to perform Ajax refreshs or even call a notify action: the InAppChat block takes care of all that for you.
If you are struggling with getting the messages in real time, the problem must be around the Firebase configurations.
In your previous answer to Marina , you said you already used Firebase. Since you are not getting the messages in real time, there may be happening a couple of problems:
This can happen sometimes, but worry not. I'm here to help you :)
When you installed the component in your factory, the installed application contains a module called "InAppChatWebSample". This sample showcases the correct use of the component, and you can actually configure your firebase credentials in that module and test it.
To make sure you can debug your app and get the real time functionallity up and running, I'm going to put here a set of steps explaining where the problem may be. These steps can also be found in the documentation.
And that's it. I'm sorry for the long post, and I hope this will help you solve your issue.
Please let us know if it worked or if you still need more assistance.
Hello Samuel
Thank you for your polite explanation.
I think I set some information correctly.
If I set the value to FirebaseProjectId and FirebaseSecret in InAppChatWebSample, can I get the message in real time?
I set the value above.
EDITED: REMOVED ATTACHMENT AND BLURRED IMAGES FOR SECURITY REASONS
I have the same problem here. My credentials in service center are good like my firebase account.
So any help?
Hello Filipe,
Toshiya's situation as happening because of a firewall configuration, that was preventing the system to communicate properly.
Do you have the same situation? If not, can you provide some more details of your case?
Cheers,
No i have not firewall blocking. The only thing i can say is that i get the same issue in the sampledemo
As I mentioned previously in this topic, the two most common issues are related with firebase configurations:
However, the sample, with the correct firebase credentials, is a working example of the component.
Have you set the sample demo site properties with your firebase configurations?
Cheers
Hello Samuel,
With these firebase configurations, Is there any firebase cost or user limitation, like number off users, number off conversations?
cheers
With these firebase configurations, Is there any firebase cost or user limitation, like number of users,number of conversations?
Hi folks
To complement this solution look this post:
https://www.outsystems.com/forums/discussion/42807/401-unauthorized-when-using-in-app-chat-firebase/#Post236257
This solution is incomplete because that now Firebase need others configurations.