Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplitude tracking location once every app restart even if you disable location #189

Open
DavidCorrado opened this issue Jan 31, 2019 · 0 comments

Comments

@DavidCorrado
Copy link

I enabled disableLocationListening.
Problem is in the initialization you poll the location when creating the device in initializeDeviceInfo() in AmplitudeClient.java

You can see it polls the location by putting a breakpoint in the
getMostRecentLocation in DeviceInfo.java

Below is my initialization of amplitude line
Amplitude.getInstance().initialize(application, BuildConfig.AMPLITUDE_TOKEN).disableLocationListening().enableForegroundTracking(application))

Pretty sure this change caused the issue
#117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant