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.
Related
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.
What I need is to create a android game app where user interact with each other.
And user can chat as well.
I was in the initial R & D face, I was looking into the ways I can implement push to the android device.
What I found was over net is the following two poular ways:
1) using nodejs.
2) using google cloud messaging.
But the problem is:
nodejs: nodejs is a javascript library it will NOT work for background processes.
google cloud messaging : I don't want to use it; because it is google dependent and I may want to connect blackberry, windows and android as well.
Any one with a better solution or Am wrong somewhere ??
We are using Amazon Mobile Analytics to collect app usage for Android using AWS Android sdk.
Since our application is business related we are tracking some custom events. Now we want show those custom events analytics to app user on Android device. Is there any way to get our app analytics data in the form of web services so that we can show the data to our users on Android app?
I have posted the same question on AWS forum here, unfortunately I have not got any reply.
Amazon Mobile Analytics recently released the "Auto Export" feature. This enables you to get your raw events in an S3 bucket. From there you can easily build a web service around it or simply read the raw S3 file.
http://aws.amazon.com/about-aws/whats-new/2014/12/17/introducing-amazon-mobile-analytics-auto-export/
How can I monitor a file on Google Drive in the most efficient way in my android Application? I prefer not to use a polling mechanism because of the possible unneeded data traffic involved.
On the Google developers site I found the following information: https://developers.google.com/drive/v2/reference/files/watch
But I cannot find any examples where this has been applied (e.g. how to use the channel, how to integrate this in a sync adapter etc.).
Watch notifications can only be received by web hooks at the moment, we're going to be extending the notifications to the mobile environments soon. For now, you need to poll files.get to see if there are any changes.
With Google Play services 4.3 we can now register callbacks to be notified when a file changes.
I have an app that has some configuration settings stored in SharedPreference. Now I want to provide a web interface using which customers can log into their account through a browser on the web and change the config settings seamlessly. These changes should be pushed to my android app..
I know C2DM is one option but I dont want to rely on :
If Google Market app is installed on my customer's app.
If they have configured a google account linked to their phone(It uses an existing connection for Google services. This requires users to set up their Google account on their mobile devices. source : http://code.google.com/intl/pl-PL/android/c2dm/)
What are my options?
For push notifications there is another one better service: Urban Airship
I guess C2DM implementation with a broadcast receiver would not be such a bad idea. SMS are costly and implementing my own notification system couldnt be more battery power efficient than google's.
My concern of customers not having Google Play or an account linked to their phone will be taken care of based on the fact that anyways they will be downloading my app from the market and that makes them have the two requirements met.