3

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!

Jabel Márquez
  • 772
  • 1
  • 11
  • 38

1 Answers1

8

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

Community
  • 1
  • 1
AAhad
  • 2,805
  • 1
  • 25
  • 42