You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When connecting to the reader location services access is required. During connection flow location access request popup is presented. Nevertheless after popup is presented flow continues without awaiting for the request result. This causes several issue with payment flow:
Since location request ought to be performed in response to user action we cannot reliably connect to the reader in background (as requested by Apple)
We are connecting to the reader in payment flow - in this case SDK does not wait for location permissions and continues returning connection success. Subsequent payment made with connected reader will fail due to missing location.
Since location is required for the reader to work and location permissions are handled by SDK it should await for permission to be granted before continuing and throw error in case permissions were rejected by the user.
Currently SDK returns value from connectReader without respecting result or lack of for location permission dialog.
Summary
When connecting to the reader location services access is required. During connection flow location access request popup is presented. Nevertheless after popup is presented flow continues without awaiting for the request result. This causes several issue with payment flow:
Since location is required for the reader to work and location permissions are handled by SDK it should await for permission to be granted before continuing and throw error in case permissions were rejected by the user.
Currently SDK returns value from
connectReader
without respecting result or lack of for location permission dialog.Code to reproduce
iOS version
iOS 18.0.1
Installation method
Swift Package
SDK version
4.1.0
Other information
The text was updated successfully, but these errors were encountered: