Acquire AppSealing device unique identifier
AppSealing SDK generates and manages unique identifier for each device. Customer who use the AppSealing SDK can use the interface of AppSealing to verify the device unique identifier, if necessary. And can be used for the business using the hacking data service provided by AppSealing.
Show Device Unique Identifier
Section titled “Show Device Unique Identifier”Add the following code to your ViewController to display the AppSealing device unique identifier:
using System;using UIKit;using Foundation;
public override void ViewDidAppear(bool animated){ base.ViewDidAppear(animated);
try { var deviceID = AppSealingInterface.GetAppSealingDeviceID();
if (!string.IsNullOrEmpty(deviceID)) { var alertController = UIAlertController.Create( "AppSealing DeviceID", deviceID, UIAlertControllerStyle.Alert );
var confirmAction = UIAlertAction.Create( "Confirm", UIAlertActionStyle.Default, null );
alertController.AddAction(confirmAction); PresentViewController(alertController, true, null); } } catch (Exception ex) { Console.WriteLine($"Error getting AppSealing Device ID: {ex.Message}"); }}
Alternative Implementation
Section titled “Alternative Implementation”You can also retrieve the device ID when needed for server communication:
public void SendDeviceIDToServer(){ var deviceID = AppSealingInterface.GetAppSealingDeviceID();
// Send deviceID to your server for verification // Example: await apiClient.VerifyDevice(deviceID);
Console.WriteLine($"AppSealing Device ID: {deviceID}");}
Usage Notes
Section titled “Usage Notes”- The device ID is unique per device and installation
- This ID can be used for device tracking and verification
- The ID remains consistent across app launches on the same device
- Use this ID for server-side device verification and analytics