简体   繁体   中英

How to enable Location Services for a WKWebView in Swift?

My Browser app uses WKWebView but when I try to visit a website that needs to use Location Services (like Google Maps, for example), it doesn't work.

I have searched for a way to fix it and came across this question . I tried to add the string on the answer to the question to my Info.plist but it doesn't resolve the issue.

How can I fix this?

Thanks,

PastaCoder

我不确定如何操作,但是昨天NSLocationWhenInUseUsageDescription在Info.plist中为NSLocationWhenInUseUsageDescription添加字符串确实可行,并且问题已解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM