Dynamic link is not cleared after retrieving
In my flutter app I'm using the firebase dynamic links plugin.
In the main function the retrieveDynamicLink
is called and the link is handled, as well as every time the app is resumed a lifecycle listener calls retrieveDynamicLink
again and handles the link.
The plugin calls the android method: getDynamicLink(registrar.activity().getIntent())
, and the documentation states that this method should clean the intent to make any other call return null until the app is open/resumed from another link.
But that's not what is happening, not always at least.
If I open the app from a dynamic link, switch to another app, and then go back to the app, the retrieveDynamicLink
call returns the link again.
If I originally open the app from its icon that does not happen.
Does anyone have any suggestion?
I'm using firebase_dynamic_links: ^0.1.0+1
on Flutter 0.11.7
android firebase flutter firebase-dynamic-links
add a comment |
In my flutter app I'm using the firebase dynamic links plugin.
In the main function the retrieveDynamicLink
is called and the link is handled, as well as every time the app is resumed a lifecycle listener calls retrieveDynamicLink
again and handles the link.
The plugin calls the android method: getDynamicLink(registrar.activity().getIntent())
, and the documentation states that this method should clean the intent to make any other call return null until the app is open/resumed from another link.
But that's not what is happening, not always at least.
If I open the app from a dynamic link, switch to another app, and then go back to the app, the retrieveDynamicLink
call returns the link again.
If I originally open the app from its icon that does not happen.
Does anyone have any suggestion?
I'm using firebase_dynamic_links: ^0.1.0+1
on Flutter 0.11.7
android firebase flutter firebase-dynamic-links
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35
add a comment |
In my flutter app I'm using the firebase dynamic links plugin.
In the main function the retrieveDynamicLink
is called and the link is handled, as well as every time the app is resumed a lifecycle listener calls retrieveDynamicLink
again and handles the link.
The plugin calls the android method: getDynamicLink(registrar.activity().getIntent())
, and the documentation states that this method should clean the intent to make any other call return null until the app is open/resumed from another link.
But that's not what is happening, not always at least.
If I open the app from a dynamic link, switch to another app, and then go back to the app, the retrieveDynamicLink
call returns the link again.
If I originally open the app from its icon that does not happen.
Does anyone have any suggestion?
I'm using firebase_dynamic_links: ^0.1.0+1
on Flutter 0.11.7
android firebase flutter firebase-dynamic-links
In my flutter app I'm using the firebase dynamic links plugin.
In the main function the retrieveDynamicLink
is called and the link is handled, as well as every time the app is resumed a lifecycle listener calls retrieveDynamicLink
again and handles the link.
The plugin calls the android method: getDynamicLink(registrar.activity().getIntent())
, and the documentation states that this method should clean the intent to make any other call return null until the app is open/resumed from another link.
But that's not what is happening, not always at least.
If I open the app from a dynamic link, switch to another app, and then go back to the app, the retrieveDynamicLink
call returns the link again.
If I originally open the app from its icon that does not happen.
Does anyone have any suggestion?
I'm using firebase_dynamic_links: ^0.1.0+1
on Flutter 0.11.7
android firebase flutter firebase-dynamic-links
android firebase flutter firebase-dynamic-links
asked Nov 21 '18 at 18:45
Dario IelardiDario Ielardi
181112
181112
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35
add a comment |
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35
add a comment |
1 Answer
1
active
oldest
votes
I've already fixed the issue on my repo, could you try using this config in pubspec.yaml
:
firebase_dynamic_links:
git:
url: https://github.com/diegoveloper/plugins
path: packages/firebase_dynamic_links
Let me know if it works
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418686%2fdynamic-link-is-not-cleared-after-retrieving%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I've already fixed the issue on my repo, could you try using this config in pubspec.yaml
:
firebase_dynamic_links:
git:
url: https://github.com/diegoveloper/plugins
path: packages/firebase_dynamic_links
Let me know if it works
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
add a comment |
I've already fixed the issue on my repo, could you try using this config in pubspec.yaml
:
firebase_dynamic_links:
git:
url: https://github.com/diegoveloper/plugins
path: packages/firebase_dynamic_links
Let me know if it works
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
add a comment |
I've already fixed the issue on my repo, could you try using this config in pubspec.yaml
:
firebase_dynamic_links:
git:
url: https://github.com/diegoveloper/plugins
path: packages/firebase_dynamic_links
Let me know if it works
I've already fixed the issue on my repo, could you try using this config in pubspec.yaml
:
firebase_dynamic_links:
git:
url: https://github.com/diegoveloper/plugins
path: packages/firebase_dynamic_links
Let me know if it works
answered Nov 21 '18 at 21:50
diegoveloperdiegoveloper
10.4k11528
10.4k11528
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
add a comment |
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Unfortunately the bug is still there. When I originally open the app from the link, then every call to retrieveDynamicLink returns the link again.
– Dario Ielardi
Nov 22 '18 at 12:44
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
Yes, looks like it's an issue with the current android firebase dynamic link library.
– diegoveloper
Nov 22 '18 at 15:24
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418686%2fdynamic-link-is-not-cleared-after-retrieving%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Yeah, I have the same issue, I remember when I did my test the firebase_dynamic_link was using this library: com.google.firebase:firebase-invites:16.0.1 , but now it's updated to api 'com.google.firebase:firebase-dynamic-links:16.1.2' , maybe there is an issue with that version. I'll open a new flutter issue
– diegoveloper
Nov 21 '18 at 21:28
well I see there is an open issue about that: github.com/flutter/flutter/issues/20944 @Dario lelardi , could you repo the issue on iOS? or only happens on android?
– diegoveloper
Nov 21 '18 at 21:31
new issue opened here: github.com/flutter/flutter/issues/24629
– diegoveloper
Nov 21 '18 at 21:35