<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Getting client app version]]></title><description><![CDATA[<p dir="auto">Hi!<br />
How can we get the client app version (sometimes referred to as the gameVersion) into a BrainCloud script (for the current session)?</p>
]]></description><link>https://forums.getbraincloud.com/topic/68/getting-client-app-version</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 23:28:32 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/68.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Feb 2020 11:10:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Getting client app version on Fri, 28 Feb 2020 09:52:02 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your answer. Yes, it will be nice to have a separate API but for now, the solution suggested by you works for us.</p>
]]></description><link>https://forums.getbraincloud.com/post/233</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/233</guid><dc:creator><![CDATA[madalin]]></dc:creator><pubDate>Fri, 28 Feb 2020 09:52:02 GMT</pubDate></item><item><title><![CDATA[Reply to Getting client app version on Wed, 19 Feb 2020 13:50:59 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">In the meantime, you <em>can</em> get this info by creating a post-hook for the Authenticate call.</p>
<p dir="auto">The script that you hook into the call will receive the appVersion (field "gameVersion" internally) as a STRING in a "data.callingMessage.gameVersion" field.</p>
<p dir="auto">I've attached a sample script that stores the gameVersion to the session cache (and writes a log message stating the gameVersion received).</p>
<p dir="auto">To try it:</p>
<ul>
<li>Import the script</li>
<li>Go to <strong>Design | Cloud Code | API Hooks</strong> and configure the hook as a <strong>POST</strong> hook for the <strong>Authenticate</strong> service, <strong>Authenticate</strong> Operation</li>
<li>Go to the <strong>API Explorer</strong> and do a test login. Be sure to set the "appVersion" in the JSON (by default it is "").</li>
<li><div class="plugin-markdown"><input type="checkbox" checked="true" />Info Messages, hit [Refresh] to see the log with your app version.</div></li>
</ul>
<p dir="auto">Hope that helps!</p>
<p dir="auto">Paul.</p>
<p dir="auto"><a href="/assets/uploads/files/1582120243652-logincomingappversion.ccjs">LogIncomingAppVersion.ccjs</a></p>
]]></description><link>https://forums.getbraincloud.com/post/226</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/226</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Wed, 19 Feb 2020 13:50:59 GMT</pubDate></item></channel></rss>