#morteza_api
1 messages ¡ Page 1 of 1 (latest)
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.
- morteza_api, 5 days ago, 34 messages
- morteza_api, 6 days ago, 87 messages
đ 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.
What issue exactly you are facing ? can you share some code snipets and a screenvideo recording ?
Sure!
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');
this one shows a button by clicking on it the pin is copied to clipboard
if we open the page ccontaining this code on a browser pin is copied to clipboard but if we open in webview itsn't
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?
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
Have you had the chance to debug your integration ? Following the link I shared ?
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
So maybe there is an issue with the webview you are using.
it's react native webview
I see but sorry, the information you are providing isn't enough. Could you please share a sample min project?
letme run the project and record screen
And please share a reproduction sample project for this.
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
Is there a reason why the button is hidden ? otherwise, try debug that page using this link:
https://developer.chrome.com/docs/devtools/remote-debugging/webviews
And see if there is an API call that fails or any JS error.
no I would put a copy icon later
ok, letme debud then and I'll run the result by you