cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
265 stars 316 forks source link

Service has leaked IntentReceiver #197

Open Charmedme opened 7 years ago

Charmedme commented 7 years ago

It seems that I am doing something wrong.

A few days ago, I received an "Stopped working" message from my App.

I could use some help with this.

It's giving me the following error:

12-22 08:14:35.936 14528 14528 E ActivityThread: Service com.flybuy.cordova.location.BackgroundLocationUpdateService has leaked IntentReceiver com.flybuy.cordova.location.BackgroundLocationUpdateService$1@6d71ed9 that was originally registered here. Are you missing a call to unregisterReceiver()?
12-22 08:14:35.936 14528 14528 E ActivityThread: android.app.IntentReceiverLeaked: Service com.flybuy.cordova.location.BackgroundLocationUpdateService has leaked IntentReceiver com.flybuy.cordova.location.BackgroundLocationUpdateService$1@6d71ed9 that was originally registered here. Are you missing a call to unregisterReceiver()?
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:962)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:763)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1172)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1152)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1146)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:554)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at com.flybuy.cordova.location.BackgroundLocationUpdateService.onCreate(BackgroundLocationUpdateService.java:153)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2895)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ActivityThread.access$1900(ActivityThread.java:157)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1439)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.os.Handler.dispatchMessage(Handler.java:102)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.os.Looper.loop(Looper.java:148)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at android.app.ActivityThread.main(ActivityThread.java:5525)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at java.lang.reflect.Method.invoke(Native Method)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
12-22 08:14:35.936 14528 14528 E ActivityThread:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)