[ 
https://issues.apache.org/jira/browse/CB-12835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaolei Yu updated CB-12835:
----------------------------
    Description: 
We use a WebView instance within an android Service and attach it to an 
activity view hierarchy when user interaction is required.
Assuming cordova wants to support such use case a Context getter is needed in 
CordovaInterface for plugins that are accessing Context through getActivity() 
(such as the device plugin)
 
I originally created CB-12623 for the device plugin. After receiving comments I 
think it should be addressed here first.

  was:
We use a WebView instance within an android Service and attach it to an 
activity view hierarchy when user interaction is required.
Assuming cordova wants to support such use case a Context getter is needed in 
CordovaInterface for plugins that are accessing Context through getActivity() 
(such as the device plugin)
 
I originally created CB-12623 for the device plugin. After receiving comments I 
think it should be addressed in here first.


> Add a Context getter in CordovaInterface
> ----------------------------------------
>
>                 Key: CB-12835
>                 URL: https://issues.apache.org/jira/browse/CB-12835
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 3.5.0
>            Reporter: Xiaolei Yu
>
> We use a WebView instance within an android Service and attach it to an 
> activity view hierarchy when user interaction is required.
> Assuming cordova wants to support such use case a Context getter is needed in 
> CordovaInterface for plugins that are accessing Context through getActivity() 
> (such as the device plugin)
>  
> I originally created CB-12623 for the device plugin. After receiving comments 
> I think it should be addressed here first.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to