[Fixed] iOS multiplayer -- match status value conflicts with API page

I think there are missing/misleading information on API page:

URL1 (match) = http://docs.coronalabs.com/daily/api/type/GameNetwork/match.html

URL2 (status) = http://docs.coronalabs.com/daily/api/type/GameNetwork/status.html

When I go to URL1 and tap on link to “status”, it sends me to URL2, which lists values for the “status” as follows:

invited

declined

matching

active

done

unknown

The problem is, when I print the status value as I test my app, I get only the following three so far:

ended  <-- not included in API page

open   <-- not included in API page

matching  <-- included in API page

I have a feeling that URL2 shows the “status” value of participant object instead of match object.  I haven’t verified my suspicion, but it seems more likely to me.

Anyhow, I’d like to see the list of “status” value that  match object returns.  Just the three of the above, or are there any other value that I should look out for?

Naomi

P.S.  I submitted the comment directly to API page regarding this earlier.  Hopefully, the pages will be updated/correctly…

Edit:  I confirm that URL2 lists the “status” value of participant.  I got all of them except for “unknown”.

I just realized that the participant object returns " declinded" status (instead of “declined” although it says “declined” is the value on API doc page.)  

I was blind for a while and didn’t understand why my code wasn’t working, until I spotted the terminal output showing  declinded  and not declined.  How frustrating.

Urrmmm… I guess I just have to go with if “declinded” or “declined” to cover both – just in case the value changes from “declinded” to “declined” (because I have a strong suspicion that somewhere along the way, the typo was introduced, and it somehow will be corrected at some point eventually without my notice…)

Naomi

I think that’s a very simple to fix bug. Should be fixed by CL. Good catch.

Seems like Daily build #1193 is fixing this spelling typo.

  • iOS: Fixed the spelling for game center participant status from declinded to declined

Great.  Thanks, @ksan, for letting me know.

Naomi

I just realized that the participant object returns " declinded" status (instead of “declined” although it says “declined” is the value on API doc page.)  

I was blind for a while and didn’t understand why my code wasn’t working, until I spotted the terminal output showing  declinded  and not declined.  How frustrating.

Urrmmm… I guess I just have to go with if “declinded” or “declined” to cover both – just in case the value changes from “declinded” to “declined” (because I have a strong suspicion that somewhere along the way, the typo was introduced, and it somehow will be corrected at some point eventually without my notice…)

Naomi

I think that’s a very simple to fix bug. Should be fixed by CL. Good catch.

Seems like Daily build #1193 is fixing this spelling typo.

  • iOS: Fixed the spelling for game center participant status from declinded to declined

Great.  Thanks, @ksan, for letting me know.

Naomi