#morteza_api

1 messages ¡ Page 1 of 1 (latest)

red bobcatBOT
calm haloBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

red bobcatBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1259810652168523866

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

flat light
#

What issue exactly you are facing ? can you share some code snipets and a screenvideo recording ?

dim tiger
#

yes

#

wait please

flat light
#

Sure!

dim tiger
#

elements
.create("issuingCardPinDisplay", {
issuingCard: cardId,
ephemeralKeySecret: ephemeralKeyResult.secret,
nonce: nonceResult.nonce,
style: elementsStyle,
})
.mount(#${cardId}-card-pin);

#

this element shows the pin

#

const cardNumberCopy = elements.create('issuingCardCopyButton', {
toCopy: 'number',
style: {
base: {
fontSize: '12px',
lineHeight: '24px',
},
},
});

cardNumberCopy.mount('#${cardId}-card-pin');

dim tiger
#

if we open the page ccontaining this code on a browser pin is copied to clipboard but if we open in webview itsn't

flat light
#

Thanks for sharing these details, and what about the issue you are facing in the webview ? is there a screenvideo recording? any error message in your webview?

dim tiger
#

it doesn't throw any errors

#

I tap on copy button and then try to paste the copied pin somewhere in app but it's empty

flat light
#

Have you had the chance to debug your integration ? Following the link I shared ?

dim tiger
#

well, it works in browser, I expect it to work in webview as well

#

but it doesn't

#

if integrationn was wrong it'd not work on browser either

flat light
#

So maybe there is an issue with the webview you are using.

dim tiger
#

it's react native webview

flat light
#

I see but sorry, the information you are providing isn't enough. Could you please share a sample min project?

dim tiger
#

letme run the project and record screen

flat light
#

And please share a reproduction sample project for this.

dim tiger
#

on the card there's a hidden button (for now it's hidden) I click on it, it's created by issuing copy element, I expect pin to be copied to the clipboard, then I try to paste it somewhere but it's emepty

#

the page you see the card in is a webpage, I open it directly on browser and do the same thing I do but pin is copied perfectly

flat light
#

And see if there is an API call that fails or any JS error.

dim tiger
#

ok, letme debud then and I'll run the result by you