-
Notifications
You must be signed in to change notification settings - Fork 4
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
integrated MAM SDK then wkwebview cant load html file form sandbox #94
Comments
when i used WKURLHandler to intercept the custom protocol to load file from sandbox, wkwebview can display the html file from sandbox |
@wingsrao |
`2023-06-03 15:21:58.610 M3[52541:3410794] CtxSharedStorage, 8, 2, Vault: 9C6BE7SYTU.com.citrix.mdx/MAMSDKSharedData., /Users/jenkins/jenkins/workspace/sdk_ctxmamappcore_Release_22.8.0/Pods/CtxDataSecurityLib/Vaults/CtxSharedKeychainVaultBase.m, -[CtxSharedKeychainVaultBase initWithVaultName:vaultNameHash:serviceName:accessGroupWithTeamID:andLoadData:], 142 2023-06-03T15:21:58.759+0800 移动办公[CTXMAMAppCoreFramework:INFO:CTXMAMInitDispatchQueue:1603]-:-[CtxSingleSignOn openURL:withMdxURLVersion:andCompletionBlock:]: Sending URL: com.citrix.meatwork://?store=&appid=&urlscheme=&nonce=&reauth=&enum=&mdxrequest.time=&logontype=&mdxurlversion= 2023-06-03T15:21:59.709+0800 移动办公[CTXMAMCoreFramework:IN2023-06-03 15:21:59.732 M3[52541:3410759] -[CDVWKWebViewEngine webView:decidePolicyForNavigationResponse:decisionHandler:]__file:///private/var/containers/Bundle/Application/93E021EE-477E-4547-9D0B-9CFB9E0D8B4B/M3.app/m3datauprage.html?webviewId=F45F62A4-1612-4055-8260-16E223060B60 FO:com.citrix.mamsdk.ConfigManagerPerAppVault.com.qme.mobileoffice:7d03]-:-[CTXMAMDataStorage p_saveDataAsyncWithCompletionBlock:]_block_invoke: Synchronization successful for ConfigManagerPerAppVault.com.qme.mobileoffice with 0 items and version# 0. |
@wingsrao Have you tried using WKWebview to load bundle resource without MAMSDK integrated?
|
@makunterry thanks for reply |
App used custom protocol to intercept http requests,so app can load html file from sandbox. [ex. like : [NSURLProtocol registerClass:[CustomURLProtocol class]]; ]
but when i integrated MAM sdk ,the native part run well.but the wkwebview load html file from sandbox cant display, wkwebview display the about:blank page.
before load , logs can prove the html file is exists.
code:
The text was updated successfully, but these errors were encountered: