-
Notifications
You must be signed in to change notification settings - Fork 534
Help, I kept getting UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'manifest' of undefined after defining host for universal links #134
Comments
Exact same issue here. Did you manage to solve it? |
Hi mate, Well yes and no. Yes because I did manage to fix it but no because apparently the problem was not caused by the universal links plugin itself. The problem was the result of me changing the cordova project package name from Eventually I had to rename the new package name back to the old one which is Link to my stackoverflow post below right here: Cheers mate, hope this helps you a bit. |
That's an add odd reason for the error; I don't believe I've made any changes to my widget id |
yeah it's very weird isn't it haha. I honestly have no idea to this day what the error really means. It's not exactly informative as well which makes it harder for us to pinpoint why the error got produced in the first place. Cheers mate, let me know how it goes yeah? |
Sadly that does seem to be a trend. I'm in no position to complain, this being open source and all, but a lot of my recent headaches have been due to confusing or misleading error messages. I hope they'll make it a priority at one point, until then I'll just do my best to avoid them. Thanks for your help though. I'm currently reconstructing my project, so far without errors. I may just try waiting for a fix, or avoid deep linking all together. Here's hoping that it just works when I get to testing though |
No mate, let's try to fix it haha. How exactly did you apply the universal links plugin into your project? Let me start with my project first, for me:
That's all there is to it mate, that's all I did. Once I did The outpout on my google chrome web browser console by the
|
With a slight (irrational) fear I'll try following your steps here when I'm at that point in my project rebuilt. Crossing my fingers I'll see that beautiful "build succesful!" this time |
yeah let me know how it goes :) |
hello guys did you manage to solve it? |
I'm also facing same issue. Any solution anyone? |
for now, i just removed the link and suddenly everything is working fine, it's extremely weird but for my current implementation it doesn't need them |
@mba3gar Which link? You mean one in config.xml ? |
yes the host name= and where you insert the dynamic links parts just remove the whole xml tag |
@mba3gar ok thanks, will try. |
@mba3gar Yes, it seems plugin works, yet it complains about the missing On the other hand, redirection doesn't give me Facebook login page then it ends on its own and when redirection/popup ends, my app doesn't get credentials, I'll check that out. |
@bogacg consider the following function to login via facebook firebase.auth().signInWithPopup(provider).then(res =>{ replace signin with redirect to sign in with popup please share with me your firebase version if it's 4.8.1 or 4.8.2 |
I've tried it with 4.8.0 & 4.8.2. When I check console I see this error:
I'll try uninstall and re-install cordova plugins, if no luck then cancel this and use native Facebook/Google plugins. |
Damn guys I didn't know that many people are getting the same error. I can't help you guys much though because my problem was because I changed the package name, but that's it. |
I'm with the same issue, does someone know any workaround? |
Apologies for the late response. |
hey, @runezor |
Same issue here, I'm getting the error and I have not changed my app Id at all. I have tried adding the android-packageName attribute, but it's still giving me the error. I have been following the firebase-cordova instructions, I don't know if anyone else has the issue using these? |
@GeorgeBarnard no we are still struggling with the same problem but you better use the following firebase.auth().signInWithPopup(provider).then(res =>{ |
Yeah, thanks! I tried with pop-ups, and it seems to work, but no information makes it back to the application once the user has logged in. And as you mentioned before, there is no re-direct. I think i'll make do with email auth until a fix has been found. |
@GeorgeBarnard can you please share with me the code once you are done? |
Sure, what do you want/need to see? I have been trying to get auth working in-app all day with no luck what-so-ever. |
Hi guys, like you have many problems with signInWithPopup and signInWithRedirect, but I found this article: https://blog.ionicframework.com/ionic-firebase-facebook-login/ |
Android Studio project detected I got that error too, any helps please :-( |
I recommend using native plugins instead of this one. |
@bogacg what would you recommend? |
@donvie all these replies because we are all facing the same problem and we are trying to find a workaround for it @developerjaag in this case you have to fill in the input field of the login with facebook credentials instead of a popup with a redirect so what if you have a 2 step verification enabled? it doesn't work |
@GeorgeBarnard Although process is more tedious, unless this plugin gets fixed we have no other choice it seems. Here are the resources I've read (one warning, some steps might have slightly changed, you'll notice):
Note: I had several issues during build and execution. Depending on your platform/versions you may or may not run into them too. Not subject to this post, and you can find answers with search, just make sure you are searching correct error messages. |
@bogacg Thanks for this, informative articles. But you are right, they are fairly tedious. Hopefully a fix for this plugin comes before the need to change. |
Hey guys. Making this change in 'cordova-universal-links-plugin/hooks/lib/android/manifestWriter.js' fixed this issue for me: |
@joughbagh I just have a simple question does in the following universal links did you change the path url too? or you kept it the same? |
@joughbagh Thank you, my problem is solved |
@joughbagh Amazing thank you, solved this problem for me. Revealed many more in the process. @mba3gar Have you managed to get auth working in-app? |
@GeorgeBarnard yea sure but i changed few things in my code from Popup to sendRedirect |
@mba3gar are you using sign in with facebook/google. I no longer have the manifest error, and the project builds fine, however I have a new error:
Did you run into anything like this? I know this has gone slightly off topic, but I am at loss. |
Thanks guys Its working now :-) |
@GeorgeBarnard just check that you are using Https links in this universal links tag can you please share with me your links? |
@joughbagh thanks man. it worked |
@mba3gar Sure, Link. The blacked out text is simply the App name. Does anything look wrong here? |
@GeorgeBarnard mate, i have the same configuration as well for the universal link tags but the only difference is that am putting this tag directly under author |
hey guys, thaks for resolve this error! ... but when i run in android i have this error with the gradle. any solution? thanks :(. :app:transformClassesWithDexBuilderForDebug FAILURE: Build failed with an exception.
BUILD FAILED in 10s |
@joughbagh Thanks for the info. It worked great with the latest Cordova. |
why still someone not merge @joughbagh commit? it really helpful |
hey guys , i still have the problem here, and i cant find any file in the hooks just read.me, anyone can help me? |
@AsmisAlan sometimes i had "DexArchiveBuilderTransform"-Errors in the past, which could be resolved by using the android platform with version 6.3.0. |
@dorman99 here you are |
do i need to inject? or do something to get the plugin files ? i still cant find it |
@joughbagh Thank you! It worked for me also. |
👋 Hi! Thank you for your interest in this repo. 😢 We are not using nordnet/cordova-universal-links-plugin anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork. 🔒 This will now be closed & locked. ℹ️ Please see #160 for more information. |
I have no idea what happened, one second the universal links plugin was working just fine and then suddenly now whenever I tried to define a host in the config.xml file I always got this error:
(node:xxxxx) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'manifest' of undefined
as a result of me doing "cordova run android"
However, once I get rid of the
<host name="....."> </host>
section, doing "cordova run android" will build the project with no issue whatsoever. Please help! I don't know what's wrong with this project and the error message is not exactly helping me either.
The text was updated successfully, but these errors were encountered: