Closed sukhcha-in closed 2 years ago
It was having some conflicts with AppLinks
package, so wrapped both initial links in try catch.
try {
//Cold Boot shared links
SharedMedia? media = await sharedLinks.getInitialSharedMedia();
if (media != null && media.content != null) {
print('Cold Boot shared links');
handler(media.content.toString());
}
} catch (e) {
log(e.toString());
}
try {
//Cold Boot applinks
final initialAppLink = await appLinks.getInitialAppLink();
if (initialAppLink != null) {
print('Cold Boot applinks');
handler(initialAppLink.toString());
}
} catch (e) {
log(e.toString());
}
Hi. I encountered the same problem while using this package in an existing app but I am not using AppLinks. I think it is also a conflict with another package because it works just fine on a newly created app. Any idea how to debug this?
I'm getting this exception on Android specifically.
Handler: