Map User or Device in iOS
Setting a custom ID for the device or user helps pinpoint the source of issue reports in the Appxiom dashboard. This identifier is tagged with all issues raised from the device. If the API is called multiple times, the latest value is used.
How to Set a Custom ID
Call the API anywhere in your code where you want to associate a user or device with Appxiom reports.
- Objective C
- Swift
[Ax setCustomId:userId];
Ax.setCustomId(userId)
Best Practices
- Use a unique and meaningful identifier for each user or device (e.g., user ID, device UUID).
- Update the custom ID if the user logs out or switches accounts.
- Avoid using sensitive information as the identifier.
Frequently Asked Questions (FAQ)
Q: Why should I set a custom user or device ID?
A: Setting a custom ID helps you trace issues back to specific users or devices, making debugging and support easier.
Q: What happens if I call setCustomId multiple times?
A: The most recent value will be used for all subsequent issue reports.
Q: Is there a character limit for the custom ID?
A: Yes, the ID must be a string under 256 characters.
Q: Can I use setCustomId in both Objective-C and Swift?
A: Yes, the API is available for both languages.
Q: Where is the custom ID shown?
A: The custom ID is tagged with all issue reports in the Appxiom dashboard for easy identification.
Q: What if I don't set a custom ID?
A: Issue reports will not have a user/device identifier, making it harder to trace the source of problems.