I'm implementing card payment with InAppPayments.startCardEntryFlow, all works well but when the card activity launches and I hit the back button in the app it exits to the device home screen and throws an Illegal argument exception exception. In debug mode, all works well and the app just goes back to the previous screen when pressing back. I'm setting the square app id correctly.
Here is the log:
E/AndroidRuntime(14460): FATAL EXCEPTION: EventsUploadThread
E/AndroidRuntime(14460): Process: levant.wholesale.ecommerce.dev, PID: 14460
E/AndroidRuntime(14460): java.lang.IllegalArgumentException: Method return type must not include a type variable or wildcard: k.b<?>
E/AndroidRuntime(14460): for method h.a
E/AndroidRuntime(14460): at k.w.o(Unknown Source:46)
E/AndroidRuntime(14460): at k.w.n(Unknown Source:1)
E/AndroidRuntime(14460): at k.t.b(Unknown Source:40)
E/AndroidRuntime(14460): at k.s.d(Unknown Source:24)
E/AndroidRuntime(14460): at k.s$a.invoke(Unknown Source:32)
E/AndroidRuntime(14460): at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
E/AndroidRuntime(14460): at $Proxy4.a(Unknown Source)
E/AndroidRuntime(14460): at sqip.internal.j1.a$a.l(Unknown Source:68)
E/AndroidRuntime(14460): at sqip.internal.j1.a$a.f(Unknown Source:0)
E/AndroidRuntime(14460): at sqip.internal.j1.a$a$b.run(Unknown Source:4)
E/AndroidRuntime(14460): at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
E/AndroidRuntime(14460): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
E/AndroidRuntime(14460): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(14460): at java.lang.Thread.run(Thread.java:784)
I tried to create a minimal example to reproduce this but I couldn't. On the minimal example I created the app worked
perfectly.
Expected behavior
To go back to the previous screen when pressing back.
platform: Android (Phone is Huawei)
OS and version: EMUI 9.1.0
dev environment: MacOs
In-App Payments Plugin version: 1.7.1
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.59.0)
[✓] Connected device (1 available)
! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
I'm implementing card payment with InAppPayments.startCardEntryFlow, all works well but when the card activity launches and I hit the back button in the app it exits to the device home screen and throws an Illegal argument exception exception. In debug mode, all works well and the app just goes back to the previous screen when pressing back. I'm setting the square app id correctly.
Here is the log:
I tried to create a minimal example to reproduce this but I couldn't. On the minimal example I created the app worked perfectly.
Expected behavior To go back to the previous screen when pressing back.
In-App Payments Plugin version: 1.7.1
Flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] VS Code (version 1.59.0) [✓] Connected device (1 available) ! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
• No issues found!
Code used is just a simple button with