Google maps for Android, firewall whitelist - google-maps-android-api-2

I'm developing a company specific Android application that uses Maps SDK for Android and Google Maps Intents for Android (com.google.android.apps.maps) to show some markers on Google map. Users use directions and streetview Apis on these maps as well. The application will not be published on Google Play as it is completely company specific. Employees will use the app on special company provided devices not on theirs own mobiles. The company provided devices are behind a firewall allowed only to reach some services part of the project.
My question: what firewall rules (domain whitelists) should be configured to reach Maps SDK for Android and Google Maps Intents for Android services?

Related

my app using google maps service and not load map on Huawei device(tablet HarmoneyOS)

my google map not load on Huawei tablet (HarmoneyOS 4.x.x)
say your app won't run with out google play services which are not supported by your device
i'm using flutter packages
https://pub.dev/packages/google_maps_widget
Huawei phone/tablet devices released after May 2019 do not have GMS (Google Moblie Services). For those phones/tablets, you will need to use:
. Google Map Web version
. Huawei has its own map solution similar to Google Map, you can integrate Huawei Map Kit Plugin for Flutter: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/flutter-plugin-integrating-plugin-0000001252461503
. Use 3rd party Map SDK like Mapbox ect..: https://docs.mapbox.com/android/maps/guides/

Third-party apps allowed in Android Automotive

The official documentation describes two kind of applications that can be implemented for Android Automotive, Media applications and Messaging applications. Also when creating a new project in Android Studio, the IDE prompts to select a template from those options.
My question is specific to third-party apps. Is Android Automotive limited to build one of these flavors? That is, interact with the user only through the native media UI of the vehicle or the messaging/notifications mechanism. Or as a third-party application developer I can build any other kind of applications (like generic phone/tablet android apps) with custom activities/screens? In case that any kind of applications are allowed, are they limited to run when the vehicle is parked?
Android Automotive is Android so you could build whatever android app you like and run it on Automotive. The catch is that Google is, as per now, only allowing Media/Messaging apps into Play Store and has quite specific design guidelines that developers need to follow.
When your app follows Googles Driver Distraction Guidelines then it can run when a vehicle is moving.

Is Android Automotives Car API only meant for OEMs?

The AOSP Automotive documentation states that third party apps should use the Car API("VehicleNetworkService. Controls vehicle HAL with built-in security. Access restricted to system components only (non-system components such as third party apps should use car API instead)",https://source.android.com/devices/automotive).
That is quite confusing because the android developer documentations state, that the only supported type of app is a media app which does not even draw its own UI except sign in and settings(https://developer.android.com/training/cars/media/automotive-os).
So is there a possibility to write other apps than media ones that may even use the car api to read the vehicle speed for example?
Car SDK is now released to developers and many Car APIs can be reached by third party apps, however privileged apps i.e. apps that are part of android system image and designed as privileged, can access more functionality that 3rd party apps. The access is gated by Android permissions.
See How to utilize Android Car API inside an app for my answer.
Of course you can develop any app running in Android Automotive Enviroment (i dont want to called it Android Automotive OS because it simply Android )
Google only given some advice/rules how to design your app in the way it good for Automotive product. Login, Car status check , Driver distraction limit...vv.
For 3rd developer sure you have to use Car API what car OEM offer and might require OEM's SDK also..
Goolge as of now only provide some kind of permisison that you can add to your app manifest. Then hopefully it can get correct information if OEM supported in thier IVI.
adb shell pm list permissions | grep car

Can we use android phones as google home device

After creating private API.AI agent, I can test it using the simulator. But is it possible to test it in Android phones ?
Not yet. But you can use the "Agent Page" under Integration in API.AI to give you a web view you can use from the phone. Easy to share too!
As given in https://docs.api.ai/docs/sdks API.AI has provided support for many platforms and using it we can access our private agent.
i.e as given in https://github.com/api-ai/api-ai-android-sdk#getting_started , I created android app by providing access_token detail of my agent and now I can pass the request via my android phone; similarly i used node.js and can make request to my API.AI agent from Linux PC
You can do this now that Google has pushed the Assistant to the Google Pixel, Nexus 6p, and Nexus 5x. No other phone currently can use the assistant.
Edit 4/17/17: Upon successfully deploying my own agent I was expecting to be able to use it on my phone after being able to test and preview it on my phone. However it was not working so I contacted their support and got the following answer:
Sorry for the inconvenience, but Actions on Google are not currently
supported on any device other than Google home. The functionality you
are referring to was the result of a bug that allowed access across
multiple devices to a subset of users, that bug was patched and that
is why you lost the functionality. Google is planning to make Actions
on Google available across multiple devices, but as per policy, we
don't comment on timelines for releases in support.

how to load iPhone application from web application

I have web application for mobile (developed in .net), I want to use iPhone maps application from web application( i.e. from web browser on button click)..how to do it? I want to do same in android to.
I don't know about Android, but this page describes how to construct a URL that will open the iPhone's Maps application.
If you are trying to view a map from a web application (viewed in the mobile browser), simply link to Google maps as you normally would. Some mobile OS's will open their native maps application, and the others will receive Google's mobile-optimized maps website.
Edit:
As Robot K said, the http://maps.google.com URIs will be intercepted on iOS and open the native map application. If you want to force the same behavior on Android, you will have to do user agent detection and use the geo uri scheme documented here.
The user agent detection is to determine whether the link you attempt to load is the http scheme for iOS or the geo scheme for android.