Im trying to use the message system is GS. I send Message requests to friends and responses, as well as able to list them but im having trouble accessing the messages themselves from specific users.
This is what im using, and i get nothing in return.
new ListMessageRequest().Send((deetResponse)=>{
foreach (var messages in deetResponse.MessageList){
if (messages.GetString("FromId").ToString() == challenge.Challenger.Id){
did = messages.GetString("message").ToString();
Debug.Log(messages.GetString("FromId").ToString());
Debug.Log(did);
}}});
Best Answer
C
Customer Support
said
about 8 years ago
Hi Test,
Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?
Shane
1 Comment
Customer Support
said
about 8 years ago
Answer
Hi Test,
Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?
Test Account
Hi,
Im trying to use the message system is GS. I send Message requests to friends and responses, as well as able to list them but im having trouble accessing the messages themselves from specific users.
This is what im using, and i get nothing in return.
Hi Test,
Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?
Shane
Customer Support
Hi Test,
Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?
Shane
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics