When you exit from application it starts give following error.
What might be reason
E/ActivityThread: Activity ***.MainActivity has leaked IntentReceiver name.ratson.cordova.sms_receiver.SmsReceiver@5b7c8c4 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.bssys.custom.orient.test.MainActivity has leaked IntentReceiver name.ratson.cordova.sms_receiver.SmsReceiver@5b7c8c4 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1437)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1214)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1486)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1459)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1447)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:633)
at name.ratson.cordova.sms_receiver.SmsReceiverPlugin.receiveSms(SmsReceiverPlugin.java:92)
at name.ratson.cordova.sms_receiver.SmsReceiverPlugin.execute(SmsReceiverPlugin.java:40)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:165)
at android.os.HandlerThread.run(HandlerThread.java:65)
When you exit from application it starts give following error. What might be reason
E/ActivityThread: Activity ***.MainActivity has leaked IntentReceiver name.ratson.cordova.sms_receiver.SmsReceiver@5b7c8c4 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity com.bssys.custom.orient.test.MainActivity has leaked IntentReceiver name.ratson.cordova.sms_receiver.SmsReceiver@5b7c8c4 that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1437)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1214)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1486)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1459)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1447)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:633)
at name.ratson.cordova.sms_receiver.SmsReceiverPlugin.receiveSms(SmsReceiverPlugin.java:92)
at name.ratson.cordova.sms_receiver.SmsReceiverPlugin.execute(SmsReceiverPlugin.java:40)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:165)
at android.os.HandlerThread.run(HandlerThread.java:65)