PDA

View Full Version : tel link does not work on iOS with ST 2.x!



robl
3 Nov 2011, 5:35 AM
I believe this is a bug in Sencha Touch 2.x PR1. If I have a simple HTML page with a "tel" link in it, it works from iPhone 5.0 Safari. However, if it's on a Sencha Touch page, it does not work.

This works:



<!DOCTYPE html>
<html>
<body>
<a href="tel:8005551212">Call</a>
</body>
</html>


This DOES NOT work:



<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Sencha Touch 2.x</title>
<meta name = "format-detection" content = "telephone=no">


<link href="../../resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../sencha-touch-all.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<!-- hack so window opening works on all devices: http://www.sencha.com/forum/showthread.php?130358-window.open()-from-toolbar-button-opens-window-from-list-item-a-new-tab&p=639938#post639938 -->
<a href="" target="_blank" id="linker" style="display:none;"></a>
</body>
</html>





Ext.application({
name: 'LinkTest',


launch: function() {
var myPanel = Ext.create("Ext.Panel", {
fullscreen: true,
layout: 'fit',
html: '<a href="tel:8005551212">CALL</a>'
});


}
});

robl
3 Nov 2011, 5:39 AM
This is a confirmed bug in PR1 that affects tel, mailto, etc... This is a complete SHOWSTOPPER bug. Please fix in PR2.

BTW - I burned 2 days looking into this bug thinking it was PhoneGap but it is Sencha Touch. For our projects, I cannot continue testing ST 2.x until this is fixed.

mitchellsimoens
3 Nov 2011, 8:35 AM
This is a known issue and will be fixed.

http://www.sencha.com/forum/showthread.php?152112-Simple-Protocol-Hyperlink-Not-Firing

dbwelch
14 Feb 2012, 10:15 AM
Any idea when this will be fixed?

A BIG deal, how can you have a mobile app that can't use the phone or sms?