I'm still a bit confused, so how do I go about calling the objects that aren't related to Plus!?
I have tried "Contacts.GetContact(Email);" (which makes sense to me) but I still get an error
.
I just want to display a toast that contains a contacts email when they sign in lol.
This is the code I am using:
code:
var contactMail = Contacts.GetContact(Email);
var contactName = Contacts.GetContact(Name);
// PLAYS A SOUND WHEN A CONTACT SIGNS IN
function OnEvent_ContactSignin(){
MsgPlus.DisplayToastContact("Sign In","" + contactName + "", "(" + contactMail + ")\nhas signed in.", "", "OnEvent_ToastClicked", contactMail);
}
I can get the toasts to display fine if I make the vars into text strings (just adding " and " around whatever I have there) so I know there is no problem with the toast code, it's just the vars and such.