I have a web, an android, and an iPhone app using the same firebase database how I can know which of them send to firebase
there is a solution "send type platform" are there another solution?
Related
Background
I have a sensor "A" which connects to my mobile app over Bluetooth. This sensor generates 512 data points per seconds.
What I need
I need to send send this data to Google BigTable via Cloud pub/sub. I have already created a topic and I can push message to the topic.
What is the problem
This answer says that I need to create an app engine and connect my app to that app engine. The app engine will receive the data and send it to Bigtable via pub/sub and dataflow.I get this, but now I have two sub problem here -
a. How can stream the data from my mobile app to app engine? Websocket? Because I think I can't do simple post request to post the data to a route (/publishdata), Am I correct?
b. I am authenticating my user on mobile app via firebasea authentication. Can I validate my user on app engine via firebase-admin sdk? I can do that by passing the tokenId but is it the correct method? or can I use firebase to authenticate my users on app engine?
I have seen projects where people are suggesting to create a service account and add it into the app. The problem is I don't want to expose my credentials to client. Another talk
Can anyone suggest me tackle this problem?
Thoughts that I have
I can send data to firebase realtime database and then thinking of moving that data to Bigtable via pubsub or cloud function. I couldn't find any example of an app engine connecting to a firebase and reading data from realtime database. I thought in this example this guys sending data to Realtime database and then using pubsub to move data into Bigtable. If this is possible then can I authenticate my user on the app engine via firebase-admin sdk?
Firstly, you should take a look for this Build an Android App Using Firebase and the App Engine Flexible Environment article, which demonstrates how to write a mobile app with backend data storage, real-time synchronization, and user-event logging using Firebase.
Regarding to your first question about sending data to App Engine, you can send it as an HTTP POST. Please, take a look to following questions on Stackoverflow: 1, 2.
With reference to create a service account and add it into the app, it's not secure option. In this case, you can use Callable Cloud Functions. Refer to this Stackoverflow thread.
You can get data out of the Firebase Realtime Database via backup service which allows for exporting data to GCS Bucket. Then, you can move it to Bigtable, by using open-source Dataflow templates, for instance Cloud Storage Avro to Bigtable. Please, refer to official documentation, to find more about exporting data to Bigtable.
I hope it helps.
I'm creating a mobile game using Godot for IOS and Android, firebase and facebook plugins are available for the android version only. Therefore it's not an option because I want to a cross platform solution.
I have a websockets server, I could use that to do the authentication (as a client to call facebook API). My only question is that would the user experience / process be the same? I think not, The user would have to sign in from the browser correct? He won't be able to just use the gmail installed on his phone or facebook, is that true?
I am trying to communicate between Android and iOS app using Ejabberd Server setup at backend.
For Android I am registered with "Conversation" app.
For iOS I am registered with "ChatSecure" app.
I am able to send image if both users are available on same app. But If one user is logged in with Android and another with iOS then image transfer not working. It gives error due to "OMEMO" encryption.
Any idea how I can remove this encryption?
Could you say what is the difference between "Conversation" app and "ChatSecure" app ?
I'm beginner in android development and i want to create an app which have a database in Microsoft Azure and i want to recover data from the database to Outlook agenda (many users and many meeting).
Could you please advice me how to do?
Thanks!
You can leverage the Mobile Apps services on Azure, and connect to your Azure SQL database, then you can easily receive and sync data from Azure SQL database with Mobile Apps Android SDK. Please refer to https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-android-get-started/ for more info.
On the other hand, you can integrate the graph rest api to implement the functionality of recovering data to outlook, refer to https://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/calendar for details.
Additionally, to integrate graph rest api in Android, you can leverage the client SDK, please refer to https://github.com/microsoftgraph/msgraph-sdk-android for more info.
I am currently using Windows Azure with Android and need to sync data between sets of users using PUSH notifications.
For example: User A uploads data to Azure which is stored in the SQL DB. That then needs to be pushed down to a specific set of devices and stored locally in SQLite.
What is the best design pattern for this? Should I be pushing the data with the PUSH notification or be using PUSH as a prompt for the app to then connect with azure and download the data.
Thanks for any help.
I'd think you would want to send a notification to the device that prompts the user to launch the app, and then the app fetches the data. I don't know how Android push services work, but I'd assume there is a fairly limited amount of data you can send in a single notification.
The best way to accomplish this is to use Windows Azure Mobile Services and the unoffical Android SDK.
The unofficial Android SDK can be found at: https://github.com/goldshtn/wams-android
The benefit of using Mobile Services in this case is that it's super easy to writer server-side scripts on INSERT. After you connect your project to a Mobile Service, you'd then head to the 'Data' tab, select the appropriate table, and then head to 'Script.' Pick INSERT from the dropdown, then write a function that sends a push notification to the designated subset of users. You'll need to write this in JavaScript.
There's some code you can work from included with the unofficial SDK, but if you check out https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-push-dotnet/#update-scripts you can get a sense for the steps you'd follow for an app on any platform (though the tutorials will only walk through Windows Phone 8, Windows Store, and iOS at the moment).