Unity3D + Firebase Invites, email works, sms fails
I am unable to get SMS to work for Firebase invites. Currently, when I use the invite function, it opens my contact list in my phone, I can select a user email address, alter my message if I want and then send. This works.
If I select a phone number however, it just closes my contact list and returns to the app sending nothing. I'm at a loss. I get no error code and the success is returned with no id's included.
public Task<Firebase.Invites.SendInviteResult> SendInviteAsync()
{
Firebase.Invites.Invite invite = new Firebase.Invites.Invite()
{
TitleText = "Test title",
MessageText = "Simple test body",
CallToActionText = "Why you no work?",
DeepLinkUrl = new System.Uri("http://my.app"),
};
return Firebase.Invites.FirebaseInvites.SendInviteAsync(
invite).ContinueWith<Firebase.Invites.SendInviteResult>
(HandleSentInvite);
}
Firebase.Invites.SendInviteResult
HandleSentInvite(Task<Firebase.Invites.SendInviteResult> sendTask)
{
if (sendTask.IsCanceled)
{
Debug.Log("Invitation canceled.");
}
else if (sendTask.IsFaulted)
{
Debug.Log("Invitation encountered an error:");
Debug.Log(sendTask.Exception.ToString());
}
else if (sendTask.IsCompleted)
{
foreach (string id in sendTask.Result.InvitationIds)
{
popMNG.CreatePop("invite info: ", sendTask.Result.ToString() + "
and the id is: " + id, "close", null);
}
}
return sendTask.Result;
}
public void SendInvites() {
SendInviteAsync();
}
What I've tried:
- Verified no special characters
- Verified not going over character limits
- I have my SHA keys all all other features work in the app. (functions, messaging, storage, database, auth and analytics)
- I've tried logging all output but nothing is returned.
unity3d sms firebase-invites
add a comment |
I am unable to get SMS to work for Firebase invites. Currently, when I use the invite function, it opens my contact list in my phone, I can select a user email address, alter my message if I want and then send. This works.
If I select a phone number however, it just closes my contact list and returns to the app sending nothing. I'm at a loss. I get no error code and the success is returned with no id's included.
public Task<Firebase.Invites.SendInviteResult> SendInviteAsync()
{
Firebase.Invites.Invite invite = new Firebase.Invites.Invite()
{
TitleText = "Test title",
MessageText = "Simple test body",
CallToActionText = "Why you no work?",
DeepLinkUrl = new System.Uri("http://my.app"),
};
return Firebase.Invites.FirebaseInvites.SendInviteAsync(
invite).ContinueWith<Firebase.Invites.SendInviteResult>
(HandleSentInvite);
}
Firebase.Invites.SendInviteResult
HandleSentInvite(Task<Firebase.Invites.SendInviteResult> sendTask)
{
if (sendTask.IsCanceled)
{
Debug.Log("Invitation canceled.");
}
else if (sendTask.IsFaulted)
{
Debug.Log("Invitation encountered an error:");
Debug.Log(sendTask.Exception.ToString());
}
else if (sendTask.IsCompleted)
{
foreach (string id in sendTask.Result.InvitationIds)
{
popMNG.CreatePop("invite info: ", sendTask.Result.ToString() + "
and the id is: " + id, "close", null);
}
}
return sendTask.Result;
}
public void SendInvites() {
SendInviteAsync();
}
What I've tried:
- Verified no special characters
- Verified not going over character limits
- I have my SHA keys all all other features work in the app. (functions, messaging, storage, database, auth and analytics)
- I've tried logging all output but nothing is returned.
unity3d sms firebase-invites
add a comment |
I am unable to get SMS to work for Firebase invites. Currently, when I use the invite function, it opens my contact list in my phone, I can select a user email address, alter my message if I want and then send. This works.
If I select a phone number however, it just closes my contact list and returns to the app sending nothing. I'm at a loss. I get no error code and the success is returned with no id's included.
public Task<Firebase.Invites.SendInviteResult> SendInviteAsync()
{
Firebase.Invites.Invite invite = new Firebase.Invites.Invite()
{
TitleText = "Test title",
MessageText = "Simple test body",
CallToActionText = "Why you no work?",
DeepLinkUrl = new System.Uri("http://my.app"),
};
return Firebase.Invites.FirebaseInvites.SendInviteAsync(
invite).ContinueWith<Firebase.Invites.SendInviteResult>
(HandleSentInvite);
}
Firebase.Invites.SendInviteResult
HandleSentInvite(Task<Firebase.Invites.SendInviteResult> sendTask)
{
if (sendTask.IsCanceled)
{
Debug.Log("Invitation canceled.");
}
else if (sendTask.IsFaulted)
{
Debug.Log("Invitation encountered an error:");
Debug.Log(sendTask.Exception.ToString());
}
else if (sendTask.IsCompleted)
{
foreach (string id in sendTask.Result.InvitationIds)
{
popMNG.CreatePop("invite info: ", sendTask.Result.ToString() + "
and the id is: " + id, "close", null);
}
}
return sendTask.Result;
}
public void SendInvites() {
SendInviteAsync();
}
What I've tried:
- Verified no special characters
- Verified not going over character limits
- I have my SHA keys all all other features work in the app. (functions, messaging, storage, database, auth and analytics)
- I've tried logging all output but nothing is returned.
unity3d sms firebase-invites
I am unable to get SMS to work for Firebase invites. Currently, when I use the invite function, it opens my contact list in my phone, I can select a user email address, alter my message if I want and then send. This works.
If I select a phone number however, it just closes my contact list and returns to the app sending nothing. I'm at a loss. I get no error code and the success is returned with no id's included.
public Task<Firebase.Invites.SendInviteResult> SendInviteAsync()
{
Firebase.Invites.Invite invite = new Firebase.Invites.Invite()
{
TitleText = "Test title",
MessageText = "Simple test body",
CallToActionText = "Why you no work?",
DeepLinkUrl = new System.Uri("http://my.app"),
};
return Firebase.Invites.FirebaseInvites.SendInviteAsync(
invite).ContinueWith<Firebase.Invites.SendInviteResult>
(HandleSentInvite);
}
Firebase.Invites.SendInviteResult
HandleSentInvite(Task<Firebase.Invites.SendInviteResult> sendTask)
{
if (sendTask.IsCanceled)
{
Debug.Log("Invitation canceled.");
}
else if (sendTask.IsFaulted)
{
Debug.Log("Invitation encountered an error:");
Debug.Log(sendTask.Exception.ToString());
}
else if (sendTask.IsCompleted)
{
foreach (string id in sendTask.Result.InvitationIds)
{
popMNG.CreatePop("invite info: ", sendTask.Result.ToString() + "
and the id is: " + id, "close", null);
}
}
return sendTask.Result;
}
public void SendInvites() {
SendInviteAsync();
}
What I've tried:
- Verified no special characters
- Verified not going over character limits
- I have my SHA keys all all other features work in the app. (functions, messaging, storage, database, auth and analytics)
- I've tried logging all output but nothing is returned.
unity3d sms firebase-invites
unity3d sms firebase-invites
edited Nov 20 '18 at 19:04
DKinnison
asked Nov 20 '18 at 14:36
DKinnisonDKinnison
8011
8011
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I've experienced the same issue (not on Unity) when there was an issue with my SIM Network (since it sends SMS from your mobile number, and emails from your email address).
Are you running this on a mobile with a valid SIM card inside? If so, it's worth checking if you experience the same issue with the quickstart sample app.
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
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%2f53395369%2funity3d-firebase-invites-email-works-sms-fails%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 experienced the same issue (not on Unity) when there was an issue with my SIM Network (since it sends SMS from your mobile number, and emails from your email address).
Are you running this on a mobile with a valid SIM card inside? If so, it's worth checking if you experience the same issue with the quickstart sample app.
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
add a comment |
I've experienced the same issue (not on Unity) when there was an issue with my SIM Network (since it sends SMS from your mobile number, and emails from your email address).
Are you running this on a mobile with a valid SIM card inside? If so, it's worth checking if you experience the same issue with the quickstart sample app.
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
add a comment |
I've experienced the same issue (not on Unity) when there was an issue with my SIM Network (since it sends SMS from your mobile number, and emails from your email address).
Are you running this on a mobile with a valid SIM card inside? If so, it's worth checking if you experience the same issue with the quickstart sample app.
I've experienced the same issue (not on Unity) when there was an issue with my SIM Network (since it sends SMS from your mobile number, and emails from your email address).
Are you running this on a mobile with a valid SIM card inside? If so, it's worth checking if you experience the same issue with the quickstart sample app.
answered Nov 27 '18 at 11:51


JakeSteamJakeSteam
1,80442335
1,80442335
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
add a comment |
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
1
1
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
I do have a valid sim and have tried on multiple devices. All of which exhibit the same behavior. I am going to do a fresh install and try the sample quick start and get back to this question. Thank you so much for your help.
– DKinnison
Nov 27 '18 at 15:46
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.
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%2f53395369%2funity3d-firebase-invites-email-works-sms-fails%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