-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed Webview in Android Fragment no longer works in cordova 4.0 #1
Comments
Thanks for bringing up the issue @twilly86. I will look into updating this sample to support Cordova 4.0. |
In case you need a bigger stack trace: org.apache.cordova.CordovaWebView Caused by: java.lang.ClassCastException: org.apache.cordova.CordovaWebView cannot be cast to android.view.View |
Is this project still being supported? |
Hi @runjumpkick - Yes it is. The Android code however needs a major re-write in order to support the latest Cordova libs. |
OK. Is there a ETA on publishing a modernized sample app? |
I am also experiencing the same problem, when can we expect an update? |
Check out this post, it should get you pointed in the right direction. http://stackoverflow.com/questions/30489176/cordova-webview-inside-android-fragment-on-cordova-4-0 |
Thanks; I tweaked the code you mentioned above and got the Cordova webView showing. Can you perhaps share your CordovaContext.java file?
|
I am so tired with this JavaScript/HTML5/CSS being forced into a native app. Maybe we should stop forcing ourselves writing codes that are meant only for browsers. Just fixing this things alone isn't cost and time effective. I am moving away from this web apps thingy from now on. |
@twilly86 I am working on Apache Cordova team at Microsoft. Our team is interested in understanding your experiences with embedded Cordova web views. Would you be able to fill in this quick contact info survey http://www.instant.ly/s/WGx9L so that we can get in touch with you? |
…#1 - full refactor of the sample to support lattest Android SDK, AEM mobile 6.2 and Cordova 4.0 - added bottom button bar - added gradle build - introduced material design - added custom plugin
I finally freed up some time in my schedule to update this app. Thanks for the help @twilly86. |
Updated to reflect changes made to support Issue #1
Embed Webview in Android Fragment sample code no longer works for android 4.0.
See error details here...
http://stackoverflow.com/questions/30489176/cordova-webview-inside-android-fragment-on-cordova-4-0
The text was updated successfully, but these errors were encountered: