Hello Lihan (こんにちは)
Did you check this repo?
https://github.com/motorro/KeepLink
In my case, I'm creating an app with Flutter, but the app link is a native domain, so I'm handling only the part that Flutter receives in common, and the rest of the app link or universal link is handled by each platform.