I am encountering a runtime crash when trying to open the Superwall paywall through a deep link using Superwall.handleDeepLink(...). The deep link is set up correctly on both the app and platform side.
Steps to Reproduce:
- Configure deep linking in the Flutter app and Superwall dashboard.
- Trigger a deep link pointing to a paywall.
- Call Superwall.shared.handleDeepLink(...) when the app receives the link.
Expected Behavior:
Paywall should open via Superwall SDK without crashing.
Actual Behavior:
The app crashes with the following error:
- Unhandled Exception: PlatformException(BAD_ARGS, Missing or invalid arguments for 'handleDeepLink', null, null)
Additionally, there's a fatal runtime exception:
- FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.remoteo.tv.control/com.superwall.sdk.debug.DebugViewActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
...
Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
at com.superwall.sdk.debug.DebugViewActivity.onCreate(DebugView.kt:964)
Environment:
Flutter version: 3.27.4
Superwall Flutter SDK version: 2.0.8
Android OS version: 14
Notes:
The deep link is confirmed to be received and parsed correctly.
This crash occurs consistently when handleDeepLink is triggered.
We suspect either a missing argument validation on the Dart side or a lifecycle/config bug in DebugViewActivity.
Please advise if there's a workaround or if an SDK fix is planned.