cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Commented] (CB-12835) Add a Context getter in CordovaInterface
Date Thu, 25 May 2017 18:13:04 GMT


Joe Bowser commented on CB-12835:

Can you explain this use case in more detail.  The CordovaInterface is expecting that you
will be providing it an Activity, and that it will be getting the context from the activity
itself, not from a service.  This isn't the intended use case for Cordova, so more information
on what you're trying to do would be more helpful.

Does this mean we can close the PR you opened on CB-12623? 

Seriously, we're confused as to what you're trying to do here, so more info would be helpful.

> Add a Context getter in CordovaInterface
> ----------------------------------------
>                 Key: CB-12835
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message