Using custom google action offline on a smartphone - android

I created a google action that is meant to be used on an android smartphone with the google assistant. The action should be used offline because the smartphone will be connected to the wifi generated by a device, and the action will send a HTTP request to that device. Is it possible to do it? Should I follow the standard procedure for using the google assistant offline?

Actions on Google is not available offline. It requires access to the public Internet.

Related

how can i communicate to google home mini device with android app or vise-versa

Is it possible with Google home device listen our command -> which trigger action in our android app -> app fetch the rest api data according to command -> app parse the data and send response to google home device -> google home device tells/speaks the result.
The Google Home cannot communicate directly with your Android device. All of its communication is done directly with a server. This server can communicate with an Internet-based webapp that you control using the Actions on Google API.
That said, there are various ways that you can make a server that communicates with your Android app to collect the information, or just have the webapp make the REST API call itself.

EsriSecurityException while Utilizing Client's Map services

Working on an Android app which utilizes ArcGIS Android SDK. In the project, I am having a requirement where in I need to show some maps of our client. Those services are all secured and can be accessed only via VPN. The VPN server type is Juniper for which I had installed Junos Pulse app in my phone. Made the VPN connection in Junos Pulse app. Trying to make a ArcGISTiledMapServiceLayer instance by passing the URL of my client's map service. But it's giving me EsriSecurityException.
Would like to know is my app not able to recognize the VPN connection made in Junos Pulse app? Other than providing the credentials (while making the VPN connection) do I still have to pass the credentials by my app as well? If yes, in what format?
Can somebody please guide on how can I utilize some secured Map Services of a particular domain?
Thanks.
Get your VPN connection working and your ArcGIS services will work. This is a problem with Junos Pulse, not with ArcGIS.

Android Wear without google play services?

I'm not a very big fan of Google play services. I don't know what they do under the hood and they are not open source.
I would still like to connect my app with Android Wear to have a basic communication without the google lib. Is it possible?
Your phone has bluetooth, your wear device has bluetooth, you can connect them using the standard bluetooth api. Or, as both devices have wifi, you can make them connect through a server. You have to write your own server for that, i.e. your own "Play".

Google authentication accessing api through custom service?

I have a web based service (running for years) that works with google apis.
Now I would like to create an android and iphone ui (using xamarin) that uses my web services which in turn talks to google apis.
Given that I don't talk directly to google apis from the phone, do I need to use a web browser control to let the user login, or can I authenticate my server and establish a session natively on the phone?
I'm afraid I need to use a browser window, and I don't think it's user friendly to have to login to a google account in a browser window on the phone.
(I want to keep the logic on the server, so that the phone apps and the web ui uses the exact same code for it's calculations.)
EDIT: It seems Cross-client identity is what I'm looking for.
It can be done natively. See this video https://www.youtube.com/watch?v=9wAx39s10yw which explains all of the procedure using cross-platform authentication.

Accessing an Android through a web site

There are plenty of software in Google play which can be used to locate your phone when it is lost/stolen. There is a daemon running in the phone and you contact that daemon through internet over a web site.
There are two ways of doing this. The daemon can send the details like IP to a server periodically and the server can use those details to contact the phone. But this approach has a higher overhead.
Instead there should be another way to do this. In Google play (Earlier Market) a user can select an application and the device using web interface and the relevant software is automatically downloaded to the phone which is properly configured with the same Google account. How do I mimic this behaviour with a custom application.
As an example I am trying to develop an android application that can associate with a google account and then I should be able to connect to the phone over a web site given the Google credentials.
You usually don't want your app to be a daemon, as those eat batteries. Instead implement this with C2DM. When the app first launches, it registers with the website; later, when the owner wants to locate his/her/its phone, they login into said website, click the "find my phone" button, a "wherefore art thou" notification is sent to the phone, which does an HTTP POST to the website with its GPS location. The website shows it, or emails it, to the owner, who then rolls with the posse.

Categories

Resources