Releases: pace/cloud-sdk-android
Releases · pace/cloud-sdk-android
8.2.0
Enhancements
- Added new generated request with possibility to set readTimeout times for requests
- Added classes to generated requests
- Correctly set content type for request with object schema
- Add function to POIKit to observe gas stations by ID and location
Internal
- Update protobuf dependency and regenerate protobuf code
8.1.0
8.0.1
8.0.0
Breaking changes
- Deprecated the
AppCallback.onTokenInvalid
method. UseAppCallback.getAccessToken
instead that introduces theisInitialToken
flag, which can be left at default value (=false
) - Implement automatic session handling for apps. If
IDKit
is used, the SDK will now try to renew the session automatically when an app requests a new token. In this case thegetAccessToken
AppCallback will no longer be called. If the renewal fails theonSessionRenewalFailed
AppCallback may be implemented to specify a custom behavior for the token retrieval. Otherwise the sign in mask will be shown. - Speed up
isPoiInRange
call. Add optionallocation
parameter which will be used instead of the current location if specified. Also makeisPoiInRange
suspend to call it in a own Coroutine.
Enhancements
- Add a new
onLogin
AppCallback that is invoked when the user logs in via an automatic authorization request from the SDK within the PWA (not ifIDKit.authorize(...)
is called manually). This callback provides theAppActivity
context and the authorization result. - Intercept the URLs and close the PWA if it is the close redirect URI
cloudsdk://close
Internal
- Add
logout
handler to PWA communication - Automatically refresh the access token and retry the request if it returns status code 401 (unauthorized). If
IDKit
is not initialized, no session is available or the token renewal failed, the error is passed to the client app. - Add
getLocation
handler to PWA communication - Content type and more headers are now generated
- Authorization header only used for needing requests
7.6.0
7.5.2
7.5.1
7.5.0
Enhancements
- Make app drawer more robust by increasing distance threshold and checking whether same apps are returning when requesting local apps
- Add option to
IDKit.setPINWithBiometry(...)
to authenticate with the device PIN, pattern, or password instead of biometry (defaults totrue
)
Fixes
- Implement a default handler for
getConfig
PWA message which returnsnull
to prevent waiting for result - Fix host in key under which secure data is persisted
Internal
- Use
LocationProvider.currentLocation()
first andLocationProvider.firstValidLocation()
as fallback to speed up the verify location call in the PWA - Refactor
LocationProvider
so that every one-time location e.g. used inisPoiInRange
orrequestLocalApps
is returned inline - Decrease
getConfig
PWA message handling timeout to 5 seconds - Set
utm_source
per default and add defined list of defaultutm_params
to make sure these params won't be removed - Return location accuracy in
verifyLocation
PWA message response - Add option to authenticate payments with the device PIN, pattern, or password instead of biometry
7.4.0
Enhancements
- Add functions to launch the authorization and end session request as well as the handling of the response inline
Internal
- Add default implementation of
onTokenInvalid
callback which automatically tries to refresh the token and shows the login form in case of error - Refactor
isPoiInRange
check so that it no longer checks if the position is within the POI's polygon, but if beeline to the POI is within 500m