anvilco / node-anvil

Node API Client for Anvil
https://www.useanvil.com/developers/
17 stars 6 forks source link

AnvilSignatureModal Blank on Mobile #475

Open mrytower5 opened 1 month ago

mrytower5 commented 1 month ago

Expected Behavior

Trying to return

      <AnvilSignatureModal
        iframeURL={signingURL}
        isOpen={isModalOpen}
        onClose={() => setIsModalOpen(false)}
        onEvent={(event) => {
            console.log('Event object:', event);
            setEventObject(event);
        }} 

on mobile devices should render an embedded signature packet.

Actual Behavior

The embedded modal never opens. I can access the signingURL in another tab in mobile browser, but the iframe doesn't seem to open the signature modal. Are there known issues opening an iframe on iOS Chrome and Safari browsers?

benogle commented 1 month ago

Hey @mrytower5 sounds like this is in a browser, not in a webview is that right? We have a troubleshooting section in the docs that may be helpful.

Here are the likely causes: