Skip to content
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

Проблема с перенаправлением из WebView на iOS #62

Open
LizzyFox-code opened this issue Feb 27, 2017 · 1 comment

Comments

@LizzyFox-code
Copy link

LizzyFox-code commented Feb 27, 2017

Добрый день, использую в проекте на Unity3D v.5.4.3.p1 OK SDK v. 1.0.25 для авторизации, но под iOS (9.1 и выше), как я понимаю судя по логам, не забирается ответ от ok{APP_ID}://authorize из-за чего не происходит перенаправления обратно в приложение.
Вот, что выводится в логе в XCode при загрузке WebView:
`2017-02-27 10:51:37.891575 TestJ7[4266:2119953] WF:
_WebFilterIsActive returning: NO

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

LOAD COMPLETE

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)`

Что выводится в логе XCode при вводе данных в поля и нажатии на кнопку "Войти":
`LOAD COMPLETE

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)`

Каких либо ошибок нет, но WebView не закрывается. Такое обнаруживается только, если в проекте есть плагин Vuforia.

P.S.: ошибка есть, если поставить точку остановки UnityOKWebView.mm в didFailLoadWithError: "ERROR: Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted"".

@LizzyFox-code
Copy link
Author

Костыльно проблему решил: перенес логику метода application openUrl из интерфейса UnityOKProxyAppController в интерфейс вуфории VuforiaNativeRendererController.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant