Cordova Android iframe Java exception was raised during method invocation -


the problem simple, whenever added cordova app's html <iframe>, couldn't use cordova api. deviceready event has never got fired. if tried use api method, e.g. inappbrowser open url in external browser, i've received following exception in console:

java exception raised during method invocation 

i not sure core issue, did searching , perhaps cordova can't handle multiple simultaneous api pipes @ once on android (from both main page , iframe). might explain better or find actual problem.

what helped me removing <iframe> html , adding using scripts (after cordova.js loaded , deviceready fired) simple jquery call:

$('body').append('<iframe id="framed" style="border: none;" src="..."></iframe>'); 

this has made exception not appear anymore , cordova api calls , events work again.

hope helps someone.


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -