Issue with Deep Links and Universal Links in Mobile App
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 11:05 PM
Hi Team,
I’m encountering some issues with deep linking and universal linking in my mobile application and would appreciate any assistance.
Here’s a brief overview of the problem:
- When the app is installed on the mobile device:
- The deep link works correctly.
- The universal link, however, is not functioning as expected. It’s returning an error indicating that the Error Loading URL.
- When the app is not installed on the mobile device:
- The universal link leads to a page showing the error: "Page not found. Sorry, the page you are looking for could not be found."
Details:
- The
deepLink
generated works when the app is installed. - The
uniLink
does not seem to be valid, resulting in errors. - When the app is not installed, the universal link directs to a "Page not found" error in the browser.
What I’ve checked:
- The deep link URL format appears correct and works as expected.
- The universal link should theoretically resolve to the correct page, but it's either invalid or not properly set up.
Has anyone experienced similar issues or have any suggestions for troubleshooting or resolving this problem? Any advice on how to properly configure or debug the universal link would be greatly appreciated.
Following is script snippet for generating universal link
var screenSysId = '';
var screen = new GlideRecordSecure("sys_sg_form_screen");
screen.addQuery("name", "Workday Time Off Request");
screen.query();
if (screen.next()) {
screenSysId = screen.sys_id.toString();
}
gs.info('screenSysId: ' + screenSysId);
var recordSysId = '1ef4c4201be30610096c21b0604bcbaa';
var tableName = 'x_snc_uni_inbox_universal_box_external_workday_approvals';
var deepLinkGen = new global.MobileDeepLinkGenerator('Request');
var deepLink = deepLinkGen.getFormScreenLink(screenSysId, tableName, recordSysId);
gs.info('deepLink: ' + deepLink);
var uniLink = deepLinkGen.getUniversalLink(deepLink);
gs.info('uniLink: ' + uniLink);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:29 AM
I have also marked the checkbox enable as suggested by the documentation to redirect the user to the app store if the app is not installed in mobile.
But even after that the deeplink is not working. Whereas it should redirect to the app store if the app is not installed in the mobile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 11:24 AM
@bineetchaubey Were you able to fix this issue. I am having the similar requirement to redirect to App store if app is not installed. Struggling to get the universal link working. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 01:37 AM
Hi @sp32, Yes, it is working with xanadu, deeplink is sufficient to redirect user to app store if app is not installed on mobile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 11:28 AM - edited 09-17-2024 11:28 AM
Thank you. I tested in my personal instance and its working now in Xanadu