Deep link appium on simulator

i try this for android and ios but it doesn't work

HashMap<String, String> params = new HashMap<>();
params.put(“url”, "deeplink url ");
params.put(“package”, “package name”);

        // Execute the deep link
        ((JavascriptExecutor) driver).executeScript("mobile:deepLink", params)


driver.get("your_app://" + linkTxt);

works both ios (from 14.3 xCode) and android

1 Like

when i try it , i got this error
An unknown server-side error occurred while processing the command. Original error: Error attempting to start URI. Original error: Error: Starting: Intent { act=android.intent.action.VIEW dat=deeplink pkg=packageName }

Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=deeplink flg=0x10000000 pkg=packageName }

Build info: version: ‘4.13.0’, revision: ‘ba948ece5b*’

System info: ‘Mac OS X’, os.arch: ‘aarch64’, os.version: ‘14.1.1’, java.version: ‘21.0.2’