Skip to main content

🔗 Custom URL handler

Tags: Android

There are scenarios where you need complete control over the behavior of hyperlink actions within your application. The method described below enables you to override the default URL handler. By setting a new URL handler, the Gleap framework will no longer manage URL openings automatically. Instead, it will invoke your custom callback function, giving you the freedom to handle URL interactions according to your specific requirements.

Configure the URL handler

Gleap.getInstance().registerCustomLinkHandler(new CustomLinkHandlerCallback() {
@Override
public void invoke(String url) {
// Insert your URL handling logic here
}
});