#jared_link-webviews

1 messages · Page 1 of 1 (latest)

dusk sealBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1494767758766903318

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sweet dirge
#

jared_reactnative-link

#

your summary got cut off. You say it isn't working in your mobile app but specifically on Android. Does this work on iOS? How are you testing exactly? Can you provide a bit more code, screenshot(s) of what you see on the device, etc.?

near crag
#

It is not working in the embedded web view for iOS or Android. We have only tried addressing it on Android so far.

sweet dirge
#

is this on a real device or in the simulator?

near crag
#

I have connect the Chrome debug tools to my Android phone (Pixel 9), so we can inspect the web view.

sweet dirge
#

Also which exact version of the SDK are you on?

near crag
#

It is a real phone

#

The Stripe SDK?

sweet dirge
#

yes the react native SDK

#

can you also turn off Paypal and GooglePay in the init to see what happens?

near crag
#

The app is using "react-native": "0.81.5"

#

The embedded web view is using @stripe/stripe-js 5.10.0 and @stripe/react-stripe-js 2.9.0

sweet dirge
#

I'm super confused I think

#

If you are using the React Native SDK, why are you also using Stripe.js?
Is this a simple webview where you render your web app (in which case the React Native SDK is mostly not relevant)?

dusk sealBOT
near crag
#

The only the checkout is shown in an embedded web view, the rest of the app is react native.

sweet dirge
#

Gotcha, so really the debugging is more "why doesn't Link not appear in a webview with my React Stripe.js integration" I think

near crag
#

Correct

sweet dirge
#

I can confirm this is expected. We do not offer Link in webviews at all today

#

it requires a popup/modal to sign-in/sign up so it's turned off in webviews

#

If you want to offer Link in your mobile app you should do it using the React Native SDK and PaymentSheet or similar not a webview. Or open a full browser instead

#

jared_link-webviews

near crag
#

OK, thanks.

#

Is there a link to your documentation indicating that this use case is not supported? It would be helpful to have a link when explaining this to management.

sweet dirge
#

but I wouldn't call that "well documented" (I have a jira internally to push for a better list)

#

I'm also filing a jira right now to nudge them to log a warning in the console. You clearly tried to self-serve this and if there had been a warning saying "Link is enabled but we don't offer it here because you're in a webview and this is not compatible" or something you would have known