Capacitor plugin for Firebase Dynamic Links
npm i @turnoutt/capacitor-firebase-dynamic-links
In file android/app/src/main/java/**/**/MainActivity.java
, add the plugin to the initialization list:
import com.turnoutt.firebase.dynamiclinks.CapacitorFirebaseDynamicLinks;
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
add(CapacitorFirebaseDynamicLinks.class);
}});
For advanced options please refer https://firebase.google.com/docs/dynamic-links/android/create
- Configure your app to use dynamic links https://firebase.google.com/docs/dynamic-links/ios/receive
None
Add this method when the app starts to listen for the dynamic link.
CapacitorFirebaseDynamicLinks.addListener('deepLinkOpen', (data: { url: string }) => {
Implement your navigation handler
})
This method is used to create a new dynamic link.
This method is used to create a new dynamic short link.