Read UDID via JavaScript in iOS WebView Apps 📲

Writing codes and typing data code technology

Every iOS (iPhone/iPad) has a unique and unchangeable identification number, the UDID (Unique Device ID). This number is especially interesting for app developers to identify a specific device. What exactly you need this number for and how to use it in your iOS WebView App using Xcode, we will show you in the following.

If we want to use a WebView in the app and have our app pass the UDID to the page via JavaScript, then WebViewGold is the easiest way. Here’s how:

  1. Download WebViewGold for iOS
  2. Insert this HTML / JavaScript snippet into your website/web app:
<a href="get-uuid://">Get UDID</a>
<a href="#" onClick="alert(uuid);">Show UDID</a>