Our native android app is experiencing issue on Flex devices if user rotates the the screen when calling PaymentConnector.sale() to make a credit card payment.
To isolate the problem, we were able to reproduce similar issue in the Sale App that comes on the Flex Dev Kit:
Summary: Sometimes Sale app on Flex gets errors if try to charge while rotating the device.
Steps
- On Flex2, open the Sale App
- Enter an amount like $11.00.
- Rotate the device to landscape
- Tap the Charge button
Results: Sometimes the app unexpectedly returns to the Sale screen. The logcat shows errors like:
- No thermal zone for sensor
- Thermal sensor initialization is failed
- Resources$NotFoundException
Expected: The app should remain in the credit card payment screen regardless of screen rotation. The logcat does not show the errors.
Impact: This issue is impacting the native Android application we are building for the Flex device because when we call the Sale API, sometimes we never get a call back and sometimes the device enters the pin lock state. We have not seen this issue on the Clover Mini.