Is there any way to manually flush all events in Google analytics queue, when Google Play Services is installed?
There is one method in the Android GA documentation:
GoogleAnalytics.getInstance(getActivity().getBaseContext()).dispatchLocalHits();
But this method doesn't work with Google Play Services - the docs say:
public void dispatchLocalHits ()
Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available, and the local dispatching service is in use. This method only works if local dispatching is in use. Local dispatching is only used in the absence of Google Play services on the device. In general, applications should not rely on the ability to dispatch hits manually.