Firebase Dynamic Links not working when app is closed

I’ve been working to include Dynamic Links in my app. I have set it up so that links can be generated correctly, and received correctly, but they only work when the app is open and in the background. If the app is closed completely, the link will just open the app.

4 Likes

I found a solution to our problem and it works for me. We have to use onDynamicLink and getDynamicLink too like this:

initDynamicLinks(){
console.log(‘initDynamicLinks’);
this.firebaseDynamicLinks.onDynamicLink().subscribe(
async data => {
console.log(‘onDynamicLink’);
await this.handleDinamicLink(data);
}
);
this.firebaseDynamicLinks.getDynamicLink().then(
async (data) => {
console.log(‘getDynamicLink’);
await this.handleDinamicLink(data);
}
);
}