microsoft / BingMapsV8CodeSamples

This is a collection of over two hundred code samples an growing for the Bing Maps V8 web control.
https://samples.bingmapsportal.com/
MIT License
145 stars 127 forks source link

AutoSuggest doesn't work in Bing maps when used in Ionic iOS devices #23

Closed Vivek-abstract closed 6 years ago

Vivek-abstract commented 6 years ago

I'm using Bing maps in Ionic on an iPhone 8 and I can't seem to get the Autocomplete to work. As soon as I click on the input field, I get the following error:

API error: <_UIKBCompatInputView: 0x155eac820; frame = (0 0; 0 0); layer = <CALayer: 0x1c003a6c0>> returned 0 width, assuming UIViewNoIntrinsicMetric I tried waiting for the platform to be ready:

platform.ready.then(()=>{//execute Autosuggest})

But it still gave me the same error. After popping this error, the autocomplete works fine as expected, but when I click on the suggestions, the callback function is not executed at all. It works fine on Android, IDK whats the issue with iOS. I don't know how to fix it. Any help would be appreciated.

Vivek-abstract commented 6 years ago

I fixed it by upgrading to WKWebView from UIWebView. https://ionicframework.com/docs/wkwebview/

ionic cordova plugin add cordova-plugin-ionic-webview --save