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
Keyboard issue #6
Comments
|
I am having the same problem on Unity 4.0 with this plugin. I get different results with different phones. On a galixy s3 i can not type anything at all, and on a galixy nexus i can type only letters(not numbers or backspace) 02-18 13:10:43.606: V/webview(11193): singleCursorHandlerTouchEvent -getEditableSupport FASLE |
|
I have exactly the same problem. Has anyone resolved this yet? |
|
We were able to get around the problems on android by creating a new activity for the web view to live in instead of just instantiating the webview in the unity activity. As far as I can tell,it looks like the unity activity is swallowing the key presses. This is not ideal, as it requires you to manually edit some of the files after exporting the project as an eclipse project. |
|
Thank you! I was just about to embark on this idea -> I'm glad you've confirmed it worked for you. Did you need to save any cookies? If so, were there any problems passing cookies between activities? I would be really grateful if you were able to share any other nitty-gritty details: they would be most useful. :) |
|
I'll let you know if I find a way to automate the build process: I need to be able to come up with a solution that works within our continuous integration system. |
|
I've successfully created a webview that can store cookies, runs in another activity, and continue to authenticate http requests after the unity activity resumes, without bringing up lock screens between activity switches and all completely automated from Unity -> APK. The trick to making the build an automated process is to make amendments to the standard AndroidManifest.xml and save it under Assets/Plugins/Android/ In this folder you must also include your .jar file for the WebView plugin, which needs to include the new webview activity's class. To keep cookies, make the cookie manager class and cookie manager sync class persist in a singleton, created from the main plugin code. I also kept the reference to the webview in there, although this was created with the new activity's context. Subsequent post and get requests were implemented with HttpClient using the auth cookie taken from the cookie manager. Lock was prevented by adding this override to the new activity: and adding this to the onCreate Be sure to wl.release (wl is a class variable) in onPause(), or perhaps pass the reference back to the Unity activity to release once it has resumed. The webview will show with status bars and titles etc. unless you add the following to onCreate() as well ... |
|
You just need to enable ForwardNativeEventsToDalvik in you Android Manifest, http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html |
|
I tried to fill login fields on this URL: http://minecraft.net/login barrynorthern, can you provide please more detailed description of your workaround for keyboard input? |
|
Issue is still in place. Please let me know if someone has found the solution. |
|
The only way I got the keyboard to work properly on Android using the gree On Mon, Oct 28, 2013 at 4:16 PM, alexgalkin notifications@github.comwrote:
|
|
@barrynorthern, can you please provide some working example? |
|
@DanielTortosa @PetrBodnar @dillrye @endavid , Have you found any solid solution for that problem? Can you please share working example? |
|
Please refer to the android sdk documentation on how to start a new http://developer.android.com/training/basics/firstapp/starting-activity.html The activity manifest xml snippet should be added to Create an activity which simply starts the gree webview plugin, and the I am unable to share specific code, as it is tightly coupled to proprietary On Tue, Oct 29, 2013 at 5:37 PM, alexgalkin notifications@github.comwrote:
|
|
@barrynorthern just to be clear - should we create Activity within WebViewPlugin codebase and export updated library or should be create new Activity at C# code within Unity script? Please confirm. |
|
Does anybody fix this throwable without new Activity? |
|
Need quick fix, because today publish day, but WebView didn't work correct =( |
|
Guys!? |
|
You need to create a new activity in Unity's android manifest file to host
|
|
Sorry, but i don't understand what i need do... |
|
You haven't explained the exact nature of the problem yet. I'd be happy to
|
|
When webview open, i see input field, when field focused, keyboard showed, but nothing typing. That's all. This is damned trouble |
|
android apps are made from one or more subprograms called Activities. Unity
|
|
A while back there was the issue discussed here and it was caused by NativeActivity. Recent Unity and unity-webview combination don't have the issue. Please reopen the issue if you have any assistance further. |
I started the sample project (with Google url) and i couldnt write letters in the google textbox).
Unity 3.5.7
Tested on HTC Desire and Nexus 7 (both with Android 4.2.1).
The text was updated successfully, but these errors were encountered: