I cant find any information about managing push notification outside the firebase.google.com GUI.
We need to send pushes dynamically, therefore we need to create script, which allows us to do this. For example right now, we are using Parse, we download Parse SDK to our server, give it keys etc., and then we can send pushes dynamically.
Is there any possibility for doing this with new Firebase SDK?
Firebase does not provide a REST API for their Notifications product. You'll have to use low-level Firebase Cloud Messaging (FCM) HTTP API with topics or push tokens directly, it's very similar to Google Cloud Messaging.
There is no way to trigger push notifications to specific users (Firebase UID), or to target properties & events like you would do with the web dashboard. You should consider 3rd party services like Parse Server, Batch.com etc. if you are looking for a higher level API, open-rate analytics etc.
There was little confusion, but as mentioned by Gerrit Hoekstra, the notifications are handled by Firebase Cloud Messaging (I do not know, why they have no reference from Notification topic to make it clear).
There is no SDK, however the REST API seems quite simple, you also have possibility to implement your own XMPP server for it.
Related
I have an Capacitor.js app and it uses the Firebase Cloud Messaging SDK for Push Notifications via the Push Notification Plugin. I also have a Discord bot (this is less relevant) and I want to, when a user sends a message, it will send that data to the Firebase and then that will create a notification so that the Capacitor.js app will have a notification with said data.
But I am new to Firebase and I have been reading their documentation and it is quite difficult to 1). Navigate and 2). they don't have any useful code snippets I can look at to learn how it works. Maybe that's just a problem I have, idk.
I'm wanting it for Node.js. And I really have no idea what I am doing. I have installed the Firebase Node.js package and that's about all.
I'm building a chatbot on my end and want to maintain a customer-agent chat flow where customer will be on my platform and agent will be on the amazon connect platform. Thus, I would like to retrieve messages from amazon connect platform as well. I have checked the docs and some sdks but nothing seems to help.
I have used GetTranscript sdk, it is providing me a transcript of the session, including details about any attachments, but there is no triggering event where I can get the latest messages not all the messages and also automatically not where I need to call this sdk in order to retrieve the messages. I have also looked for webhooks, checked web sockets, explored its lambda function but nothing seems to be helpful.
Please let me know if there is any further details required from my end.
I have recently been attracted by pushing custom daily notifications via WeChat from China. Now, I'm considering achieving this feature using the web techniques I have learned so far.
However, I have no clue and see rarely people sharing the correct way to do this.
I have found the following references | guidelines related to what I want to achieve:
using javascript service worker (reference link: link)
firebase cloud messaging (FCM)
some APIs to get the custom content (only need to know the customization of notification content, no need the API)
I know the following web techniques:
Javascript, HTML, CSS, Bootstrap, PHP, MYSQL
Firebase Cloud Messaging, and any other Firebase products
However, I still need some guidelines or references before I start building this pushing custom daily notification web app. It's because the references I found missing some of the main purposes of the app (app features will be mentioned in the later section). Also, I am not sure whether I should go for a JavaScript service worker or FCM. Therefore, I need some other suggestions before I can go on the right track.
This web application should achieve the following features:
Push notification every day morning at 10 o'clock
Push notification to phone
Custom notification content (e.g. inspirational quotes, weather, constellations luck, and so on)
I think that's all for the things I want to build. Please let me know if I missing something.
One of the things I'm using Firebase for in my app is to store user-submitted feedback - using push() to add children to a location. Ideally I could receive an email whenever a new child was added to that location, but this could only be done directly by some Firebase service, or perhaps somewhat indirectly by some Firebase service that could hit a URL (containing a tiny script that emails me), but I can't find any mention of either ability.
One thing I can think of is something like a little Node.js server constantly running and listening to that reference with on('child_added', cb), emailing me when something changes. I'm using Firebase to try to build this app without having a server, so I'd rather not have to do that. I'm thinking of just having a cron job on my personal computer that periodically checks the location over the REST API. Any better ideas?
The easy solution is to use a third-party service. Firebase has really great integration with Zapier. This service allows you to easily integrate Firebase with tons of different services and technologies without writing any code. One of these technologies is email. You can create a "zap", for free, which will run on their servers and automatically watch for new children of a Firebase path then send that child's information to you as an email. It's only takes seconds to set up and you don't have to write a line of code.
Unfortunately Zapier can no longer use firebase as a trigger. That said you could setup a Firebase cloud function using Node.JS. There is a pretty good list of sample functions here: https://github.com/firebase/functions-samples
I'm looking for a way to use Google Drive to share data between a Android app and a web page hosted on my server. The web page should use JavaScript to retrieve and store data in Google Drive.
The data should only be exchanged between the browser of the user and Google Drive.
According to the documentation of accessing Google Drive from JavaScript you must first create a application using the Google Cloud Console, register it and get a client ID before you can use JavaScript to access the data.
I don't want to have to maintain a Google hosted application. Is this possible?
The only point of apis console is to register your applicaiton or in your case script with google. Its baslcy just there way of keeping track of whos accessing what i think. Once you have it registered you normaly would use a clientid and stuff as well as Oauth2 to allow users to access there google drive with your script. But you wont need to go into that becouse its your application thats storing its data there and not a user.
You will probably want to look into a service account.
https://google-developers.appspot.com/drive/service-accounts
If you want to use private spreadsheet then you have to use authentication, in this case google project is easiest one. If you don't want to use private then you can publish your spreadsheet and then make ajax call without authentication/goole project.
You're not the first person we've heard this complaint from. People want to be able to log in and create an API key without having to deal with extraneous cloud services. We're working on some things to make life easier for customers like you.
Unfortunately there is no way to do this at the present time. That said, you don't have to actually maintain a separate application. You can create a project and only use it to manage APIs.