Skip to content

19.5.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 15:27
· 7 commits to master since this release
7801175

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. Gleap.initialize(String projectId, Application application) keeps its signature; only the parameter name and its Javadoc changed. Log lines say "Project ID" instead of "SDK key" / "API key".

The JWT provider restores a signed session after an app restart. setUserJwt keeps the token in memory only, so after a restart 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 start 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 null 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 Gleap.initialize.