Closed jose-castillo closed 7 years ago
Chrome Custom Tabs differ from WebView in the perspective of UX. Also WebView on recent Android is based on Chrome so css/javascript don't have issues in old days.
Yes, that is true, but for example in our case, we are using it to service android 4.1+ (as unity does). in this case we find many inconvenients with css/javascript on 4.1 - 4.3 phones. thus the recommendation
As Chrome Custom Tabs differs from WebView and cannot cover many use cases that this plugin supports, it should not be considered in this plugin. You can separately create another plugin for Chrome Custom Tabs.
About javascript/css issues, basically you should make portable/conservative code for them so that they work well on various versions of Android.
Thanks. We are solving it by usign xWalkView.
hi @jose-castillo , we are also thinking on a way of using crosswalk webview with unity app. Do you mind sharing some of your knowledge on the subject? thanks!
Sure!
I did not implement it myself but it is quite straightforward.
On the webview plugin instead of using the android webview implementation you have to use xwalkview. Maybe this link can show you how: https://stackoverflow.com/questions/33228274/is-there-a-xwalkview-webviewclient
We had some problems with the following things: 1) Library detection: Even if you import the xwalkview into the webview library, unity does not detect it. Thus, you have to import the necessary JARs into unity's plugin folder 2) App File Size: Importing the necessary libraries increases the apk file size about 30 Mb (not recommended for heavy games) 3) Webview Display Problems: There are some implementations of html tags that are not included into xwalkview. For example the
This is all I know about it.
Sorry I can not be of any more help.
All I can say is, for those that really need a performing webview on their unity game this is the best solution you can find.
There are other implementations like ChromeTabs, but it shows the tabs on top of the webview, which makes it look more like a browser and not game-like. Thus I only recommend it if you could find a way to delete them.
Thanks very much for your help, if there is anything else I can be of assistance with, please let me know.
Jose
On Thu, Aug 3, 2017 at 7:24 PM, yoav katz notifications@github.com wrote:
hi @jose-castillo https://github.com/jose-castillo , we are also thinking on a way of using crosswalk webview with unity app. Do you mind sharing some of your knowledge on the subject? thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gree/unity-webview/issues/182#issuecomment-319930678, or mute the thread https://github.com/notifications/unsubscribe-auth/AMWQoFOVJtNAgMRVJNONXFrwtuBaH3bpks5sUZ_0gaJpZM4NmIi9 .
thank you very much for sharing this valuable info! we are now considering this direction...
It looks like it is way faster and since it is chrome all the problems with css and javascript we have may go away...