App is getting crash on application onCreate :
Caused by java.lang.IllegalStateException: PaywallActivity was not launched through the SDK. Please use the SDK methods to open the Paywall. This might happen on some Google automated testing, but shouldn't happen to users.
at com.revenuecat.purchases.ui.revenuecatui.activity.PaywallActivity.onCreate(PaywallActivity.kt:105)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1548)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3406)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3607)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:423)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
On Application onCreate, we are doing configuration :
val config = PurchasesConfiguration.Builder(context, apiKey)
.showInAppMessagesAutomatically(false)
.appUserID(userId)
.build()
Purchases.configure(config)
