After working diligently to establish deeplinks for my Ionic 4 iOS application, I meticulously followed a series of steps to achieve this goal:
I uploaded an Apple site association file to the web version of the app, ensuring the utilization of the precise bundle ID and App ID prefix obtained from the Certificates, Identifiers & Profiles section on apple.com
I confirmed the website URL's validity using the , obtaining a flawless 5/5 green results validation
In addition, I activated associated domains in both Xcode and within the Apple Developer environment for the application
Within the code of the app components, I incorporated the subsequent code :
const subDeepLinks = this.deeplinks.route({ '/verify/:code': VerifyPage, '/reset-password/:token': ResetPasswordPage, }).subscribe((match: any) => { this.zone.run(() => this.router.navigate([match.$link.path])); } });
Furthermore, here is the comprehensive list of deeplink variables extracted from package.json
"ionic-plugin-deeplinks": {
"URL_SCHEME": "<my-domain-name>",
"DEEPLINK_SCHEME": "https",
"DEEPLINK_HOST": "<my-domain-name>"
}
Following these iterations, I conducted a trial run using the iPhone simulator by creating a contact with a URL that should ideally direct me to the application. However, upon clicking it, I found myself redirected to the web version instead.
Any assistance offered will be greatly valued. Many thanks!