--- title: "Custom device ID with App SDK for iOS" slug: "dpo-custom-device-id-with-app-sdk-for-ios" updated: 2026-10-27T20:13:12Z published: 2026-10-27T20:13:12Z canonical: "docs.onespan.com/dpo-custom-device-id-with-app-sdk-for-ios" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Custom device ID with App SDK for iOS Use the setDeviceId() function in class DeviceIDUtil to create a custom device ID. For an example, refer to the Tutorial App source code. To test this functionality, please uncomment the following line in the TutorialAppPlus/AppDelegate.swift file: ```plaintext DeviceIDUtil.setDeviceId("customDeviceID") ```