Ios cordova app randomly got frozen after dismissing inappbrowser

2017-03-10 Thread Li, Jonathan
Hi, During the recent testing of our ios cordova applications, we got an issue of the app’s main UIwebview UI freezing after dismissing the inappbrowser. Debugging shows somehow the UIWindow created by inappbrowser did not deallocated as expected after calling the close method to dismiss the i

Create hybrid app using iOS cordova with WKWebView

2016-11-17 Thread Li, Jonathan
Hi, Recently we start to investigate the possibility to adopt WKWebView for building ios cordova hybrid apps. Currently those apps are built with UIWebView on ios cordova library. In our application, the main html content is loaded from remote web server at runtime, and local cordova js resourc

Re: optimizing ios inappbrowser plugin's open and openInSystem method s

2016-09-07 Thread Li, Jonathan
all the functions provided by inappbrowser webviewcontroller, replacing inappbrowser webview controller with SASafariViewController will have more risks. Thanks Jonathan From: julio cesar sanchez Date: Wednesday, September 7, 2016 at 3:25 AM To: "Li, Jonathan" Cc: "dev@cor

optimizing ios inappbrowser plugin's open and openInSystem method s

2016-09-06 Thread Li, Jonathan
Hi, Currently there are two issues in iOS inappbrowser’s open and openInSystem methods. First, in the inappbrowser open method, it sets the instance variable at below self.callbackId = command.callbackId; this causes the problem when opening a _system targe from an inappbrowser viewCon

Re: Cordova bridge call exception console log does not include call stack information

2016-08-30 Thread Li, Jonathan
Hi, The issue is created for the issue at https://issues.apache.org/jira/browse/CB-11786 Thanks Jonathan On 8/30/16, 5:20 PM, "julio cesar sanchez" wrote: Hi. Can you create an issue on issues.cordova.io? El martes, 30 de agosto de 2016, Li, Jonathan

Re: Cordova bridge call exception console log does not include call stack information

2016-08-30 Thread Li, Jonathan
Hi, In cordova.js, callbackFromNative method, when handles the exception, it only logs the callbackid and error message, but does not log the error callstack. Usually the callstack is quite useful to find what causes the exception, so just wonder what is the reason to not include it in the erro

introduction

2014-11-12 Thread Li, Jonathan
Hi all, I'm getting myself set up as a contributor to Cordova. So far I've just been working on projects that use Cordova, but I hope to contribute back to Cordova in the future. The first change I plan to make is fixing bug CB-3071, so iOS cordova app does not need to use SDURLCache as a wor

Reopen iOS bug CB-3071

2014-09-04 Thread Li, Jonathan
Hi, Due to bug https://issues.apache.org/jira/browse/CB-3071, the cached response gets invalidated after each time restarting the iOS cordova app, the suggested workaround is to use the open source SDURLCache project, however, SDURLCache is not a good candidate to replace the iOS default NSURLC

Inconsistent behavior when opening inappbrowser window

2014-07-02 Thread Li, Jonathan
When creating inappBrowser in cordova app, for iOS, only a single uiwebview instance is created for multiple window.open method calls, and it only shows the content of last window.open's url content. However, on Android client, each window.open method call will create a separate webview instance w

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
That works. Thanks. On 4/14/14 4:26 PM, "Shazron" wrote: >Yes, that is the known limitation. My suggestion is to prefix the >preference name with your plugin name, or whatever you prefer. > > >On Mon, Apr 14, 2014 at 1:12 PM, Li, Jonathan wrote: > >> Althoug

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
f the same preference name is used by multiple plugins. On 4/14/14 3:48 PM, "Shazron" wrote: >per platform in the platform tag - yes. >plugin level - yes. > > >On Mon, Apr 14, 2014 at 11:34 AM, Li, Jonathan >wrote: > >> Does "preference" can be set o

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
Does "preference" can be set on per platform and plugin level? On 4/14/14 2:27 PM, "Shazron" wrote: >Will a tag not suffice? > > >On Mon, Apr 14, 2014 at 11:23 AM, Li, Jonathan >wrote: > >> Hi, >> In the following sample plugin.xml and conf

Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
Hi, In the following sample plugin.xml and config.xml , the parameter "enable-redirect" can be configured by app developers when they add the plugin to cordova project. However, currently only "ios-package" and "onload" parameters are parsed and stored by config.xml's settings parser, other par

Re: Explicitly added plugin gets deleted as dependent of other plugin

2014-03-12 Thread Li, Jonathan
nstalled when its dependant >is removed, regardless of if each plugin was explicitly installed. > >-Michal > > >On Wed, Mar 12, 2014 at 12:58 PM, Shazron wrote: > >> Just tested it with File and File-Transfer - looks like a bug. Please >>file >> it, thanks!

Re: Explicitly added plugin gets deleted as dependent of other plugin

2014-03-12 Thread Li, Jonathan
Created. https://issues.apache.org/jira/browse/CB-6237 On 3/12/14 12:58 PM, "Shazron" wrote: >Just tested it with File and File-Transfer - looks like a bug. Please file >it, thanks! > > >On Wed, Mar 12, 2014 at 7:46 AM, Li, Jonathan wrote: > >> When test

Explicitly added plugin gets deleted as dependent of other plugin

2014-03-12 Thread Li, Jonathan
When testing with cordova 3.4.0-0.1.3, if a plugin A is a dependent of plugin B, then running the following command will automatically delete plugin B from the project cordova plugin add PluginB cordova plugin add pluginA cordova plugin rm pluginB As pluginA is explicitly added into the project

RE: Opinions Needed: Platform specific features and mobilespec tests

2013-06-21 Thread Li, Jonathan
Probably call the test failure for the unimplemented feature as "Unimplemented Failure", and show in jasmine using a different color. Those failure are like a warning, and means the feature is expected to be supported by the platform, but is just not yet implemented. "Expected failure" is litt

RE: inAppBrowser API issue

2013-05-28 Thread Li, Jonathan
va tends to use existing W3C specs where appropriate. Braden On Tue, May 28, 2013 at 10:47 AM, Li, Jonathan wrote: > Not sure whether this is a right place for this issue, but the javascript > interface for InAppBrowser does not make much sense. The below code is > from cordova document: >

inAppBrowser API issue

2013-05-28 Thread Li, Jonathan
Not sure whether this is a right place for this issue, but the javascript interface for InAppBrowser does not make much sense. The below code is from cordova document: var ref = window.open('http://apache.org', '_blank', 'location=yes'); ref.addEventListener('loadstart', function() { alert(event.u