You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your plugin in a Cordova app.
My problem is the url sent in email and sms. If the app is already installed, the plugin receives the invite without problem.
If the app isn't installed, i'm redirect to Apple/Play Store but, when i open app, plugin doesn't receives the invite.
The problem seems to be in the coding of the link executed by firebase (perhaps!).
I've found a workaround for invites sent by e-mail using emailHtmlContent:
FirebaseInvites.sendInvitation(
{
title: "Invites friends!", // mandatory, see the screenshots for its purpose
message: "My Text!",
deepLink: "myapp://deeplink",
emailSubject: "Email Object",
emailHtmlContent: "<a href='https://MY_LINK'>DOWNLOAD</a>", // *** WORKAROUND ***
androidClientID: ".......",
iosClientID: "......."
},
function (result) {
console.log("Sent " + result.count + " invites");
console.log("Invitation ID's: " + JSON.stringify(result.invitationIds));
},
function (msg) {
console.log(msg);
}
);
So, the link works in email (if app isn't installed, i'm redirect to Apple/Play Store and i receive invite when i open app).
The problem persists with sms. I've found another workaround for this:
FirebaseInvites.sendInvitation(
{
title: "Invites friends!", // mandatory, see the screenshots for its purpose
message: "My Text! https://is.gd/xxxxx", // *** WORKAROUND ***
deepLink: "myapp://deeplink",
emailSubject: "Email Object",
emailHtmlContent: "<a href='https://MY_LINK'>DOWNLOAD</a>",
androidClientID: ".......",
iosClientID: "......."
},
.....
Adding a short url in 'message', i receive it in sms text and it work properly (if app isn't installed, i'm redirect to Apple/Play Store and i receive invite when i open app). But sms contains 2 link: the link i added and the link added by Firebase (this does not work).
Is there a way to hide the firebase link?
Sorry for my english and thanks in advance to everyone
The text was updated successfully, but these errors were encountered:
I'm using your plugin in a Cordova app.
My problem is the url sent in email and sms. If the app is already installed, the plugin receives the invite without problem.
If the app isn't installed, i'm redirect to Apple/Play Store but, when i open app, plugin doesn't receives the invite.
The problem seems to be in the coding of the link executed by firebase (perhaps!).
I've found a workaround for invites sent by e-mail using emailHtmlContent:
So, the link works in email (if app isn't installed, i'm redirect to Apple/Play Store and i receive invite when i open app).
The problem persists with sms. I've found another workaround for this:
Adding a short url in 'message', i receive it in sms text and it work properly (if app isn't installed, i'm redirect to Apple/Play Store and i receive invite when i open app). But sms contains 2 link: the link i added and the link added by Firebase (this does not work).
Is there a way to hide the firebase link?
Sorry for my english and thanks in advance to everyone
The text was updated successfully, but these errors were encountered: