How to set up Firebase project for notifications? #2221
Replies: 10 comments 11 replies
-
In general you don't need to change in php code anythign except create file with required content. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your patience. Unfortunately, when I run: |
Beta Was this translation helpful? Give feedback.
-
Without looking directly in your setup I can't help with that. Go to back office and try to execute queries one by one |
Beta Was this translation helpful? Give feedback.
-
If I were to just do a fresh install, would you recommend I drop the database and delete all the files first? I did not use composer to install last time, but I'm thinking I will if I do a fresh install. |
Beta Was this translation helpful? Give feedback.
-
Up to you. |
Beta Was this translation helpful? Give feedback.
-
I went back to the old files (renaming new folder), and was able to update the db from there, via |
Beta Was this translation helpful? Give feedback.
-
Thanks. Regarding the 'Custom mobile application integration service_account file', where do I get the 'private_key_id' and 'private_key'. I set up an Oauth, and have the other info, including 'client_id', etc, but don't see the above. Unless it's the key at https://web-push-codelab.glitch.me/, however, that does not show a 'private_key_id'. |
Beta Was this translation helpful? Give feedback.
-
Okay, I reset my login (new username, pw), and it's finally working. I don't usually need hand-holding, and I HAVE read and reread and searched the documentation, trying everything, and it still wasn't working. The documentation is confusing, but I suppose a lot of that is that it's a very complex app. I appreciate the work that's gone into it, and for your patience. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The instructions here seem very incomplete.
I have started a Firebase project. In the instructions linked above, it says "Afterward, you will download a *.json file, which you will use to generate a Bearer token for notifications." But how do you use that file to generate said token? Do you just add the json file somewhere in the livehelperchat subdirectories, and if so, where?
Then, under "Sending Notifications Using Your Own Firebase Project," it says, "Refer to this file," and shows where the "lhmobile.php" file is. But that file doesn't have things in it that the example shows, like the "$serviceAccountFile" variable. Do I just put that in there, and point to the above-mentioned json file?
None of this is in there, either, though the example, which refers to the "lhmobile.php" file, seems to indicate that it is:
Are we supposed to just paste it in somewhere? The instructions give no clue. Or is this a file we create and put somewhere. Again, if so, where?
I do have the Android app installed, and it is working, however, I am not getting notifications. I do get a ringing tone when someone starts a chat. But I'd love to have a notification popup that can be clicked on, to take me directly to the chat.
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions