Cordova Firebase analytics error with custom URL scheme enable

288 views
Skip to first unread message

Pchand

unread,
Mar 8, 2018, 3:54:39 PM3/8/18
to Firebase Google Group

I have a cordova app and trying to use Firebase analytics. I install the plugin 'cordova-plugin-firebase-analytics' and it recording . However, I am getting a Deeplink error and the custom url scheme  does not work . 

When I select custom URL with arguments  I get back to my app but arguments are missing.

Here is the message I see in iOS

    Deep Link does not contain valid required params. URL params: {
        fileName = "andyadams.docx";
        fileSize = 13993;
        sourceName = dropbox;
    }

This is one of custom url scheme that I used

    jobxs://jobs/398056/apply1/upload?downloadUrl=https%3A%2F%2Fdl.dropboxusercontent.com%2F1%2Fview%2F9lo39fdcm3d%2Fandyadams10.docx&fileName=andyadams10.docx&fileSize=13993&sourceName=dropbox

As I mention, selecting the link  redirects me to the app but no arguments is sent . If I remove the cordova-plugin-firebase-analytics then the custom URL scheme works

Please let me know how to resolve this issue

Thanks for your help



Ian Barber

unread,
Mar 8, 2018, 4:41:04 PM3/8/18
to Firebase Google Group
Might be worth filing a bug on the plugin - it sounds like it is isn't passing through the open URLs properly to other handlers.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3efcd520-fac8-4d59-b62c-5828aa000136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pb

unread,
Mar 21, 2018, 12:18:41 AM3/21/18
to Firebase Google Group
Thanks.. I removed the plugin and just install firebase using CocoaPod as suggested in the documentation and I get the same issue,,, So, it does not seems to be the plugin but the Firebase core that is masking the argument,,,

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

Ian Barber

unread,
Mar 26, 2018, 5:54:41 PM3/26/18
to Firebase Google Group
Ah I see, sorry, I didn't notice the error message before. That's actually just debug for campaign tracking, it doesn't effect performance. So the error message isn't a problem.

Is your concern the error message, or is there another way in which your code is not working? 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.

Pchand

unread,
Apr 1, 2018, 10:02:44 PM4/1/18
to Firebase Google Group
Thanks for your response but let me explain...

As I mentioned,  my app is  Cordova  based and I  using custom URL scheme,, This is working by using this plugin "https://github.com/EddyVerbruggen/Custom-URL-scheme".

 Now I want to used Firebase analytics . So, I follow the instruction here -> https://firebase.google.com/docs/analytics/ios/start and it works.. However, after installing Firebase the custom scheme does not work..

I see this message in the Firebase analytics console

    Deep Link does not contain valid required params. URL params: {
        fileName = "andyadams.docx";
        fileSize = 13993;
        sourceName = dropbox;
    }

The custom link open my but my :handleOpenURL" is not getting call and no argument is pass back to the app... If I de-install Firebase then custom URL scheme works

I need both Firebase analytics and custom url.. Can you give me some suggestion on how to resolve this issue 
Thanks
Reply all
Reply to author
Forward
0 new messages