Android
In this section, you will find how to implement the webview on Android for using the Unico IDPay product.
For the Android use case, using a Webview is recommended. After creating the transaction and obtaining the transaction link, the following implementation is recommended:
In your regular flow (where IDPay is integrated), you will open the Webview with the link generated via API.
You can customize how this opening works in the way that best fits your application.
You will monitor if there is a URL change (to the
redirectUrl
) and then close the Webview.
Opening a Webview is quite simple:
To control when it is necessary to close the Webview, it can be done as follows:
To do this, it is necessary to enable permissions in the Android Manifest:
Example of how it should look in the app:
It is necessary to have some permissions to function correctly, such as:
Camera
Geolocation
Still need help?
Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.
Last updated
Was this helpful?