Get Device ID & Name after Setup (iOS & React Native)

This is kind of a continuation of this previous closed thread:

Has anyone gotten this full thing set up and working? Basically what I’m looking for is how to get the device ID after assigning a device to a user. My current setup:

RCT_EXPORT_METHOD(openCustom)
{
  [self createCustomSparkSetup];

  SparkSetupMainController *setupController = [[SparkSetupMainController alloc] initWithSetupOnly:YES];
  AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
  [delegate.window.rootViewController presentViewController:setupController animated:YES completion:nil];
}

I can setup the devices just fine, I just need some clarity on how to get the device ID?

Figured out my issue. Can close this!

Could you explain what you did to solve this for the benefit of others that might see similar issues?

2 Likes

I made an identical thread about this on the spark-setup-ios github to which I detail how I went about it. You can find it here: https://github.com/spark/spark-setup-ios/issues/55

1 Like