Perspective: session.props.device.identifier changing during session?

Ignition 8.0.7, I’m seeing a strange issue where session.props.device.identifier in onStartup(session) has a value, but then, later, extracting self.session.props.device.identifier in a runAction(self, event) function for a button onClick event handler returns a different ID. The perspective session is running on an android phone. Am I doing something wrong?

Is more information needed? My application depends on device IDs deing unique and not changing, so this is a big blocker for us.

Someone from QA is going to try to replicate this. They’ll post here if they need more information.

What model of phone? Do you know which android version is being used? Is this during a long-running session?

I’ve been unable to replicate this during a simple setup where I have a Label bound to session.props.device.identifier (this value never seems to change) and I also have a button which invokes the onClick Event and then sets its own text to whatever the value of self.session.props.device.identifier is (which through my testing has always matched the value found on the neighboring Label.

What are the two values you are seeing? (if one looks obviously wrong, it could help to diagnose what value you are actually getting)

The session startup event happens awfully early in the life cycle. This might just be one of the values that isn’t initialized yet.

I was worried about that too, but I do seem to be getting the same value during session startup.

Android version is 6.0 (yes I know it’s old).
I’m seeing two UUIDs, not that the actual values matter, but the first one in onStartup() is 1067cbc1-3084-45f9-b20f-7972bb912d01, the one I see later (which seems to not change thereafter) is 5bd8a5d3-2d2d-48e9-9a6a-9d2ad5dc4150.
To check, I’m just logging the values and looking at the logs via the web interface. Here’s the code I use to log:


def log(msg):
  project_name = system.util.getProjectName()
  logger = system.util.getLogger(project_name)
  logger.info(msg)

Darn, I just retried and now the device identifier is already 5bd8a5d3-2d2d-48e9-9a6a-9d2ad5dc4150 in onStartup(). Not sure what’s going on, I swear I saw the problem for a whole day last time.

That code will not affect anything as it’s just logging a value. Could you provide snippets of code were you are actually referencing and using the property being discussed? In speaking with our mobile developer, the device identifier is created on application installation (for mobile devices) and so should not change unless the application is uninstalled and then re-installed.

Ah, I did do an upgrade of the app from the play store (before doing anything else though), could this play a role?