Alex Yang created CB-12545:
------------------------------
Summary: Inappbrowser crashes in iPhone 5 or 5c
Key: CB-12545
URL: https://issues.apache.org/jira/browse/CB-12545
Project: Apache Cordova
Issue Type: Bug
Components: Plugin InAppBrowser
Affects Versions: 6.4.0
Environment: iPhone 5, iPhone 5c, iOS 10.2.1, ionic 2
Reporter: Alex Yang
When using the InAppBrowser plugin in an ionic 2 project, the InAppBrowser
window would not display in iPhone 5 or iPhone 5c.
Example code:
new InAppBrowser(url, '_blank', 'location=false');
The logs:
2017-03-07 09:30:20.204 My App[19636:7391110] -[__NSCFString charValue]:
unrecognized selector sent to instance 0x7ca47270
2017-03-07 09:30:20.206 My App[19636:7391110] *** WebKit discarded an uncaught
exception in the
webView:decidePolicyForNavigationAction:request:frame:decisionListener:
delegate: <NSInvalidArgumentException> -[__NSCFString charValue]: unrecognized
selector sent to instance 0x7ca47270
I suspect it is similar to
http://stackoverflow.com/questions/31408909/nscfstring-charvalue-unrecognized-selector-sent-to-instance
When I use "_self" instead of "_blank", there is no problem opening the system
browser.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]