Releases: pace/cloud-sdk-android
Releases · pace/cloud-sdk-android
9.2.0
Enhancements
- Add logging for successful setup 'PACECloudSDK' and 'IDKit' and for missing mandatory values for setup
- Open the share sheet by default when the PWA sends image data, e.g. when clicking on a receipt. This behavior can be overridden in
AppCallback.onImageDataReceived(bitmap) - The location's speed will only affect when app drawers are shown, but not when they are being removed again
Fixes
- Only show network error in WebView if it is a main frame error
- Fix bug that third party browser custom tabs were not closed after adding the payment method e.g. PayPal
- Add methods to
IDKitthat returns the user's payment methods, transactions and checks the PIN requirements - Remove
LocationAvailabilitycheck since it causes issues on some devices - Ensure that AppKit's requestLocalApps will always call the completion callback
Internal
- Migrate Gradle files from Groovy to Kotlin
- Use Kotlin Coroutines instead of Future to fetch the PWA manifest and icons
- Add
bearingparameter toGetLocationPWA call
9.1.0
9.0.0
Breaking changes
- Change default authentication mode to
AuthenticationMode.NATIVE - Request with multiple accept headers correctly generated e.g.
GetTermsAPI - Remove
autoCloseoption when starting theAppActivity
Enhancements
- Offer default configurations for all environments for clients that login with PACE ID (IDKit)
Fixes
- Fix bug that could occur when the user tried to log in but was still logged in with another account
- Add function to Appkit to request Connected Fueling gas stations by location and radius
Internal
- Use gas station endpoint as fallback for POI position if none was found in the database when observing a single POI by ID
- Return location based apps based on
appsDistanceThresholdInMetersconfiguration and not if the location is in the polygon - Rework communication between apps and SDK
- Add
isBiometricAuthEnabledhandler to PWA communication
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.onTokenInvalidmethod. UseAppCallback.getAccessTokeninstead that introduces theisInitialTokenflag, which can be left at default value (=false) - Implement automatic session handling for apps. If
IDKitis used, the SDK will now try to renew the session automatically when an app requests a new token. In this case thegetAccessTokenAppCallback will no longer be called. If the renewal fails theonSessionRenewalFailedAppCallback may be implemented to specify a custom behavior for the token retrieval. Otherwise the sign in mask will be shown. - Speed up
isPoiInRangecall. Add optionallocationparameter which will be used instead of the current location if specified. Also makeisPoiInRangesuspend to call it in a own Coroutine.
Enhancements
- Add a new
onLoginAppCallback 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 theAppActivitycontext and the authorization result. - Intercept the URLs and close the PWA if it is the close redirect URI
cloudsdk://close
Internal
- Add
logouthandler to PWA communication - Automatically refresh the access token and retry the request if it returns status code 401 (unauthorized). If
IDKitis not initialized, no session is available or the token renewal failed, the error is passed to the client app. - Add
getLocationhandler to PWA communication - Content type and more headers are now generated
- Authorization header only used for needing requests