This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Description
Hello
What did you do?
I installed the plugin successfully then created my own URL Scheme. When I type my own URL Scheme in a browser, it goes to the app correctly but handleOpenURL method is not called and I can't get anything.
What did you expect to happen?
I expected, handleOpenURL ran and I can get the App URL in App Component.
What happened instead?
The method,handleOpenURL, was not raised.
Your Environment
NativeScript version: 5.4.0
Java version:
NodeJS and NPM version: NodeJS: v8.9.1
Platform(s) running: iPhone 6s iOS 12.3.1
Demo Project
N/A
app.component
import { Component, OnInit } from "@angular/core";
import { NavigationEnd, Router } from "@angular/router";
import { AppURL, handleOpenURL } from "nativescript-urlhandler";
@Component({
moduleId: module.id,
selector: "ns-app",
templateUrl: "app.component.html",
})
export class AppComponent implements OnInit {
constructor(
private router: Router,
) {}
public ngOnInit() {
handleOpenURL((appURL: AppURL) => {
console.log("Got the following appURL", appURL);
});
}
}