- onymosDeepLink.createDeepLink
- onymosDeepLink.onDeepLink
FUNCTIONS LIST
onymosDeepLink.createDeepLink
Function for creating new deep links that will automatically copy the link to the users clipboard.
OnymosDeepLink.createDeepLink(
{
page: 'example',
referrer: 'user ID'
},
(url) => {
console.log(url);
},
(error) => {
console.log(error);
},
{
title: 'example',
descriptionText: 'example description',
imageURL: 'exampleUrl'
}
);
String
A page name to identify the location you want to send the user.
String
A user ID to identify who created the deep link.
Function
Function that will be called when the new link is made.
Function
Function that will be called when an error occurs.
Object
In the options, you can specify a title, description, and image to be displayed when the link is shared.
onymosDeepLink.onDeepLink
Sets up callback function that will be called when a user clicks on a deep link. In your Ionic Angular apps, make sure to make this call in your app.component.ts file.
OnymosDeepLink.onDeepLink(
(payload) => {
console.log(payload);
},
(error) => {
console.log(error);
}
);
Function
Function that will be called when the new link is made.
Function
Function that will be called when an error occurs.