lulibrary / Background-Beacon-Monitoring

Cordova Plugin to allow background monitoring of beacons and sending interactions to Library Journeys server
Apache License 2.0
8 stars 10 forks source link

Is notification not getting from Enter/Exit Region in Background Mode ? #11

Open Dinesh0405 opened 6 years ago

Dinesh0405 commented 6 years ago

I am able to monitoring in the background using this plugin Great Work you have done, but I am unable to get Notification from Background when I am entering in the Region and Existing from the same Region.

Please Find the Below Code working in Background:-

07-20 13:20:55.255 13361-13361/io.ionic.starter D/CycledLeScanner: Waiting to stop scan cycle for another 99 milliseconds 07-20 13:20:55.354 13361-13361/io.ionic.starter D/CycledLeScanner: Done with scan cycle 07-20 13:20:55.355 13361-13361/io.ionic.starter D/BeaconService: Calling ranging callback 07-20 13:20:55.355 13361-13361/io.ionic.starter D/Callback: attempting callback via intent: ComponentInfo{io.ionic.starter/org.altbeacon.beacon.BeaconIntentProcessor} 07-20 13:20:55.355 13361-13361/io.ionic.starter D/RangingData: writing RangingData 07-20 13:20:55.355 13361-13361/io.ionic.starter D/RangingData: done writing RangingData 07-20 13:20:55.359 13361-13361/io.ionic.starter D/CycledLeScanner: stopping bluetooth le scan 07-20 13:20:55.359 13361-13361/io.ionic.starter D/CycledLeScannerForLollipop: Stopping scan 07-20 13:20:55.359 13361-13361/io.ionic.starter D/BluetoothAdapter: STATE_ON 07-20 13:20:55.368 13361-13361/io.ionic.starter D/CycledLeScanner: starting a new scan cycle 07-20 13:20:55.369 13361-13361/io.ionic.starter D/CycledLeScanner: starting a new bluetooth le scan 07-20 13:20:55.369 13361-13361/io.ionic.starter D/CycledLeScannerForLollipop: starting non-filtered scan in SCAN_MODE_LOW_LATENCY 07-20 13:20:55.369 13361-13361/io.ionic.starter D/BluetoothAdapter: STATE_ON 07-20 13:20:55.373 13361-13372/io.ionic.starter D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5 07-20 13:20:55.376 13361-13361/io.ionic.starter D/CycledLeScanner: Waiting to stop scan cycle for another 1100 milliseconds 07-20 13:20:55.376 13361-13361/io.ionic.starter D/CycledLeScanner: Scan started 07-20 13:20:55.378 13361-15584/io.ionic.starter D/BeaconIntentProcessor: got an intent to process 07-20 13:20:55.378 13361-15584/io.ionic.starter D/RangingData: parsing RangingData 07-20 13:20:55.378 13361-15584/io.ionic.starter D/RangingData: parsing RangingData 07-20 13:20:55.379 13361-15584/io.ionic.starter D/BeaconIntentProcessor: got ranging data 07-20 13:20:55.380 13361-13461/io.ionic.starter D/com.unarin.beacon: didRangeBeacons: {"eventType":"didRangeBeaconsInRegion","region":{"identifier":"deskBeacon","uuid":"b9407f30-f5f8-466e-aff9-25556b57fe6d","typeName":"BeaconRegion"},"beacons":[]} 07-20 13:20:55.382 13361-13361/io.ionic.starter W/cr_AwContents: Application attempted to call on a destroyed WebView java.lang.Throwable at org.chromium.android_webview.AwContents.isDestroyed(AwContents.java:332) at org.chromium.android_webview.AwContents.isDestroyedOrNoOperation(AwContents.java:305) at org.chromium.android_webview.AwContents.evaluateJavaScript(AwContents.java:582) at com.android.webview.chromium.WebViewChromium.evaluateJavaScript(WebViewChromium.java:193) at android.webkit.WebView.evaluateJavascript(WebView.java:994) at org.apache.cordova.engine.SystemWebViewEngine.evaluateJavascript(SystemWebViewEngine.java:348) at org.apache.cordova.NativeToJsMessageQueue$EvalBridgeMode$1.run(NativeToJsMessageQueue.java:368) at android.os.Handler.handleCallback(Handler.java:746) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)