Diagnostics with debugInfo()
One failure is hard to diagnose from your side: the certificate is issued, the profile installs, every call in your app succeeds, and the device still won't join the network. The SDK did its job, so the disagreement sits somewhere between the configuration Wi-DAS resolved for your Client and what your network expects.
debugInfo() puts both halves in one place. It returns the configuration the server resolved for your
Client, what the device holds, and which SDK build asked, as a JSON payload you can paste straight
into a support ticket.
// iOS — nil unless your Client is in DevMode.
let info = try await widas.debugInfo()
let encoder = JSONEncoder()
encoder.outputFormatting = .prettyPrinted
if let info {
print(String(decoding: try encoder.encode(info), as: UTF8.self))
}
// Android — null unless your Client is in DevMode.
val info = widas.debugInfo()
Log.d("WiDAS", info?.toJson() ?: "no debug info available")
Both platforms build the same blocks and the same keys, so an iOS payload and an Android one can be
read side by side, and the fields stay stable across SDK releases. Two things vary by platform: the
environment identity and which fields appIdentities carries. Both are covered below.
DevMode has to be on first
debugInfo() only answers for a Client with DevMode enabled, a per-Client flag a Wi-DAS operator
sets. It's off by default, so ask your Wi-DAS technical contact to switch it on while an investigation
is running.
Outside DevMode the call does nothing and comes back empty: nil on iOS, null on Android. You
don't get a partial payload either, so there's no device state and no environment block. It's a
diagnostic for a debugging window, and an empty answer is the expected result here, so nothing is
thrown, nothing is logged as an error, and nothing is retried.
An empty answer carries no reason
Empty is the whole failure vocabulary. A read that fails for some other reason (no connectivity, a rate limit, a response the SDK couldn't parse) comes back exactly the same way, undistinguished from the DevMode case. When the read fails, the SDK has no way of knowing whether your Client was in DevMode, so naming a reason would mean naming a guess.
If you get an empty answer, check four things:
- Your
clientIdis right and matches the one Wi-DAS registered. - The API is reachable from the device.
- DevMode is on. Ask support.
- Your Client and its parent Partner are both still enabled. Either one being switched off produces
the same empty answer, and
connect()reports it as a missing entitlement.
When you need a typed reason for a failure, connect() is where you get one. See
iOS error handling or
Android error handling.
Cancellation is the exception. On iOS a cancelled task throws WiDASError.cancelled; on Android the
coroutine cancellation propagates as usual. An abandoned call must never read as "your Client isn't in
DevMode".
debugInfo() doesn't attest, so it works on a device where App Attest or Play Integrity can't run,
including the iOS Simulator. Handy for checking your configuration before you have a device that can
complete onboarding.
A sample payload
Here's an Android capture. The values are illustrative: your identifiers, certificate details and
API build will be different. The shape is what matters, and only the environment and
appIdentities blocks differ between platforms.
{
"environment": {
"sdkVersion": "1.2.0",
"apiBaseUrl": "https://partner-api.wi-das.com/",
"clientId": "client-acme",
"platform": "android",
"osVersion": "14 (API 34)",
"attestationAvailable": true,
"authorisationTier": "attestation"
},
"local": {
"passpointProfileInstalled": true,
"certificateSerial": "0A1B2C3D4E5F6071",
"certificateExpiry": "2027-06-24T16:00:00Z",
"certificateStatus": "active"
},
"config": {
"client": {
"clientId": "client-acme",
"displayName": "Acme Corp Client",
"friendlyName": "Acme WiDAS",
"caCertName": "Acme WiDAS CaCert",
"certName": "Acme WiDAS Cert",
"enabled": true,
"devMode": true
},
"partner": {
"partnerId": "acme-corp",
"displayName": "Acme Corp",
"enabled": true,
"effectiveValidityCap": "P365D"
},
"radius": {
"realm": "roow.wi-das.com",
"mcc": "310",
"mnc": "260",
"rcoi": null
},
"passpoint": {
"homeFqdn": "aaa.wi-das.com"
},
"appIdentities": [
{
"platform": "android",
"androidPackageName": "com.acme.app",
"androidSigningCertSha256": "AA:BB:CC:DD"
}
],
"deployment": {
"apiVersion": "1.0.0+9f2c1ab",
"environment": "Production"
}
}
}
The same call on iOS reports its own platform identity:
{
"environment": {
"platform": "ios",
"osVersion": "Version 18.5 (Build 22F76)"
},
"config": {
"appIdentities": [
{
"platform": "ios",
"iosTeamId": "TEAMID1234",
"iosBundleId": "com.acme.app"
}
]
}
}
appIdentities only ever contains identities for the platform you're calling from, so an iOS payload
never shows Android registrations and the unused columns don't appear.
config.partner.partnerId identifies the parent Partner that owns your Client. It isn't your
clientId and you never pass it to the SDK. It's there so support can see which Partner your Client
resolved to.
Unconfigured values come back as explicit nulls, with the key present and empty. If you're
asking why there's no RCOI in your profile, a missing key just looks like a serialisation quirk.
What's in a payload
| Block | Field | What it tells you |
|---|---|---|
environment | sdkVersion | The SDK build that produced the payload. Comes from the published package version, so it can't drift. A 0.0.0- value means an unreleased build: 0.0.0-SNAPSHOT on Android, 0.0.0-dev on iOS. |
apiBaseUrl | The API the SDK calls, normalised. | |
clientId | The identifier the SDK was configured with. | |
platform, osVersion | ios or android, and the OS build. | |
attestationAvailable | Whether App Attest or Play Integrity can run here. Always false on the brokered route, which never asks for either, so read it together with authorisationTier. | |
authorisationTier | How this SDK instance gets its certificates authorised: brokered (through your Broker) or attestation (App Attest or Play Integrity). Fixed when you configure the SDK. | |
local | passpointProfileInstalled | Whether this SDK's profile is on the device now, matched on its Home SP FQDN. Asked of the platform each time, so a restart doesn't skew it. null when the SDK can't tell. |
certificateSerial, certificateExpiry | The certificate the SDK last installed, as recorded at issuance. | |
certificateStatus | The server's own answer for that serial, verbatim. Empty when the lookup is unavailable. | |
config | client | Your Client: identity, the end-user-facing brand, the labels certificates install under, plus enabled and devMode. Both read true in any payload you can capture, since neither state serves one. |
partner | The parent Partner: its partnerId (not your clientId), its own enabled (true, for the same reason), and effectiveValidityCap — the longest lifetime issuance will grant you, already resolved against Wi-DAS policy. | |
radius | realm, mcc, mnc, rcoi. Nulls mean not configured. | |
passpoint | homeFqdn, the AAA server's name — deliberately not your realm. | |
appIdentities | The app identities registered against your Client. Identifiers only. | |
deployment | Which API build answered. apiVersion carries a build suffix after the +, so a capture pins to one deployment rather than one release. |
Reading a payload
| What you see | What it points at |
|---|---|
radius.realm isn't what your RADIUS estate expects | Server-side Partner configuration. Send the payload to support. |
passpoint.homeFqdn is null | Nothing configured on the Wi-DAS side. Issuance would fail before installing a broken profile, and this surfaces the gap. |
passpoint.homeFqdn is the same as radius.realm | Wrong. They're two different names doing two different jobs, and EAP-TLS fails on the server-name check. Worth flagging to support directly. |
certificateSerial is set but passpointProfileInstalled is false | Issued, then failed to install. The SDK looked for its profile and the OS doesn't hold it. On iOS check the Hotspot Configuration entitlement and your Keychain access group; on Android check the Wi-Fi permissions survived your manifest merge. |
passpointProfileInstalled is null | Different from false above: the SDK couldn't tell rather than looked and found nothing. Usually an install onboarded by an older SDK build, with no recorded FQDN to match against. Read it as unknown, and connect() gets the field answering again. |
attestationAvailable is false and authorisationTier is attestation | Attestation can't run: the Simulator or an unentitled build on iOS, no Play Services or a wrong Cloud project number on Android. There's no fallback path. |
attestationAvailable is false and authorisationTier is brokered | Normal. The brokered route never uses attestation. If this device can't onboard, look at your Broker: its logs, and whether it's still registered and enabled for your clientId. |
certificateExpiry is in the past | Call connect() again. It issues a fresh certificate, so that's the whole fix. |
deployment values differ between two payloads | You're comparing captures from different API builds. Recapture both before drawing conclusions. |
Two fields to understand before you read a report
certificateStatus is the server's answer
status() falls back to the validity window it stored locally when the lookup is unavailable, which
is the behaviour an app wants while it's deciding whether to re-onboard. In a support conversation a
locally-computed guess reads as a server fact, so debugInfo() reports what the server said or
nothing at all. Compare it against certificateExpiry and read the two separately.
The lookup is commonly unavailable today, so an empty certificateStatus is normal.
passpointProfileInstalled asks the platform
The SDK queries the OS rather than reading back a flag saying it once installed something, so the answer holds up after an app reinstall, a process restart, or a profile the user deleted in Settings.
Both platforms match on the profile's Home SP FQDN, so a true means this SDK's profile is
present, not merely that some Passpoint profile is. That matters on a device where your own app
registers Wi-Fi configuration of its own, which would otherwise be reported back to you as the SDK's.
It matches against the FQDN the SDK recorded when it installed the profile, not the homeFqdn in
the same response. So if the server's homeFqdn has changed since a device onboarded, the field still
recognises the profile that's actually there. Run connect() again to bring the device in line with
the current configuration.
The answer can be null, meaning the SDK couldn't tell. That happens when the install was onboarded by
an SDK build from before the FQDN was recorded, so there's nothing to match on, or when the platform
query itself fails. In either case, if the SDK has no certificate serial recorded either, you get
false instead, since then nothing was ever installed to look for.
The payload carries no secrets
Send it as it stands. There's nothing to redact, and that's structural: none of the types in the payload has a field capable of carrying key material.
- No private key, no certificate signing request, no attestation token or key handle, and no certificate bodies. Only a certificate's serial and expiry.
- No free-text field anywhere for an underlying platform error message to land in.
clientId, your Team ID and bundle ID or package name and app-signing certificate hash, the realm, RCOI and MCC/MNC are all public identifiers. They're already in every issued profile on every enrolled device, or in your published binary.
The SDK test suites assert this after a full connect(), so the signing request, the attestation
token and the issued certificates have all passed through the instance before the check runs.
Where it fits
debugInfo() sits outside the onboarding flow, and your app doesn't need it to work. Reach for it
when Troubleshooting hasn't settled the question, and attach the payload when
you contact support.