171
Views
4
Comments
Solved
[In-App Chat Web] 401 Unauthorized when using In App Chat (Firebase)
Question
in-app-chat-web
Web icon
Forge asset by Nate Andrews

Hi In App Chat team!

I followed the guide how to configure firebase here: https://www.outsystems.com/forums/discussion/25871/how-to-configure-the-firebase-plugin/

At this time I have a ProjectId and a Secret. When I set those values in the site properties that are available in the InAppChatWebSample module I still get: 401 Unauthorized responses from the firebase service.

Did something change in the Firebase configuration, so that this component no longer works?

Kind regards,
Martijn Habraken

2018-07-11 08-35-50
Rui Mendes
Solution

Hi Martijn.

Firebase changed its process in creating a database for the project. You now have two options:

Locked Mode and Test Mode.
In Locked Mode, the database cannot be updated, and so, the receiver is not notified on the changes.

Please try the settings for the Test Mode, by changing your database rules to the following:

{
   "rules":  {
       ".read" : true,
       ".write" : true
   }
}


Hope this helps.

Cheers,

Rui Mendes

2018-12-11 13-32-05
Martijn Habraken

Hi Rui,

Thanks for your response. This worked and I'm able now to use the In App Chat.

Kind regards,
Martijn Habraken

2018-11-06 16-26-59
Luis Raúl Echevarría Manduley

I spent hours trying to figure out what was going on and this was the solution all along thank you!!

2021-01-27 13-21-45
Jeferson Zimmermann

Thanks Rui Mendes

For me work fine!!!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.