PurpleSoftSrl / sumup_flutter_plugin

A Flutter wrapper to use the SumUp SDK. With this plugin, your app can easily connect to a SumUp terminal, login and accept card payments on Android and iOS.
https://www.purplesoft.io
MIT License
17 stars 17 forks source link

iOS login failure #35

Closed ynzehettema closed 1 year ago

ynzehettema commented 1 year ago

Greetings,

In my testing I'm having trouble getting the SumUp login to work on iOS devices.

Following is a list of steps I take to reproduce this issue:

This was tested on an iPhone 8 running iOS 16.3. It recently updated to this version so I tried this same flow in iOS simulators with earlier versions. Both iOS 14.5 and 15.5 produce the same output so I can only conclude this is unrelated. The same codepath runs fine on Android devices with the same credentials.

Additional thoughts: The Info.plist contains usage strings for both Location and Bluetooth usage. Me and my co-workers are stumped.

Screen Shot 2023-01-31 at 14 12 13

sstasi95 commented 1 year ago

Hi,

I think you've done everything correctly. Have you tried uninstalling and reinstalling the app?

Sometimes it happens to me that I call Sumup.init(key) with the wrong key, then I put the correct one and it gives me the same error when I try to login. Uninstalling and reinstalling the app fixes the issue usually.

ynzehettema commented 1 year ago

After exhaustive testing it appears that I was indeed calling Sumup.init(key) with the wrong key. But curiously only in iOS.

Mea culpa.