I understand that Firebase Auth API is not available for Android Wear. However, I am working on an App where the authentication happens on the phone and some features on the wear app depend on the user authentication information on the phone. My code is a little all over the place to paste here, but if anyone has any suggestions, it would be great.
You can set up a communication channel between the phone and the wearable using the Data Layer API. Once that's done you can sync whatever data you need as a DataItem.
An alternative might be to do the authentication on the wearable. Android Wear supports authentication using OAuth 2.0. See the documentation for more details.
Related
I have an Android mobile application.
The application connects to the API in .NET 5 via REST
I would like to log in via a phone number (I would like to use Authenticate with Firebase)
How to go about this topic?
There are many dangerous ways, but I want to do the best solution
Firebase Auth - is the best and simpiest solution for you.
Visit https://firebase.google.com/docs/auth/web/start to get the general info.
Also you will get full guides rigth in Android Studio after connect Firebase Auth to your application.
I have a project, angularjs webapp (backend java and spring boot) and uses google map too, there is an android app that sends alerts to this webapp and those show location on the webapp’s map. However when I implement spring security it would secure the webapp and REST api, but will prevent the alerts from android showing on the map (can not find resource)….
I want an easy simple way to secure the app without stopping the REST API services, yes I want to secure my API but still want to be able to show the alerts sent from android device, also still accepts new registration from android users....(android users cant access webapp they only register to use android app and will be added to database..they will need to be able to post their info...)
I tried oauth2 using google sing in, but I must be missing something as it wont load,..If you think this is the right approach please confirm...I will further look into it...Or direct me to tutorial or give me any suggestions...
P.S I am using bluemix platform as a service at the moment and CLearDB database service from bluemix
I am a student and all this is new to me...Thanks
So I have implemented ElasticSearch API using Amazon Web Services. Now as the Android Application is currently in testing mode
I am building an Android Application where there is one Search feature for user where I have used ElasticSearch API from Amazon Web Services. Now the question is how to secure that API Request.
I have so far seen the policy based authentication, Shield. I want something of a token based authentication like restful api's.
Is there something out there for this or a different approach in android application for searching.
You could use AWS Lambda that will act as an auth layer.
If you are using a server already then you can do something like the image below. If you are hitting ElasticSearch from your Android App then maybe something like this custom plugin, but I don't know if your provider (AWS) permits the installation of custom plugins.
You can find an interesting conversation on this thread. Maybe something that fits your use case will come up.
I have been looking into Google LVL to address stolen apps issues.
The API states the device need to "Run a system image on which the Google Play client application is preinstalled"
This cannot happend on a Wear device, but I am wondering if it can leverage the host phone instance of Google Client.
Has anyone faced this scenario?
You can't leverage the phone instance directly but a common approach at getting anything the phone can provide (network status etc) is to use the messaging api to send a custom message to request the information and get a message from the phone as a response. You could easily add to your wearable listener service on the mobile side to call the licencing and then wrap up a response and send a message to the wearable.
Depending on what your app does I'd try to put this as part of an existing message from mobile to wear to save unnecessary chatter.
Is it possible to use Google Analytics with Android Wear directly?
Meaning, can I create Trackers etc... directly in my wear app, or do I have to send the data to the handset as a proxy to the analytics service?
UPDATE: I have tried using Analytics directly from the Wearable, and so far I'm getting nothing (nothing shows up in the analytics dashboard, and there are no logs pertaining to anything analytics related).
Android Wear devices aren't directly connected to the internet so you can't use the Google Analytics API directly. You have to forward the events from the Wear device to your host device (which is connected to the internet), and that will then talk to Google Analytics.
Here's a snippet that shows you how to do that, although for a slightly different use case.
At Segment, we've developed an extension to our Android library that lets you use Analytics for a ton of tools from Android Wear. So instead of having to write your own code to forward all the events, you can just do WearAnalytics.with(context).track(...).
Disclaimer: I work for Segment, and developed the Android library above.
As per this link, using messages and data items is the only way to work with Google Analytics on a wearable.