# MD for: https://www.mercadopago.com.pe/developers/pt/docs/wallet-connect/account-linking-flow/create-agreement/sniffing-feature.md \# Sniffing feature \*\*Sniffing\*\* is a feature that allows identifying if a user has the Mercado Pago app installed on their mobile device and automatically opens it. If so, when opening the \`agreement\_uri\` in a browser, the \*\*agreement flow\*\* is automatically initiated in the app, without the user needing to log in manually. The sniffing feature simplifies the agreement process, improving the user experience by reducing friction in the agreement. ## Models of sniffing implementation See below for the available models to add to your integration with Mercado Pago. > WARNING > > Attention > > The preferred usage models for sniffing must be coordinated with the \*\*Integrations team at Mercado Pago\*\* to be previously configured in your application. - \*\*App Link (available only for Android devices)\*\*: if the Mercado Pago app is installed on the user's device, it will intercept when navigating to \`agreement\_uri\` and automatically open the agreement flow in the app's context. - \*\*Browser (available for Android and iOS devices)\*\*: when opening the \`agreement\_uri\` in a browser, the page will recognize the context and apply different strategies to try to open the Mercado Pago app, as follows: \- If the user has the app installed, the linking flow will automatically open in the app. - If the user does not have the app installed, they will be directed to the user's default browser, and in this case, the user may need to log in manually. > NOTE > > Important > > Sniffing is only available in the mobile device browser when the user has the Mercado Pago app installed. Depending on the device and operating system, the experience of opening an app from a browser may vary. Generally, user confirmation is required through a system modal. ## Configuration To use the sniffing feature, simply open a link in the mobile device's web browser to activate detection and follow the linking flow. See below how to enable the sniffing feature in your integration. 1\. Envie um \*\*GET\*\* com os atributos necessários, pricipalmente o \`return\_uri\`, ao \_endpoint\_ \[/v2/wallet\_connect/agreements\](https://www.mercadopago.com.pe/developers/pt/reference/wallet\_connect/\_wallet\_connect\_agreements/post) e execute a requisição para \[iniciar uma vinculação\](https://www.mercadopago.com.pe/developers/pt/docs/wallet-connect/account-linking-flow/create-agreement). 1\. Send a \*\*GET\*\* with the necessary attributes, primarily \`return\_uri\`, to the endpoint \[/v2/wallet\_connect/agreements\](https://www.mercadopago.com.pe/developers/en/reference/wallet\_connect/\_wallet\_connect\_agreements/post) and execute the request to \[create an agreement\](https://www.mercadopago.com.pe/developers/en/docs/wallet-connect/account-linking-flow/create-agreement). > WARNING > > Attention > > It is necessary that the URL used in the \`return\_uri\` parameter be for a web resource (deeplinks cannot be used) and \*\*its beginning must match the return URL configured in the seller's application\*\*. For more information, refer to the \[Application details\](https://www.mercadopago.com.pe/developers/en/guides/additional-content/your-integrations/application-details). 2\. The parameters \`agreement\_id\` and \`agreement\_uri\` will be returned. Use an \*\*In-App Browser\*\* component to navigate to \`agreement\_uri\`, the address where the buyer is redirected to grant access to the Mercado Pago wallet to make the payment. According to the operating system, use \*\*Custom Tabs\*\* for Android devices and \*\*SVC\*\* for iOS devices. 3\. After that, use the return URL \`return\_uri\` to complete the linking process. After configuration, it is possible to disable the sniffing feature of your application, and this action must be coordinated with the \*\*Integrations team\*\* at Mercado Pago.