Skip to content

No paywall to display error #214

@hoangnam9194

Description

@hoangnam9194

Hi Team,
Our app has two build flavors (dev and production), i created two correspon apps  on the Superwall dashboard.
- On dev environment, the paywall view is loaded successfully and everything works alright.
- On production environment, I got the No paywall to display when I tried to get the paywall view.

  • Configure in application level:
 Superwall.configure(
                        applicationContext = application,
                        apiKey = appConfigs.superWallKey,
                        options = SuperwallOptions().apply {
                            paywalls = PaywallOptions().apply {
                                shouldShowPurchaseFailureAlert = false
                                useCachedTemplates = false
                                shouldPreload = true
                            }
                        },
                        purchaseController = object : PurchaseController {}
  • Display Paywall Composable in fragment (with xml layout):
image

Error logs:

16:34:01.670  D  SuperWallDelegate:handleLog: level=INFO, scope=paywallPresentation, message=Timeout: Superwall.instance.subscriptionStatus has been "unknown" for over 5 seconds resulting in a failure., info=null, error=null
16:34:01.670  D  SuperWallDelegate:handleLog: level=INFO, scope=paywallPresentation, message=Timeout: Superwall.instance.subscriptionStatus has been "unknown" for over 5 seconds resulting in a failure., info=null, error=null
16:34:01.678  D  SuperWallDelegate:handleSuperWallEvent: eventInfo=SuperwallEventInfo(event=PaywallPresentationRequest(status=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatus$Timeout@ddca130, reason=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout), params={is_superwall=true, status_reason=subscription_status_timeout, source_event_name=prompt_from_test, pipeline_type=getPaywallViewController, status=timeout, app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9})
16:34:01.679  D  SuperWallDelegate:handleSuperWallEvent: eventInfo=SuperwallEventInfo(event=PaywallPresentationRequest(status=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatus$Timeout@ddca130, reason=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout), params={is_superwall=true, status_reason=subscription_status_timeout, source_event_name=prompt_from_test, pipeline_type=getPaywallViewController, status=timeout, app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9})
16:34:01.681  D  SuperWallDelegate:handleLog: level=DEBUG, scope=events, message=Logged Event, info={$is_standard_event=true, $event_name=paywallPresentationRequest, event_name=paywallPresentationRequest, $status_reason=subscription_status_timeout, $source_event_name=prompt_from_test, $pipeline_type=getPaywallViewController, $status=timeout, $app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9}, error=null
16:34:01.682  D  SuperWallDelegate:handleLog: level=DEBUG, scope=events, message=Logged Event, info={$is_standard_event=true, $event_name=paywallPresentationRequest, event_name=paywallPresentationRequest, $status_reason=subscription_status_timeout, $source_event_name=prompt_from_test, $pipeline_type=getPaywallViewController, $status=timeout, $app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9}, error=null
16:34:01.687  D  SuperWallDelegate:handleSuperWallEvent: eventInfo=SuperwallEventInfo(event=PaywallPresentationRequest(status=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatus$NoPresentation@b2d71a9, reason=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout), params={is_superwall=true, status_reason=subscription_status_timeout, source_event_name=prompt_from_test, pipeline_type=getPaywallViewController, status=no_presentation, app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9})
16:34:01.688  D  SuperWallDelegate:handleSuperWallEvent: eventInfo=SuperwallEventInfo(event=PaywallPresentationRequest(status=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatus$NoPresentation@b2d71a9, reason=com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout), params={is_superwall=true, status_reason=subscription_status_timeout, source_event_name=prompt_from_test, pipeline_type=getPaywallViewController, status=no_presentation, app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9})
16:34:01.689  D  SuperWallDelegate:handleLog: level=DEBUG, scope=events, message=Logged Event, info={$is_standard_event=true, $event_name=paywallPresentationRequest, event_name=paywallPresentationRequest, $status_reason=subscription_status_timeout, $source_event_name=prompt_from_test, $pipeline_type=getPaywallViewController, $status=no_presentation, $app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9}, error=null
16:34:01.690  D  SuperWallDelegate:handleLog: level=DEBUG, scope=events, message=Logged Event, info={$is_standard_event=true, $event_name=paywallPresentationRequest, event_name=paywallPresentationRequest, $status_reason=subscription_status_timeout, $source_event_name=prompt_from_test, $pipeline_type=getPaywallViewController, $status=no_presentation, $app_session_id=5b98b931-fd49-42fe-bc31-743f5c6c6fe9}, error=null
16:34:01.703  D  SuperWallDelegate:handleLog: level=INFO, scope=paywallPresentation, message=Skipped paywall presentation: null, com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout (Ask Gemini)
                 	at com.superwall.sdk.paywall.presentation.internal.operators.WaitForSubsStatusAndConfigKt.waitForSubsStatusAndConfig(WaitForSubsStatusAndConfig.kt:70)
                 	at com.superwall.sdk.paywall.presentation.internal.operators.WaitForSubsStatusAndConfigKt$waitForSubsStatusAndConfig$1.invokeSuspend(Unknown Source:13)
                 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                 	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)
                 	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
                 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:102)
                 	at android.os.Handler.handleCallback(Handler.java:938)
                 	at android.os.Handler.dispatchMessage(Handler.java:99)
                 	at android.os.Looper.loopOnce(Looper.java:201)
                 	at android.os.Looper.loop(Looper.java:288)
                 	at android.app.ActivityThread.main(ActivityThread.java:7870)
                 	at java.lang.reflect.Method.invoke(Native Method)
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
                 , info=null, error=null
16:34:01.703  D  SuperWallDelegate:handleLog: level=INFO, scope=paywallPresentation, message=Skipped paywall presentation: null, com.superwall.sdk.paywall.presentation.internal.PaywallPresentationRequestStatusReason$SubscriptionStatusTimeout (Ask Gemini)
                 	at com.superwall.sdk.paywall.presentation.internal.operators.WaitForSubsStatusAndConfigKt.waitForSubsStatusAndConfig(WaitForSubsStatusAndConfig.kt:70)
                 	at com.superwall.sdk.paywall.presentation.internal.operators.WaitForSubsStatusAndConfigKt$waitForSubsStatusAndConfig$1.invokeSuspend(Unknown Source:13)
                 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                 	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)
                 	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
                 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:102)
                 	at android.os.Handler.handleCallback(Handler.java:938)
                 	at android.os.Handler.dispatchMessage(Handler.java:99)
                 	at android.os.Looper.loopOnce(Looper.java:201)
                 	at android.os.Looper.loop(Looper.java:288)
                 	at android.app.ActivityThread.main(ActivityThread.java:7870)
                 	at java.lang.reflect.Method.invoke(Native Method)
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
                 , info=null, error=null
16:34:03.978  D  bufferpool2 0x747f39fcd8 : 9(14929920 size) total buffers - 8(13271040 size) used buffers - 12583/12592 (recycle/alloc) - 11/12472 (fetch/transfer)
16:34:05.392  D  SuperWallDelegate:handleLog: level=DEBUG, scope=network, message=Request Started, info={url=https://collector.superwall.me/api/v1/events}, error=null
16:34:05.392  D  SuperWallDelegate:handleLog: level=DEBUG, scope=network, message=Request Started, info={url=https://collector.superwall.me/api/v1/events}, error=null
16:34:05.771  D  SuperWallDelegate:handleLog: level=DEBUG, scope=network, message=Request Completed, info={request=com.android.okhttp.internal.huc.HttpURLConnectionImpl:https://collector.superwall.me/api/v1/events, api_key=Bearer {my_superwall_key}, url=https://collector.superwall.me/api/v1/events, request_id=unknown, request_duration=0.376}, error=null
16:34:05.772  D  SuperWallDelegate:handleLog: level=DEBUG, scope=network, message=Request Completed, info={request=com.android.okhttp.internal.huc.HttpURLConnectionImpl:https://collector.superwall.me/api/v1/events, api_key=Bearer {my_superwall_key}, url=https://collector.superwall.me/api/v1/events, request_id=unknown, request_duration=0.376}, error=null
16:34:09.021  D  bufferpool2 0x747f39fcd8 : 9(14929920 size) total buffers - 8(13271040 size) used buffers - 12735/12744 (recycle/alloc) - 11/12624 (fetch/transfer)
16:34:09.555  D  keep callback message for reclaim

Can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions