I have an Android mobile application that used to upload image and text to Firebase Database. Now, I have another web application that using C#, this is used to retrieve the data (which uploaded by the mobile app) from the Firebase. I found some examples regarding on how to retrieve data using C#, but it needs to "Add Firebase to your Web App" . Is it possible that not adding web app? Thank you.
I mean, is it possible that my mobile and web applications use the same Firebase Database/Storage, and both applications can add, edit, delete the data in the same Firebase Database/Storage?
Yes, it is possible to have an ios and web application using the same realtime database and same storage.
From the firebase docs:
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data.
To add web or ios to the project, you need to go to the firebase console and then click on add another app and choose if ios/android/web and just follow the steps.
Related
For my ASP.NET MVC web application, to send the push notifications among the users I have used SignalR + Firebase.
And I have published my application and hosted it in the Azure service.
As a Database when I developed it I used MS SQL and when publishing it I chose AzureSQL as the database.
The thing is I can't use it because AzureSQL doesn't support the ENABLE BROKER hence the push notification isn't working.
So When I googled it, I saw that there is a Service called Azure Push Notifications
But I couldn't find a tutorial or example with integrating it with the ASP.NET project.
Is it possible to use Azure Push Notifications for my ASP.NET project? If yes, can anyone share with me the tutorial or something on how to do it?
As far my current project, I did it with the firebase and, created firebase project and included it in my project to ask to allow notifications when the user logged in, If the user Allowed the record saved with the User Id and the token, And whenever database change is happening, Push notification sends to the user.
So as this can we do it in Azure push notification?
Before this, i had tried to get firebase data, and that's work when i initialized firebase app using angular typescript.
But for now, i need to get firebase data automatically by schedule, and i tried to create window service using c#, Also working when i follow this tutorial that i found https://www.c-sharpcorner.com/article/create-windows-services-in-c-sharp/
The problem is, I not found any tutorial how to initialize firebase app using c#, all tutorial is using service account to get firebase data.
But how can i initialize firebase app without service account using c#? because i only get this firebase config as below from firebase owner.
const firebaseConfig = {
apiKey: "apkey",
authDomain: authdomain",
databaseURL: "databaseurl",
projectId: "projectid",
storageBucket: "storragebucket",
messagingSenderId: "messagesenderid",
appId: "appid",
measurementId: "measurementid"
};
i had try to find the solution, but not found anything,
or is there a way to create a window service from angular typescript?
I would be glad for any help.
If you are writing backend or desktop code to access Firebase products, you will not be able to use the configuration objects provided for web or mobile applications. You must use a service account to initialize any SDK you're using. The web and mobile SDKs are built for use by end users that require authetnication, but backend code is not driven by end users. The service account effectively authenticates and authorizes backend code to access Firebase products.
I want to develop a chat module in my existing app built using android native java. Currently my user account and all data saved in sql server with backend built on C# MVC framework. Now I am confused what structure I need to follow to built chat module, I have watched many firebase tutorials but they all used firebase realtime database and save user in firebase database but I already have my data in sql server. Anyone please guide me how start with it or do you guys give any suggestion to me.
I want to create a native android app by using angular nativescript because I already have angular knowledge. I do not need to re-use angular code because of a parallel existing web app. There will just be the android app.
The user will create and save some data which could be stored on a sqlite/room database on the smartphone. All links about data access I found are about JAVA.
How can I write the backend database access code with C#. Even better would be an ORM to access the local persistent store. I do not want to create a database on azure and make it available via C# web api. Thats total overhead for my situation.
I'm evaluating Xamarin and Azure. I would like to use App Service as a backend store.
I downloaded the C# backend and the Xamarin.Forms client application
I published the backend but it doesn't create the TodoItem table in my SQL Azure database.
It's possible to create this table by selecting the Node.js backend and click the Create TodoItem table. After this, the client application works nicely.
So, is there something to do for the C# backend to create the tables at startup?
is there something to do for the C# backend to create the tables at startup?
1.Add the data connection for Azure mobile service
2.Download the C# backend, and publish it to Azure. Make sure that conection string is the same as azure mobile App.
3.After that we could visit the browser
(http://yourmobilesitename.azurewebsites.net/tables/todoitem?ZUMO-API-VERSION=2.0.0)
it will create todoitem table for us automatically.
4.Check it from the VS Server Explorer
Note: If we want to connect the Azure SQL, we need to add the client ip in the Azure SQL firewall to allow our client to connect.
Another way is that we could use code-first migration easily to do that. I created a demo before, more detail please refer to another SO thread. We also could get more info from this tutorials.