I'm developing an iOS app with Phonegap Build and JQM.
Is an app to generate math problems and some times I'm using big numbers that iOS interprets like a "phone numbers" and automatically converts into links. According the PGB documentation if add <preference name="detect-data-types" value="false" /> into the config.xml this stop.
The preference added into the config.xml seems work good until I click a button, and the numbers are converted automatically into links, like if the preference was ignored.
The actions of the buttons are just for copy to clipboard and print, using this clipboard plugin and this printer plugin. This should don't affect the numbers (at least that is what I think).
I've tested in iOS 6, 7 and 8, in all do the same.
Any idea how to stop this? Thanks!
Try adding
<meta name="format-detection" content="telephone=no">
Or set a property in the UIWebView
self.webView.dataDetectorTypes = UIDataDetectorTypeNone;
and have a look on this & this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With