Google Fit Data Update Notifications - google-fit

I am trying to integrate Google Fit SDK. Is there any way to get data update notifications from Google Fit for Android SDK?

Yes, you can add an OnDataPointListener to any DataSource or DataType to receive updates when data is added to the respective type in real time. You do this through the Sensors API.

Related

Website Restrict Google Maps API key dynamicly via SDK

my question: Is there any Google API / SDK I can use to be able to dynamically add "HTTP referrers (web sites)" (assign domains) to maps API key ?
Background
I'm building a web-application portal that will allow anyone to create a business website and assign a custom domain to it.
On that generated website customer will have google maps map pointing to address of their business.
Customer has an option to add custom domain to their business website created by my web-application (by CNAME to the my web-application)
Desired feature is that once the domain background job will get triggered that will add that domain/host to list of restricted domains/hosts for my Google Maps Api key so that their domain will be able to read google maps on their domanin
note: I Have cron job DNS lookup validation check implemented to ensure that domain is really assigned to the domain
live example
here is website generated by customer on my web-application http://sbs-sos.sajtka.sk/ he assigned a domain and pointed CNAME http://sbs-sos.sk/
Reason why the google map works is because I manually white-listed their domain. I need to automate this
please aware portal is not fully launched so many bugs are happening
The feature request to manage API keys restrictions via SDK was submitted in Google issue tracker in 2016:
https://issuetracker.google.com/issues/35829646
Currently, there are no any official SDK for that. However, the last update from Google says that they released experimental API to programmatically manage your API Keys and their restrictions.
The best way to handle thousands of authorized domains is to use an API to programmatically manage your API Keys and their restrictions, and we have recently launched a new service that allows you to do this.
This API is still in Alpha. If you are interested in becoming a Trusted Tester for this service, you can use the following form to sign up, please read the instructions carefully:
https://forms.gle/qx2SMcarWCAsbWVp7
Please note that this API is not part of the Google Maps Platform. After you fill out the form, you will be contacted by the API Keys API team with instructions on how to get started, and how to receive support.
API Keys API is currently free of charge. However, please note that use of Cloud Endpoints may be subject to charges at high traffic volume. You can check the pricing sheet here:
https://cloud.google.com/endpoints/pricing-and-quotas
I would suggest joining Trusted Tester program and try out this API.
I hope this helps!

Dynamically set Google Maps API key in Xamarin forms

I am working for a product based company. We are building Xamarin form apps for our customers. We would like to have separate Google Maps API key for our customers. But as per the documentation this can only be done in Manifest files.
We would like to set this key dynamically, as our app is available on Play Store and based on customer, we will decide the key.
Kindly let me know how can we achieve this.
One thing you can do is to have a "tag" for each of the customers and call google analytics at the same time that you are calling the Google Map.. Then you can run a report on Google Analytics based on the tag

How does Google keep track of map loads without API key?

I am implementing Google Maps in my web application. Since Version 3 I don't need an API key for accessing their servers.
Google is limiting the requests, though.
How are they doing that? If external users are accessing my website, one map load is generated.
Do I have now about 25,000 map loads per IP address or how to they
recognize my application?
They probably use the location/domain of the current document(this detail will be sended to the Authentication-service).
But as long as it's not documented this may only be an assumption, you'll have to ask google how they do it.

Google Places update via API

Do you know if it is possible to update an existing place via API in Google Places?
Suppose I need to change the "Hours of operation" because my business activity has flexible open hours and I want to automate this task via script.
Thank you.
Well, Google Palces API decoumentation tells only about deleting or adding new places:
https://developers.google.com/places/documentation/
So it seems impossible for now, but it is still beta, so maybe it will be possible in future.

Looking for a google-analytics-style map creating app or api

I am looking for a google-analytics-style map creating app or api based on visitor IP addresses, any suggestions?
thanks,
nicoperez
Did you take a look at the Google Visualization API? Specifically, the intensity map and the geomap.
I know there are a few of these services available. Try a google search for 'ip visitor geolocation' and similar combinations.
One that looks interesting is hostip.info as they have a community-maintained IP geolocation database that you can download in full if you wish to roll your own map.
They also provide a service where you can upload your logs to generate a little map image if you don't want to do the work yourself.
We recently added a feature for this to our EmbeddedAnalytics service. It is all based on your Google Analytics data and utilizes Google's Exp API for the data.