You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Are you missing a call to unregisterReceiver()? #7452
com.mapbox.mapboxsdk.net.ConnectivityReceiver@2e41666 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:918)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:719)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1172)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1152)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1146)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:554)
at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:35)
at com.mapbox.mapboxsdk.MapboxAccountManager.start(MapboxAccountManager.java:53)
Place the accountManager inside your application object similar to what we are doing inside our testapp. Once this is done, remove any account manager calls you might have inside activities. Let me know if this resolves the issue.
the underlying issue seem to starting up MapboxAccountManager with an non application context, this is something that should be enforced by the ConnectivityChangeListener, picking this up as part of a refactor.
Activity
cammace commentedon Dec 15, 2016
Place the accountManager inside your application object similar to what we are doing inside our testapp. Once this is done, remove any account manager calls you might have inside activities. Let me know if this resolves the issue.
tobrun commentedon Dec 16, 2016
the underlying issue seem to starting up MapboxAccountManager with an non application context, this is something that should be enforced by the ConnectivityChangeListener, picking this up as part of a refactor.