superwall / Superwall-Android

Remotely configure every aspect of your paywall and double your revenue.
https://superwall.com
MIT License
11 stars 3 forks source link

`No paywall to display` error #214

Open hoangnam9194 opened 5 days ago

hoangnam9194 commented 5 days ago

Hi Team, Our app has two build flavors (dev and production), i created two correspon apps  on the Superwall dashboard.

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?

ianrumac commented 3 days ago

Hey @hoangnam9194 !

Looking at the stack trace, it seems like waiting for the subscriptionStatus is timing out, meaning that it has not been set to ACTIVE/INACTIVE. Are there any differences in how you are setting these in dev vs production?