DeviceID_iOS.cs 460 B

1234567891011121314151617
  1. using System;
  2. using InABox.Mobile;
  3. using UIKit;
  4. [assembly: Xamarin.Forms.Dependency(typeof(InABox.Mobile.iOS.DeviceID_iOS))]
  5. namespace InABox.Mobile.iOS
  6. {
  7. public class DeviceID_iOS : IDeviceID
  8. {
  9. public String DeviceID()
  10. {
  11. return UIDevice.CurrentDevice.IdentifierForVendor.ToString().GetHashCode().ToString("X");
  12. //return Guid.Parse(CrossDeviceInfo.Current.Id).GetHashCode().ToString("X");
  13. }
  14. }
  15. }