Getting client app version
-
Hmm, interesting question - I don't believe that value is currently made available - though I could definitely see it being useful for scripts. I'll discuss with the devs.
In the meantime, you can get this info by creating a post-hook for the Authenticate call.
The script that you hook into the call will receive the appVersion (field "gameVersion" internally) as a STRING in a "data.callingMessage.gameVersion" field.
I've attached a sample script that stores the gameVersion to the session cache (and writes a log message stating the gameVersion received).
To try it:
- Import the script
- Go to Design | Cloud Code | API Hooks and configure the hook as a POST hook for the Authenticate service, Authenticate Operation
- Go to the API Explorer and do a test login. Be sure to set the "appVersion" in the JSON (by default it is "").
- Info Messages, hit [Refresh] to see the log with your app version.
Hope that helps!
Paul.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login