Skip to main content
Question

Purchase cancelled on hardware back button hit from bank verification redirect

  • October 30, 2025
  • 2 replies
  • 35 views

Forum|alt.badge.img+5

Hello, 

this is all about Android, iOS works fine.

The title sums it all basically. Little code environment context - I do launch a new activity upon purchase under singleTop launchmode. So it’s separated from my singleTask Main Activity.

Now the issue. When user gets a bank redirect to verify payment, it all goes well, everything works, they confirm. But once they go back via the hardware button, the purchase gets cancelled. If they background the bank verification and bring my app forward, it all works as expected. What should about it? Thank you.
 

<activity
android:name=".PurchaseActivity"
android:theme="@style/AppTheme"
android:launchMode="singleTop"
android:taskAffinity="cz.erudita.app"
android:excludeFromRecents="true"
android:alwaysRetainTaskState="true"
android:clearTaskOnLaunch="false"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait"
android:exported="true">

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="cz.erudita.app" android:host="objednavka" />
</intent-filter>
</activity>

 

2 replies

Forum|alt.badge.img+5
  • Author
  • Member
  • 7 replies
  • October 30, 2025

Oh and I did try to implement a foreground service - that did help with the issue of “staying alive” when the app gets backgrounded on phones with aggressive battery saving settings, but obviously that didn’t solve the hardware button issue. 


alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+5
  • RevenueCat Staff
  • 132 replies
  • November 6, 2025

Hey ​@nagram

Thank you for reaching out!

Per my understanding, this could be a limitation of the Google Play Payment sheet, which RevenueCat’s SDK does not handle directly. Having said that, I’ve shared this internally with the Engineering team for them to double-check. I’ll let you know as soon as I have more information!

Best,