Skip to navigation

Integration Update - iOS Motion Permission for iFrame

Add the motion sensor permissions to your iframe so iOS users can complete ID verification.
View as Markdown

After an update by Transak’s KYC provider, ID verification during KYC now asks iOS users for Motion & Orientation access, together with camera access. The provider uses the device’s motion sensors as an extra check against fraud.

If you embed Transak in your own iframe, add the motion sensor permissions to the iframe’s allow attribute. Without them, iOS users can’t complete ID verification.

What Changed

BeforeNow
Permissions asked during ID verification on iOSCameraCamera, and Motion & Orientation
iframe allow attributecamera; microphone; paymentcamera; microphone; payment; accelerometer; gyroscope; magnetometer

Inside an iframe, iOS shows the Motion & Orientation prompt only when the iframe allows the motion sensors (accelerometer, gyroscope and magnetometer). If they are missing, iOS never shows the prompt, and the user gets stuck at the ID verification step.

Who Is Affected

IntegrationiOS (Browser)iOS (WebView)Android (WebView)
iFrame (single or double embed)Action required
Add the motion sensors to allow.
No changeNo change
JavaScript SDKAction required
Update the JavaScript SDK to version 1.0.1 or later.
No changeNo change
RedirectionNo change
The browser shows the prompt.
No changeNo change
React NativeNo change
The app doesn’t show the prompt.
No changeNo change
Headless KYCAction required
Update the Transak UI SDK to version 0.11.1 or later.
No changeNo change

JavaScript SDK and Headless KYC: update the JavaScript SDK to version 1.0.1 or later, and the Transak UI SDK for Headless KYC to version 0.11.1 or later.

What to Do

1

Update the iframe allow attribute

Add accelerometer; gyroscope; magnetometer to the allow attribute of the iframe that loads the Transak widget:

<iframe
src="https://global.transak.com/?apiKey=<YOUR_API_KEY>&sessionId=<YOUR_SESSION_ID>"
allow="camera; microphone; payment; accelerometer; gyroscope; magnetometer"
style="height: 100%; width: 100%; border: none">
</iframe>

See Single Embed iFrame.

2

Double embed: update both iframes

If Transak loads inside an iframe that is itself inside another iframe, add the same allow attribute to both the outer and the inner iframe. See Double Embed iFrame.

3

Test on an iOS device

In staging, open your integration on an iOS device in Safari or another browser, such as Chrome. Start KYC with a test account and check that:

  • At the ID verification step, iOS shows the Motion & Orientation Access prompt.
  • After you tap Allow, ID verification completes.

What the User Sees

At the ID verification step, iOS asks the user to allow Motion & Orientation Access. When the user taps Allow, ID verification continues as before.

If the user denies access: ID verification can’t be completed. iOS asks only once for each website, so the user must allow Motion & Orientation Access for the website in their iOS settings, then try again.

References

Need Assistance?