Skip to main content

[IOS Swift] Disable auto link(telephone, address, email) in WKWebView

Hello, 


i found that telephone, email and address were automatically linked while developing a webView


so, i disabled all this


because i got the page transition effect every <a>tag in my webapp 


if there is no purpose to go to the page, such as a telephone number auto link, 


there is possibility that unintend effect may occur



so it must be disabled 


구글에 많은 글들이 이러한 자동 링크를 비활성화 하는 방법으로 아래와 같은 코드를 적어놨습니다.

Many Article for disable auto link recommend adding below code in your web page


<meta name="format-detection" content="telephone=no, address=no, email=no">


위의 메타 태그를 웹페이지에 추가하는 것인데,


i'm have not tried it in mobile safari but it is not working in WKWebview


Unfortunately, this way is not working in WKWebView


그러나 코드 없이도 자동 링크를 비활성화 할 수 있습니다. 






Look above red circle, and uncheck 'Phone Number', 'Address', 'Calendar Event',


'Tracking Number' ,'FlightNumber'



This function means disable auto link such as phone number, address, calendar event, 

tracking number, filghtnumber


The solution is end, very simple


Try to Rebuild, it may working fine



Additional i will explain each function


The address function is that detect address and create link and when user click this link, display this address in map app 


The calendar event function is that detect calendar and create link and when user click this link, we can add events in calendar app


Traking number function is that detecting barcord number 

and Flight number function is that showing flight information

Comments

Popular posts from this blog

[AWS EC2] How to use jconsole and visualVM [2] (remote connect Linux server)

 this article explains how to set up id and password authentication so if you want to know how to use jconsole and visualVM Click below link  we have already figured out how to using it in previous article this article only explains how to set up authentication Modify setenv.sh   vi /usr/local/tomcat7/bin/setenv.sh   Open stenv.sh in your tomcat home directory through vi editor   #!/bin/sh JMX_OPTS=" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=/usr/local/tomcat7/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/usr/local/tomcat7/conf/jmxremote.access -Djava.rmi.server.hostname=52.79.134.63 -Dcom.sun.management.jmxremote.ssl=false" CATALINA_OPTS=" ${JMX_OPTS} ${CATALINA_OPTS}"   and modify as above   looking closer, the value of '-Dcom.sun.management.jmxremote.authenticate' has been modified from false to true and below code has been added -Dcom.sun.manag...

[Swift] WKWebView, use navigator.userAgent for distinguish web and webView in ios

  Hello,  I will tell you how to distinguish whether i access mobile web or webview If you are using a webview, you will want to know the route you accessed. In general, WebView such as Hybrid App is slower than Native App, and developer sometimes use them to give animation effect such as progress bar There are many other cases Like this, Developer distributing hybridApp need to distinguish mobile web and webview for implement function only operates in webview In Javascript, we know that 'navigator.userAgent;' code informs where you accessed  If you are access in Mobile Android Web, the alert(navigator.userAgent) value executed by web server Javascript is "Mozilla/5.0 (Linux; Android 8.0.0; SM-G930K Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/75.0.3770.101 Mobile Safari/537.36" But unfortunately, The same goes for Android WebView. So we can't distinguish between web and webview by using only userAgent value Let's see what...

[AWS EC2] How to use jconsole and visualVM [1] (remote connect Linux server)

Today, let's look at how to use jconsole and visualVm to monitor jvm memory on a Linux server. recently, i met the java memory error so i studied java memory structure and i found jconsole and visualVM which are tools that possible to monitor java memory utilization, available and capacity jconsole and visualVm provide GUI-style memory informations so if i could access remotely, it would be useful tool  now let's start  First of all, i'll tell you about my server and local environmental    server OS : Amazon linux2 WAS : tomcat7 java8   LOCAL window, java   The way of setting to connect jconsole and visualVM are same, so i explain without distinction   [Download JMXRmote.jar in your Server ]   I'll download jmx remote.jar to my local and move it to my linux server 먼저, 로컬에서 톰캣 다운로드 페이지에 가서 자신의 버전에 맞는 jmx remote.jar 파일을 다운받아주세요.  first of all, Download jmx remote.jar that matches your tomcat version from the site below  tomcat.apache.org/d...