Google Fit SessionsApi not returning all sessions in time range : <p>Somehow I've run into a dead end with the Google Fit Android SDK. Currently I'm building an application that reads, displays and processes data from Google Fit to give users insights on their workout behavior. </p>

<p>My situation is as follows: I used to test on a Google Pixel - everything was fine and I've received all (more than 20) sessions from Google Fit. One week ago, I've switched to a HTC10 - on this device I'm only receiving 4 (!) sessions from Google Fit - same app, same code, same Google Fit account (in the Google Fit app 
I can still see all workouts and sessions). The sessions I'm trying to read were not created with my app, but instead with the Google Fit app itself. But still, on the old phone I could read them, on the new one I can not. </p>

<p>Let me paste some code for additional clarity. </p>

<p>GoogleApiClient Set-Up</p>

<pre><code>googleApiClient = GoogleApiClient.Builder(context)
    .addApi(Fitness.HISTORY_API)
    .addApi(Fitness.SESSIONS_API)
    .addApi(Fitness.RECORDING_API)
    .addApi(Fitness.GOALS_API)
    .addScope(Scope(Scopes.FITNESS_ACTIVITY_READ_WRITE))
    .addScope(Scope(Scopes.FITNESS_BODY_READ_WRITE))
</code></pre>

<p>After connecting, I subscribe to several RecordingApis (<code>TYPE_WORKOUT_EXERCISE</code>, <code>TYPE_WEIGHT</code>, <code>TYPE_CALORIES_EXPENDED</code>)</p>

<p><code>SessionReadRequest</code>:</p>

<pre><code>   val sessionRequest = SessionReadRequest.Builder()
                .setTimeInterval(startTime, endTime, TimeUnit.MILLISECONDS)
                .read(DataType.TYPE_WORKOUT_EXERCISE)
                .readSessionsFromAllApps()
                .enableServerQueries()
                .build()
</code></pre>

<p>Reading the sessions:</p>

<pre><code>       Fitness.SessionsApi.readSession(googleApiClient, sessionRequest)
        .setResultCallback { result -&gt;
            Timber.d("Sessions result: %s", result.status)
                Timber.d("Got %d sessions", result.sessions.size) // returns only 4! for 2014-NOW timerange
       }
</code></pre>

<p>Any help would be appreciated.</p>
