ludei / webview-plus

Uniform webview on any Android 4.x device.
103 stars 16 forks source link

"makeCall" function. #14

Closed agamemnus closed 9 years ago

agamemnus commented 9 years ago

I have traced a number of Webview+ functionality issues to a CocoonJS JSON parsing error (trying to parse "") -- callbacks to the internal Java API that are failing and returning nothing.

This is the internal function I refer to:

['makeCall'] = function () {
 return JSON.parse (
  window.CocoonJSWebViewCallbackObject.CocoonJSMessageForResult (
   'cocoonjs://200' + JSON.stringify(window.cocoonjsCheckArgs.call (this, Array.prototype.slice.call(arguments)))
  )
 )
}
agamemnus commented 9 years ago

One example is createFullscreen: cocoonjs://200["createFullscreen",{"fullscreenAdUnit-Android":"THE_AD_UNIT_ID","refresh":20}] or cocoonjs://200["createFullscreen",{}]

agamemnus commented 9 years ago

After uninstalling the launcher and reinstalling with the latest version, I see that you do not have ads listed. I also noticed that the launcher gives an error for createFullscreen that isn't visible in the console.... Unknown functionName (createFullscreen).. that's separate, so I'll create a different issue. The main thing in this issue is JSON.parse erroring out on trying to parse an empty string.

ludei commented 9 years ago

This issue is related to the CocoonJS extensions. Please, post this issue, with the steps to reproduce in the following thread: http://support.ludei.com/hc/communities/public/topics/200011348-Problems-Troubleshooting You can use the following template: http://support.ludei.com/hc/en-us/articles/203459717

Closing the issue as it's not related to webview+