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
I am not sure if this would be bug, or feature request. I am using Paywall UI. In success result (purchase or restore) I get callback and based on that I show my custom successful view to the user, which is nice. But for error callbacks, it shows by default compose alert dialogs, but in whole application I want to use my custom error view. In this case I left with two options
First option don't show any error view, assume needed error view will be handled by RevenueCat, and will show default Compose Dialog.
Show both custom dialog and Compose Error Dialog that comes with RevenueCat.
I think it would be good idea to make that error decision to end user, instead of showing default alert dialog. Or giving an option to hide/disable that.
val paywallOptions = remember {
PaywallOptions(dismissRequest = { onDismiss() }) {
this.shouldDisplayDismissButton =truethis.listener =object:PaywallListener {
overridefunonPurchaseCompleted(
customerInfo:CustomerInfo,
storeTransaction:StoreTransaction
) {
//Successful paymentsuper.onPurchaseCompleted(customerInfo, storeTransaction)
AppLogger.d("Successful payment, onPurchaseCompleted")
successfulPurchaseOrRestore =true
}
overridefunonPurchaseError(error:PurchasesError) {
super.onPurchaseError(error)
AppLogger.e("There was an error with purchase: $error")
}
overridefunonRestoreCompleted(customerInfo:CustomerInfo) {
super.onRestoreCompleted(customerInfo)
AppLogger.d("Successful restore, onRestoreCompleted")
successfulPurchaseOrRestore =true
}
overridefunonRestoreError(error:PurchasesError) {
super.onRestoreError(error)
AppLogger.e("There was an error with restore purchase: $error")
}
}
}
}
Paywall(options = paywallOptions)
Environment
Platform: android
SDK version:
OS version:
IDE (e.g. Android Studio, Xcode, Fleet): Android Studio
IDE version:
Device and/or emulator/simulator:
Device
Emulator/simulator
Environment:
Closed testing / Sandbox
TestFlight
Production
How widespread is the issue. Percentage of devices affected.
the Contribution Guidelines
for existing Github issues
Describe the bug
I am not sure if this would be bug, or feature request. I am using Paywall UI. In success result (purchase or restore) I get callback and based on that I show my custom successful view to the user, which is nice. But for error callbacks, it shows by default compose alert dialogs, but in whole application I want to use my custom error view. In this case I left with two options
I think it would be good idea to make that error decision to end user, instead of showing default alert dialog. Or giving an option to hide/disable that.
have context, eg. stackoverflow, etc.)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: