[Firebase Web] Documentation needed

[Firebase Web] Documentation needed

  
Forge Component
(4)
Published on 2017-08-24 by Labs
4 votes
Published on 2017-08-24 by Labs

Where can i find the user id to generate the token, i think i am not passing right because i am getting an 401 unauthorized

Solution

Hi, Filipe.

The UserId parameter can be set using the GetUserid() function.

If that is what you are using, make sure that your database rules, in Firebase Console are set.

You can set them by following the image below.


These are insecure rules. You can learn more about these, by following this link.

Furthermore, if you need a more in-depth guidance on how to set it up, here's a useful link.


Hope this helps.


Cheers,


Rui Mendes

Solution

Yes, i can send a message but i am not recieving in the firebase mobile

Hi Filipe.

Do make sure that not only your ProjectId parameter matches between the FirebaseNotifyEvent action and the FirebaseReceiver block, but your TargetIdentifier matches as well.

For a detailed usage on the Firebase Mobile Component, you can download and install the following components:
https://www.outsystems.com/forge/component/2256/in-app-notifications-mobile/
https://www.outsystems.com/forge/component/2260/in-app-chat-mobile/

These components make use of the send/receive scenarios and have a working sample application you can test using your Firebase credentials.

There is also the web version for both components, if you need to check the web implementation.


Cheers,

Rui Mendes