[ 
https://issues.apache.org/jira/browse/CB-7976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200945#comment-14200945
 ] 

Andrew Grieve commented on CB-7976:
-----------------------------------

This shows up in 3 places:

{quote}
cordova-plugin-battery-status/src/android/BatteryListener.java:                
cordova.getActivity().registerReceiver(this.receiver, intentFilter);
cordova-plugin-network-information/src/android/NetworkManager.java:            
cordova.getActivity().registerReceiver(this.receiver, intentFilter);
framework//src/org/apache/cordova/CoreAndroid.java:        
this.cordova.getActivity().registerReceiver(this.telephonyReceiver, 
intentFilter);
{quote}

> Android: registerReciever() calls should attache to webView's context rather 
> than activity's context
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CB-7976
>                 URL: https://issues.apache.org/jira/browse/CB-7976
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> I'm experimenting with creating a webview that is transferred from one 
> activity to another. Problem is that many plugins attach themselves to the 
> lifespan of `cordova.getActivity()` rather than `webView.getContext()`.
> In general, these are the same, but not in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to