Repository navigation
19.5.0
Project ID: the key the SDK is initialized with is now called the Project ID everywhere (SDK docs, README, dashboard). The value is the same, so every existing key keeps working and nothing has to change. New: Gleap.initialize(withProjectId:) (Objective-C initializeWithProjectId:) and the projectId property. initialize(withToken:) / initializeWithToken: and the token property stay as deprecated aliases (a compiler deprecation warning, no runtime log). Log lines say "Project ID" instead of "API key".
The JWT provider restores a signed session after a relaunch. setUserJwt keeps the token in memory only, so after a relaunch the SDK holds the session but no token, and the provider was only asked when a token expired. Now, when the session answer says the project runs Signed (identity.mode: 'signed', signed: false) for an identified session that has no grant (missing, or expired and dropped by the server's answer), no token or user hash is at hand and a provider is set, the SDK asks the provider once per app launch and sends its token through the normal setUserJwt path. That identify is the one signed identify of the session (never a loop); the provider's rules still apply (one call at a time, 10 second timeout, 30 second pause after a failure); a nil token sends nothing; a logout, an identify of the app or a grant arriving while the provider runs drops its token; a token for another user goes through the identity_mismatch recovery. setUserJwtProvider called after the session answer runs the same check, so the provider works whether it is set before or after initialize.