The Mapp Intelligence iOS SDK exposes a small set of class methods for inspecting the SDK's runtime state. This is mainly useful for debugging, support checks, and verifying which Track ID and Track Domain are currently applied.
Important: Call these only after the SDK has been initialized. Otherwise the returned values may be empty.
Methods
Method | Description |
|---|---|
| Returns the SDK version currently linked into your app. |
| Returns the active Track Domain URL. |
| Returns the active Track ID(s) as a string. |
| Returns the current Ever ID. See Get the User Ever ID. |
Example
print("SDK version: \(MappIntelligence.version())")
print("Track Domain: \(MappIntelligence.getUrl())")
print("Track ID(s): \(MappIntelligence.getId())")
print("Current everID: \(MappIntelligence.shared()?.getEverId() ?? "")")NSLog(@"SDK version: %@", [MappIntelligence version]);
NSLog(@"Track Domain: %@", [MappIntelligence getUrl]);
NSLog(@"Track ID(s): %@", [MappIntelligence getId]);
NSLog(@"Current everID: %@", [[MappIntelligence shared] getEverId]);When to use it
Verify the currently active SDK version, Track Domain, or Track ID during implementation.
Check whether a runtime change such as Change Track IDs and Domain at Runtime has already taken effect.
Inspect values before debugging delivery or privacy-related issues.
The iOS SDK does not currently expose a single aggregated configuration object (analogous to Android's
ActiveConfig). The values for log level, request interval, batch support, etc. that you set onMappIntelligence.shared()can be read back via the matching getter on the same singleton (MappIntelligence.shared()?.requestInterval,?.logLevel,?.batchSupportEnabled, etc.).
Related pages: Configure Global Tracking, Get the User Ever ID.