-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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] Error loading page - Error Code: -1022 #12757
Comments
@julesmoretti Have you tried using https://google.com? Plain old http will throw errors, that's normal for iOS. |
@petermikitsh - https:// for google works. But the sites I am trying to get working does not have any https link to those. They use http:// So how can I make it work for http only addresses? Do I have to do anything to the Xcode project? Thank you for your help :) |
@julesmoretti You can carve out exceptions in your info.plist file (as described here), but it may impact your ability to ship those exception to the app store. For cases of local development purposes, using http should be no issue once you create those exceptions. |
@petermikitsh - thank you for this info. That is a useful tip. I am not able to see partially the content of the site I am trying to serve. In my case the site I am trying to serve is: http://nhn.newhomesnavigator.com/ I am seeing some of the UI but not the google map. Are you aware if there are any more configurations or restrictions for me to include or be aware of for this implementation? Or would it because I also need to include google maps url? For your reference:
EDIT: I tried this with no success:
EDIT #2:
I guess something else gets blocked off but not sure which one. EDIT #3 (lol): Probably means I have to add all these domains into the playlist right? |
@petermikitsh thank you :) All working now |
@julesmoretti I have the some error like yours. But it still go wrong After I add domain in info.plist. Can you show me your setting please? |
|
Description
Used a component to load a webpage for an iOS app. but upon propagating it I am getting:
Reproduction
Here is the code for it:
Solution
Provide explanation on how to resolve this and update the readme to explain how to fix this issue through your doc.
Additional Information
The text was updated successfully, but these errors were encountered: