<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Shephertz Community - Recent questions in Unity</title>
<link>http://forum.shephertz.com/?qa=questions/products/app42-cloud-api-baas/unity</link>
<description>Powered by Question2Answer</description>
<item>
<title>What are trial subscribtion restrictions.</title>
<link>http://forum.shephertz.com/?qa=11610/what-are-trial-subscribtion-restrictions</link>
<description>Hello, I'd like to know what are trial subscription restriction? How many API calls can I do and so on. Also as I found out threre is some kind of indie subscription for non-comercial apps. I read indie subscription has 1 million API calls. I don't need a lot of API calls for my app, because it is just demo app, where I show some mechanics inclide cloud data storage with app42 services. And I need only one not large JSON file to store. What should I do to get indie subscription, or some kind of free subscription for non-comercial single app.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11610/what-are-trial-subscribtion-restrictions</guid>
<pubDate>Wed, 30 Jun 2021 10:35:08 +0000</pubDate>
</item>
<item>
<title>GetTopNRankersFromFacebook does not return friends' scores</title>
<link>http://forum.shephertz.com/?qa=11592/gettopnrankersfromfacebook-does-not-return-friends-scores</link>
<description>&lt;p&gt;
	I have setup several Test users via Facebook developer account. They are friends of each other. When I tried to get friends' scores using&lt;/p&gt;
&lt;pre class=&quot;brush:java;&quot;&gt;
GetTopNRankersFromFacebook&lt;/pre&gt;
&lt;p&gt;
	. It only returns the user himself.&lt;/p&gt;
&lt;div&gt;
	I have used&amp;nbsp;
	&lt;pre class=&quot;brush:java;wrap-lines:false;&quot;&gt;
user_friends&lt;/pre&gt;
	&amp;nbsp;permission and linked user facebook account. Anything did I miss?&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&lt;pre class=&quot;brush:csharp;&quot;&gt;
    public void FbLogin()
    {
        var perms = new List&amp;lt;string&amp;gt;() { &quot;public_profile&quot;, &quot;email&quot;, &quot;user_friends&quot; };
        FB.LogInWithReadPermissions(perms, AuthCallback);
    }

    private void AuthCallback(ILoginResult result)
    {
        if (FB.IsLoggedIn)
        {
            // AccessToken class will have session details
            var aToken = Facebook.Unity.AccessToken.CurrentAccessToken;

            App42API.Initialize(ConstVariables.APP42_API_KEY, ConstVariables.APP42_SECRET_KEY);
            SocialService socialService = App42API.BuildSocialService();

            socialService.LinkUserFacebookAccount(aToken.UserId, aToken.TokenString, new LinkCallBack());
            scoreBoardService = new ScoreBoardService(ConstVariables.APP42_API_KEY, ConstVariables.APP42_SECRET_KEY);
        }
        else
        {
            Debug.Log(&quot;User cancelled login&quot;);
        }
    }&lt;/pre&gt;
	&lt;p&gt;
		Result:&lt;/p&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
Success Value : {&quot;app42&quot;:{&quot;response&quot;:{&quot;success&quot;:true,&quot;games&quot;:{&quot;game&quot;:{&quot;name&quot;:&quot;Speedy Words&quot;,&quot;scores&quot;:{&quot;score&quot;:{&quot;userName&quot;:&quot;100407165057496&quot;,&quot;value&quot;:2,&quot;createdOn&quot;:&quot;2020-10-26T13:52:03.000Z&quot;,&quot;scoreId&quot;:&quot;_v3sHFvO2uPFR+vv8Jqn06zwgFScw=&quot;,&quot;facebookProfile&quot;:{&quot;name&quot;:&quot;Open Graph Test User&quot;,&quot;id&quot;:&quot;100407165057496&quot;,&quot;picture&quot;:&quot;&lt;a href=&quot;https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=100407165057496&amp;amp;height=50&amp;amp;width=50&amp;amp;ext=1606317087&amp;amp;hash=AeR07F78LainEVBPhHs&quot; rel=&quot;nofollow&quot;&gt;https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=100407165057496&amp;amp;height=50&amp;amp;width=50&amp;amp;ext=1606317087&amp;amp;hash=AeR07F78LainEVBPhHs&lt;/a&gt;&quot;}}}}}}}}&lt;/pre&gt;
&lt;p&gt;
	&lt;span style=&quot;color: rgb(255, 255, 255); font-family: &amp;quot;Proxima Nova Regular&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; white-space: pre; background-color: rgb(46, 48, 53);&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=7675388095392597580&quot; style=&quot;width: 600px; height: 327px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;color: rgb(255, 255, 255); font-family: &amp;quot;Proxima Nova Regular&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; white-space: pre; background-color: rgb(46, 48, 53);&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=6080971527125596343&quot; style=&quot;width: 600px; height: 191px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11592/gettopnrankersfromfacebook-does-not-return-friends-scores</guid>
<pubDate>Mon, 26 Oct 2020 14:47:23 +0000</pubDate>
</item>
<item>
<title>Upload Service (and Avatar Service) fail with null reference exception when uploading.</title>
<link>http://forum.shephertz.com/?qa=11591/upload-service-avatar-service-reference-exception-uploading</link>
<description>&lt;p&gt;
	In my latest attempt I switched over to using the Upload Service for this one, but I tried previously with the Avatar Service and was fairly certain that it was the same error. I get a null reference exception however as near as I can tell none of the values being passed to the upload function are null (see debug values below).&lt;/p&gt;
&lt;p&gt;
	Using Unity 3D and C#.&lt;/p&gt;
&lt;p&gt;
	Error Message:&lt;/p&gt;
&lt;blockquote&gt;
	&lt;div&gt;
		NullReferenceException: Object reference not set to an instance of an object&lt;/div&gt;
	&lt;div&gt;
		StudentEditor.SaveAvatarPortrait (System.String filename, ClassMembership m, UserStudent s) (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:345)&lt;/div&gt;
	&lt;div&gt;
		StudentEditor.SaveAvatarChanges () (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:262)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.Events.InvokableCall.Invoke () (at &amp;lt;3dc54541a2574ac7826a004a212a4332&amp;gt;:0)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.Events.UnityEvent.Invoke () (at &amp;lt;3dc54541a2574ac7826a004a212a4332&amp;gt;:0)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.UI.Button.Press () (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:68)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:110)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:50)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:261)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;
	Here is some debug output on the values being passed:&lt;/p&gt;
&lt;blockquote&gt;
	&lt;div&gt;
		StudentEditor.SaveAvatarPortrait(tlcc-au-nsw-000.tlcc-au-nsw-000-casejustin2023.0000-9999-TESTCLASS)&lt;/div&gt;
	&lt;div&gt;
		Filename: tlcc-au-nsw-000.tlcc-au-nsw-000-casejustin2023.0000-9999-TESTCLASS.png&lt;/div&gt;
	&lt;div&gt;
		Description: Justin's avatar. (Class: 0000-9999-TESTCLASS, School: tlcc-au-nsw-000) [tlcc-au-nsw-000-casejustin2023]&lt;/div&gt;
	&lt;div&gt;
		Stream Length: 74883&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.Debug:Log(Object)&lt;/div&gt;
	&lt;div&gt;
		StudentEditor:SaveAvatarPortrait(String, ClassMembership, UserStudent) (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:340)&lt;/div&gt;
	&lt;div&gt;
		StudentEditor:SaveAvatarChanges() (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:262)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;
	Also from the App42 Log:&lt;/p&gt;
&lt;blockquote&gt;
	&lt;div&gt;
		GetInstance Not Null&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.Debug:Log(Object)&lt;/div&gt;
	&lt;div&gt;
		com.shephertz.app42.paas.sdk.csharp.App42Log:Console(String)&lt;/div&gt;
	&lt;div&gt;
		com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW:GetInstance()&lt;/div&gt;
	&lt;div&gt;
		com.shephertz.app42.paas.sdk.csharp.upload.UploadService:UploadFile(String, Stream, String, String, App42CallBack)&lt;/div&gt;
	&lt;div&gt;
		StudentEditor:SaveAvatarPortrait(String, ClassMembership, UserStudent) (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:346)&lt;/div&gt;
	&lt;div&gt;
		StudentEditor:SaveAvatarChanges() (at Assets/LootAssets/Scripts/Controllers/StudentEditor.cs:262)&lt;/div&gt;
	&lt;div&gt;
		UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;
	Here is the latest version of my code:&lt;/p&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
if (thumbnailTexture != null)
        {
            // Remember currently active render texture
            RenderTexture currentActiveRT = RenderTexture.active;

            // Set the supplied RenderTexture as the active one
            RenderTexture.active = thumbnailTexture;

            // Create a new Texture2D and read the RenderTexture image into it
            Texture2D tex = new Texture2D(thumbnailTexture.width, thumbnailTexture.height);
            tex.ReadPixels(new Rect(0, 0, tex.width, tex.height), 0, 0);

            // Restorie previously active render texture
            RenderTexture.active = currentActiveRT;

            byte[] bytes = tex.EncodeToPNG();
            if (bytes.Length &amp;lt;= 0)
            {
                Debug.LogError(&quot;StudentEditor.SaveAvatarPortrait(&quot; + filename + &quot;) :: bytes array error&quot;);
                return;
            }

            System.IO.Stream stream = new System.IO.MemoryStream(bytes);
            if (stream == null)
            {
                Debug.LogError(&quot;StudentEditor.SaveAvatarPortrait(&quot; + filename + &quot;) :: stream == NULL&quot;);
                return;
            }

            // Upload to App42
            Debug.Log(
                &quot;&amp;lt;color=yellow&amp;gt;StudentEditor.SaveAvatarPortrait(&quot; + filename + &quot;)&amp;lt;/color&amp;gt;\r\n&quot;
                + &quot;Filename: &quot; + filename + &quot;.png\r\n&quot;
                + &quot;Student: &quot; + s.firstName + &quot;\r\n&quot;
                + &quot;Class: &quot; + m.classID + &quot;\r\n&quot;
                + &quot;Stream Length: &quot; + stream.Length + &quot;\r\n&quot;
            );
            uploadService.UploadFile(filename, stream, &quot;image&quot;, s.firstName+&quot;'s avatar. (Class: &quot;+m.classID+&quot;, School: &quot;+s.schoolID+&quot;) [&quot;+s.ssID+&quot;]&quot;, new UploadAvatarPortraitCallBack());
        }&lt;/pre&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11591/upload-service-avatar-service-reference-exception-uploading</guid>
<pubDate>Mon, 19 Oct 2020 02:06:27 +0000</pubDate>
</item>
<item>
<title>Header value contains invalid characters</title>
<link>http://forum.shephertz.com/?qa=11546/header-value-contains-invalid-characters</link>
<description>&lt;p&gt;
	Everything was working fine with very thin code, but it suddenly stopped working and issued the message: Header value contains invalid characters.&lt;/p&gt;
&lt;p&gt;
	InvalidOperationException: Header value contains invalid characters&lt;/p&gt;
&lt;div&gt;
	UnityEngine.Networking.UnityWebRequest.SetRequestHeader (System.String name, System.String value) (at C:/buildslave/unity/build/Modules/UnityWebRequest/Public/UnityWebRequest.bindings.cs:514)&lt;/div&gt;
&lt;div&gt;
	UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2[TKey,TValue] headers) (at C:/buildslave/unity/build/Modules/UnityWebRequestWWW/Public/WWW.cs:111)&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+&amp;lt;Execute&amp;gt;d__6.MoveNext () (at &amp;lt;85575a1ab73c4d6e95c6bfeaefc8478d&amp;gt;:0)&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+&amp;lt;WaitForRequest&amp;gt;d__3.MoveNext () (at &amp;lt;85575a1ab73c4d6e95c6bfeaefc8478d&amp;gt;:0)&lt;/div&gt;
&lt;div&gt;
	UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)&lt;/div&gt;
&lt;div&gt;
	UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW:ExecutePost(String, Dictionary`2, String, Dictionary`2, Dictionary`2, App42CallBack)&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.user.UserService:CreateUser(String, String, String, App42CallBack)&lt;/div&gt;
&lt;div&gt;
	novoTesteCad:novoCad() (at Assets/novoTesteCad.cs:25)&lt;/div&gt;
&lt;div&gt;
	UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.2.15f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11546/header-value-contains-invalid-characters</guid>
<pubDate>Fri, 10 Jan 2020 14:05:03 +0000</pubDate>
</item>
<item>
<title>ErrorCode&quot;:&quot;400&quot;, &quot;appErrorCode&quot;:&quot;2301&quot;</title>
<link>http://forum.shephertz.com/?qa=11530/errorcode-400-apperrorcode-2301</link>
<description>&lt;p&gt;
	Create a test script to send an email:&lt;/p&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
using com.shephertz.app42.paas.sdk.csharp;
using com.shephertz.app42.paas.sdk.csharp.email;
using UnityEngine;

public class enviaEmail : MonoBehaviour
{
    string sendSubject = &quot;Here we are sending an Email&quot;;
    string sendMsg = &quot;Body of message&quot;;

    string emailHost = &quot;smtp.faciltecnologias.com.br&quot;;
    int emailPort = 587;
    string emailId = &quot;financeiro@faciltecnologias.com.br&quot;;
    string password = &quot;ale240471&quot;;
    bool isSSL = true;


    public void enviarEmail()
    {
        if (SingletonController.user != null)
        {

            EmailService emailService = SingletonController.serviceAPI.BuildEmailService();
            emailService.CreateMailConfiguration(emailHost, emailPort, emailId, password, isSSL, new UnityCallBack());
            emailService.SendMail(SingletonController.user.email, sendSubject, sendMsg, emailId, EmailMIME.PLAIN_TEXT_MIME_TYPE, new UnityCallBack());
        }
        else
        {
            print(&quot;Usuário inexistente!&quot;);
        }
    }

    class UnityCallBack : App42CallBack
    {

        public void OnSuccess(object response)
        {
            Email email = (Email)response;
            string jsonResponse = email.ToString();
            print(jsonResponse);
        }

        public void OnException(System.Exception e)
        {
            App42Log.Console(&quot;Exception : &quot; + e);
            Debug.Log(&quot;Exception : &quot; + e);
        }
    }
}&lt;/pre&gt;
&lt;p&gt;
	However two messages are received: the first one informs about the ok setting for the email, but the sending of the email fails informing that the email already exists. Where does he exist? USER's email is another.&lt;/p&gt;
&lt;p&gt;
	Messages Received on Unity3D Console:&lt;/p&gt;
&lt;p&gt;
	{&quot;app42&quot;:{&quot;response&quot;:{&quot;success&quot;:&quot;true&quot;,&quot;email&quot;:{&quot;from&quot;:&quot;financeiro@faciltecnologias.com.br&quot;,&quot;to&quot;:&quot;vendas@faciltecnologias.com.br&quot;,&quot;subject&quot;:&quot;Here we are sending an Email&quot;,&quot;body&quot;:&quot;Body of message&quot;}}}}&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Exception : com.shephertz.app42.paas.sdk.csharp.App42BadParameterException: {&quot;httpErrorCode&quot;:&quot;400&quot;, &quot;appErrorCode&quot;:&quot;2301&quot;, &quot;message&quot;:&quot;Bad Request&quot;, &quot;details&quot;:&quot;The request parameters are invalid. Email id 'financeiro@faciltecnologias.com.br' already exists.&quot;}&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11530/errorcode-400-apperrorcode-2301</guid>
<pubDate>Thu, 19 Dec 2019 00:51:29 +0000</pubDate>
</item>
<item>
<title>Registered Email Validation</title>
<link>http://forum.shephertz.com/?qa=11528/registered-email-validation</link>
<description>&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;tlid-input input&quot; style=&quot;display: flex; position: relative; width: 640px; color: rgb(119, 119, 119); font-family: Roboto, arial, sans-serif; font-size: 16px;&quot;&gt;
	&lt;div class=&quot;source-wrap&quot; style=&quot;position: relative; min-height: 114px; flex-grow: 1; vertical-align: top; z-index: 1; padding-bottom: 56px; border-radius: 0px 0px 0px 8px;&quot;&gt;
		&lt;div class=&quot;input-full-height-wrapper tlid-input-full-height-wrapper&quot; style=&quot;height: 462px;&quot;&gt;
			&lt;div class=&quot;source-input&quot; style=&quot;padding: 20px 0px 0px; position: static; z-index: 0; box-sizing: border-box;&quot;&gt;
				&lt;div class=&quot;source-footer-wrap source-or-target-footer&quot; style=&quot;height: 44px; width: calc(100% - 22px); position: absolute; bottom: 8px; left: 14px;&quot;&gt;
					&lt;div class=&quot;character-count tlid-character-count&quot; style=&quot;display: inline-block; float: right; font-size: 12px; margin-right: 20px; margin-top: 12px;&quot;&gt;
						&lt;div class=&quot;cc-ctr normal&quot;&gt;
							728/5000&lt;/div&gt;
					&lt;/div&gt;
					&lt;div class=&quot;source-footer&quot;&gt;
						&lt;div class=&quot;speech-wrap source-or-target-footer-button left-positioned&quot; style=&quot;display: inline-block; height: 48px; width: 48px; float: left;&quot;&gt;
							&lt;div class=&quot;speech-button goog-toolbar-button&quot; id=&quot;gt-speech&quot; style=&quot;border-radius: 2px; user-select: none; background: none transparent; border: none; outline: none; padding: 0px; height: 36px; color: rgb(68, 68, 68); line-height: 24px; list-style: none; font-size: 11px; font-weight: bold; vertical-align: middle; cursor: default; box-shadow: none; margin: 4px 0px 0px 4px; position: absolute; width: 36px; z-index: 1;&quot;&gt;
								&amp;nbsp;&lt;/div&gt;
						&lt;/div&gt;
						&lt;div class=&quot;src-tts left-positioned ttsbutton jfk-button-flat source-or-target-footer-button jfk-button&quot; style=&quot;border-radius: 0px; cursor: default; font-size: 13px; text-align: center; white-space: nowrap; margin-right: 1px; height: 44px; line-height: 21px; min-width: 0px; outline: 0px; padding: 0px; border: 0px; display: inline-block; width: 44px; box-sizing: border-box; float: left; user-select: none;&quot;&gt;
							&lt;div class=&quot;jfk-button-img&quot; style=&quot;background-repeat: no-repeat; background-image: -webkit-image-set(url(&amp;quot;denied:https://ssl.gstatic.com/translate/1x_mobile.png&amp;quot;) 1x, url(&amp;quot;denied:https://ssl.gstatic.com/translate/2x_mobile.png&amp;quot;) 2x); height: 21px; width: 21px; margin: 9px 0px 0px 12px; vertical-align: middle; background-position: 0px 0px; opacity: 0.55 !important;&quot;&gt;
								&amp;nbsp;&lt;/div&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tlid-results-container results-container&quot; style=&quot;background-color: rgb(245, 245, 245); box-shadow: none; display: flex; flex-direction: column; min-height: 128px; position: relative; width: 640px; border-radius: 0px 0px 8px; color: rgb(119, 119, 119); font-family: Roboto, arial, sans-serif; font-size: 16px;&quot;&gt;
	&lt;div class=&quot;tlid-result result-dict-wrapper&quot; style=&quot;position: relative; flex-grow: 1;&quot;&gt;
		&lt;div class=&quot;result tlid-copy-target&quot; style=&quot;position: static; min-height: 128px; padding: 20px 16px 56px 28px; box-sizing: border-box;&quot;&gt;
			&lt;div class=&quot;result-header&quot;&gt;
				&lt;div class=&quot;starbutton jfk-button-flat jfk-button unstarred&quot; style=&quot;border-radius: 0px; cursor: default; font-size: 13px; text-align: center; white-space: nowrap; margin-right: -10px; height: 21px; line-height: 21px; min-width: 0px; outline: 0px; padding: 9px; border: 1px solid transparent; display: inline-block; float: right; margin-top: -7px; user-select: none;&quot;&gt;
					&lt;div class=&quot;jfk-button-img&quot; style=&quot;background-repeat: no-repeat; display: inline-block; background-image: -webkit-image-set(url(&amp;quot;denied:https://ssl.gstatic.com/images/icons/material/system_gm/1x/star_border_black_24dp.png&amp;quot;) 1x, url(&amp;quot;denied:https://ssl.gstatic.com/images/icons/material/system_gm/2x/star_border_black_24dp.png&amp;quot;) 2x); height: 21px; width: 21px; margin-top: -3px; vertical-align: middle; opacity: 0.55; background-position: center center;&quot;&gt;
						&amp;nbsp;&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
			&lt;div class=&quot;text-wrap tlid-copy-target&quot; style=&quot;margin-bottom: 0px; min-height: 56px;&quot;&gt;
				&lt;div class=&quot;result-shield-container tlid-copy-target&quot; style=&quot;padding-right: 44px; direction: ltr;&quot;&gt;
					&lt;span class=&quot;tlid-translation translation&quot; lang=&quot;en&quot; style=&quot;min-height: 20px; line-height: 28px; font-size: 18px; color: rgba(0, 0, 0, 0.87); white-space: pre-wrap; padding-right: 8px;&quot;&gt;&lt;span title=&quot;&quot;&gt;Thanks for your quick response, but still can not understand the implementation, sorry for the little expertise, I'm still a beginner.&lt;/span&gt;&lt;br&gt;
					&lt;span title=&quot;&quot;&gt;I recently used another platform, Firebase.&lt;/span&gt; &lt;span title=&quot;&quot;&gt;In it when registering a user in my application through email and password Firebase itself sent an email with a link and when the user opened his email and clicked on this link the account was validated and the application login was released.&lt;/span&gt;&lt;br&gt;
					&lt;span title=&quot;&quot;&gt;From what you explained to me, I have to build this solution into my code, correct?&lt;/span&gt;&lt;br&gt;
					&lt;span title=&quot;&quot;&gt;But how is the process of sending email at Apphq?&lt;/span&gt; &lt;span title=&quot;&quot;&gt;Can this be automated?&lt;/span&gt;&lt;br&gt;
					&lt;span title=&quot;&quot;&gt;Are there any tutorials for implementing this validation or an example app that can be used as a reference?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11528/registered-email-validation</guid>
<pubDate>Tue, 17 Dec 2019 12:24:28 +0000</pubDate>
</item>
<item>
<title>automate the sending of a validation email after user registration</title>
<link>http://forum.shephertz.com/?qa=11526/automate-sending-validation-email-after-user-registration</link>
<description>&lt;div&gt;
	Hello good afternoon.&lt;/div&gt;
&lt;div&gt;
	Is there any way to automate the sending of a validation email after user registration, ie confirm that the email is really owned by the user who signed up?&lt;/div&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11526/automate-sending-validation-email-after-user-registration</guid>
<pubDate>Mon, 16 Dec 2019 21:28:02 +0000</pubDate>
</item>
<item>
<title>ErrorCode: 1401- UnAuthorized Access (Due to Clock Divergence)</title>
<link>http://forum.shephertz.com/?qa=11522/errorcode-1401-unauthorized-access-due-to-clock-divergence</link>
<description>In Brazil clocks do not change time in summer and for this reason there is a time difference between my device and your server. How to solve this situation, considering that all users of my developed applications will have a different time?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11522/errorcode-1401-unauthorized-access-due-to-clock-divergence</guid>
<pubDate>Sat, 14 Dec 2019 00:37:52 +0000</pubDate>
</item>
<item>
<title>Getting a lot of : Curl error 7: Failed to connect to api.shephertz.com port 443: Timed out</title>
<link>http://forum.shephertz.com/?qa=11512/getting-curl-error-failed-connect-api-shephertz-port-timed</link>
<description>API is being real slow and  or unsresponsive since yesterday.

I am getting at least 3 t o 4 messages like this before my login actually goes through in my application, and when it does work, it takes more than 30 seconds for the loggin to go through.
Curl error 7: Failed to connect to api.shephertz.com port 443: Timed out

Same is going on for a lot of our users, so definitly not a local issue.

We are currently in beta and ready to lunch our application in the next 2 weeks, and really can t have those sorts of extended downtime now.
What is going on ?

Using unity3d 2019.2.11.f1 , and App42-Unity3D-SDK-4.2</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11512/getting-curl-error-failed-connect-api-shephertz-port-timed</guid>
<pubDate>Sun, 03 Nov 2019 17:40:06 +0000</pubDate>
</item>
<item>
<title>onConnectDone(ConnectEvent eventObj) callback issue on Android 9</title>
<link>http://forum.shephertz.com/?qa=11476/onconnectdone-connectevent-eventobj-callback-issue-android</link>
<description>Hi, 

I am facing an issue on onConnectDone(ConnectEvent eventObj) the eventObject always responds with 5 in Android 9, so I am unable to establish a connection and connect two players on android pie, where as the same code works fine on Android 8. Is there anything i need to change for this to work? Atached is the screenshot of the code snippet</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11476/onconnectdone-connectevent-eventobj-callback-issue-android</guid>
<pubDate>Fri, 05 Jul 2019 07:17:16 +0000</pubDate>
</item>
<item>
<title>&quot;httpErrorCode&quot;:401,&quot;appErrorCode&quot;:1401,&quot;message&quot;:&quot;UnAuthorized Access&quot;</title>
<link>http://forum.shephertz.com/?qa=11475/httperrorcode-apperrorcode-message-unauthorized-access</link>
<description>errorValue : {&quot;app42Fault&quot;:{&quot;httpErrorCode&quot;:401,&quot;appErrorCode&quot;:1401,&quot;message&quot;:&quot;UnAuthorized Access&quot;,&quot;details&quot;:&quot;Client is not authorized&quot;}}

When I try to login i.e authenticate user on Unity3d Editor I face &quot;httpErrorCode&quot;:401,&quot;appErrorCode&quot;:1401,&quot;message&quot;:&quot;UnAuthorized Access&quot;, where as the same code works fine on my Android device. Is there anything I need to do for it to make work on my editor?

Also note, the sdk I am using is quite old, I started this project back in 2016 and now doing some changes in it. Back then all the app42 api requests worked fine in editor as well, but now API requests are only working in Android device and not in Unity3d editor.

Will appreciate a quick response!

Thanks</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11475/httperrorcode-apperrorcode-message-unauthorized-access</guid>
<pubDate>Thu, 04 Jul 2019 10:33:23 +0000</pubDate>
</item>
<item>
<title>Overcoming 100 document limit: Need number of pages matching a Query before using findDocumentByQueryWithPaging</title>
<link>http://forum.shephertz.com/?qa=11451/overcoming-document-matching-finddocumentbyquerywithpaging</link>
<description>&lt;p&gt;
	Sorry, I feel like all my previous attempts at asking this question have been misunderstood and I've only been given partial answers that do not relate to every aspect of what I'm trying to solve.&amp;nbsp;&lt;strong&gt;My problem is that I don't know how many total records there are for a given QUERY and I need to get this through the API.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
		The query has (or can have) more than 100 documents\records to return&lt;/li&gt;
	&lt;li&gt;
		I need to load all these (100+) at once - I know I need to use&amp;nbsp;&lt;a href=&quot;http://api.shephertz.com/app42-docs/nosql-storage-service/#find-document-by-query-paging&quot; rel=&quot;nofollow&quot; style=&quot;color: rgb(1, 121, 181); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot; target=&quot;_blank&quot;&gt;findDocumentByQueryWithPaging&lt;/a&gt;&amp;nbsp;&quot;x&quot; number of times to get all matching documents.&lt;/li&gt;
	&lt;li&gt;
		I need a solution to get the absolute total number of available documents matching this query so that I can work out how many times I need to run&amp;nbsp;&lt;a href=&quot;http://api.shephertz.com/app42-docs/nosql-storage-service/#find-document-by-query-paging&quot; rel=&quot;nofollow&quot; style=&quot;color: rgb(1, 121, 181); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot; target=&quot;_blank&quot;&gt;findDocumentByQueryWithPaging&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
	I apologise for asking variations of this question so many times but I have been told multiple answers that don't meet all the criteria above, and each has had some of the shortfalls below.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
		In my most recently received answer I was told to use jsonDocList.Count, but this is only going to tell me how many records were returned in the current query not how many remain unloaded.&lt;/li&gt;
	&lt;li&gt;
		storage.GetRecordCount() does not return more than 100 unless there are fewer records in total&lt;/li&gt;
	&lt;li&gt;
		storage.GetTotalRecords() is always -1&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://forum.shephertz.com/?qa=4954/count-of-query-how-to-avoid-limit-of-100&amp;amp;show=4954#q4954&quot; rel=&quot;nofollow&quot;&gt;In this&lt;/a&gt;&amp;nbsp;the user was told NOT to use getCountByQuery() and I believe that was limited to the cap of 100 records returned also&lt;/li&gt;
&lt;/ul&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11451/overcoming-document-matching-finddocumentbyquerywithpaging</guid>
<pubDate>Sun, 31 Mar 2019 11:15:26 +0000</pubDate>
</item>
<item>
<title>Rank facebook return wrong</title>
<link>http://forum.shephertz.com/?qa=11448/rank-facebook-return-wrong</link>
<description>&lt;div&gt;
	The ranking list on the server has 2 users:&lt;/div&gt;
&lt;div&gt;
	A: Rank 1, score 5 (Update at 5 PM)&lt;/div&gt;
&lt;div&gt;
	B: Rank 2, score 5 (Update at 4 PM)&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Using GetTopNRankersFromFacebook () returns the result wrong&lt;/div&gt;
&lt;div&gt;
	B: Rank 1. score 5&lt;/div&gt;
&lt;div&gt;
	A: Rank 2, score 5&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	if using GetUserRanking(A) return&amp;nbsp; A:rank 1&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Why when using GetTopNRankersFromFacebook () returns the wrong ranking order when 2 users have equal score, thanks&lt;/div&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11448/rank-facebook-return-wrong</guid>
<pubDate>Fri, 29 Mar 2019 08:25:19 +0000</pubDate>
</item>
<item>
<title>Get Count for Records matching query\criteria</title>
<link>http://forum.shephertz.com/?qa=11446/get-count-for-records-matching-query-criteria</link>
<description>Sorry, the answer given to me for the previous related question told me to use Find All Document Count but I need to count only those that match a specific query not all those in a collection.

I have not experimented with CountByQuery because I read an answer to a different user's question that that function was going to be depreciated, is there an alternative?

The first call to FindDocumentByQueryWithPaging() works but I am trying to work out if/when I need to call that function again if there are more records than the maximum 100. However storage.GetTotalRecords() always gives me -1 regardless of how many documents were successfully returned or how many are remaining and storage.CountRecords() just tells me how many records were given not how many there are in total.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11446/get-count-for-records-matching-query-criteria</guid>
<pubDate>Mon, 25 Mar 2019 18:56:01 +0000</pubDate>
</item>
<item>
<title>What is the best method to find out how many documents/records there are?</title>
<link>http://forum.shephertz.com/?qa=11442/what-the-best-method-find-out-many-documents-records-there-are</link>
<description>storage.GetTotalRecords() gives me -1 storage.CountRecords() gives me the number I originally asked for in my query. And I read elsewhere that I shouldn't use CountByQuery because that is going to be depreciated.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11442/what-the-best-method-find-out-many-documents-records-there-are</guid>
<pubDate>Mon, 25 Mar 2019 11:01:48 +0000</pubDate>
</item>
<item>
<title>Trying to understand &quot;FindDocumentsByQueryWithPaging&quot;</title>
<link>http://forum.shephertz.com/?qa=11438/trying-to-understand-finddocumentsbyquerywithpaging</link>
<description>&lt;p&gt;
	Hi,&lt;/p&gt;
&lt;p&gt;
	So I recently realised that a normal FindDocumentsByQuery call limits the amount of results to 100 so I am trying to work out a way to get all the documents that match a particular query.&lt;/p&gt;
&lt;p&gt;
	I am currently trying to use FindDocumentsByQueryWithPaging and have run into a few things that I've noticed...&lt;/p&gt;
&lt;p&gt;
	1) Whatever value I set for the &quot;max&quot; param is of course how many documents I receive however storage.GetRecordCount() will return the same value (unless there are fewer records. If I have 150 records and &quot;max&quot; is set to 100, storage.GetRecordCount() tells me there are 100 records. How do I get it to tell me if there are more records that have not been loaded?&lt;/p&gt;
&lt;p&gt;
	2) How would I then go about loading the next page of records? I have attempted to call FindDocumentsByQueryWithPaging() within the callback of the first - using exactly the same params except incrementing the offset by jsonDocList.Count. It seems like this should work but I get the following error when I try (not that the line number #1628 corresponds to where I attempt to call FindDocumentsByQueryWithPaging() within the CallBack:&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	system.NullReferenceException: Object reference not set to an instance of an object&lt;/p&gt;
&lt;div&gt;
	&amp;nbsp; at SessionSupervisor+PagedScoreUpdateCallBack.OnSuccess (System.Object response) [0x00480] in /Users/Anthony/SourceTree Repos/Unity/LootSpace/Assets/LootAssets/Scripts/User Data/SessionSupervisor.cs:1628&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW.BuildResponseForObjectService (System.String successValue, App42CallBack callBacK, System.String resource) [0x00000] in &amp;lt;filename unknown&amp;gt;:0&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+&amp;lt;Execute&amp;gt;d__6.MoveNext () [0x00000] in &amp;lt;filename unknown&amp;gt;:0&amp;nbsp;&lt;/div&gt;
&lt;p&gt;
	UnityEngine.Debug:LogError(Object)&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11438/trying-to-understand-finddocumentsbyquerywithpaging</guid>
<pubDate>Sun, 24 Mar 2019 12:27:26 +0000</pubDate>
</item>
<item>
<title>FindDocumentsByLocation Order By?</title>
<link>http://forum.shephertz.com/?qa=11366/finddocumentsbylocation-order-by</link>
<description>&lt;p&gt;
	Hi,&lt;/p&gt;
&lt;p&gt;
	Is it possible to do the following when using&amp;nbsp;&lt;strong&gt;FindDocumentsByLocation&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;
	Search with a specific key then =&amp;gt; Order By Ascending or Descending then =&amp;gt; using a max result limit (10 records)?&lt;strong&gt;&amp;nbsp;(NO FILTERING ON CLIENT SIDE)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;br&gt;
	What I want to do is, Get the lastest 10 records.. AND I don't want to filter the data on client side as there will be too many records.&lt;/p&gt;
&lt;p&gt;
	&lt;br&gt;
	Also, is it possible to save JSON Document with the GeoServices? As GetPointsWithinCircle has result limit.&lt;br&gt;
	The only issue is that I want to save data with GeoPoint, which can only be done with StorageService right now&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	I am using &lt;strong&gt;UNITY3D&lt;/strong&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11366/finddocumentsbylocation-order-by</guid>
<pubDate>Sat, 17 Nov 2018 13:27:41 +0000</pubDate>
</item>
<item>
<title>A few questions about Storage</title>
<link>http://forum.shephertz.com/?qa=11233/a-few-questions-about-storage</link>
<description>&lt;p&gt;
	Hello,&lt;/p&gt;
&lt;p&gt;
	While experimenting with additional data, I noticed the json object has the following info&lt;/p&gt;
&lt;p&gt;
	- ACL List&lt;/p&gt;
&lt;p&gt;
	- Creation time&lt;/p&gt;
&lt;p&gt;
	- Update time&lt;/p&gt;
&lt;p&gt;
	- Doc Id&lt;/p&gt;
&lt;p&gt;
	- GeoLoc&lt;/p&gt;
&lt;p&gt;
	- Document content&lt;/p&gt;
&lt;p&gt;
	- Assigned event&lt;/p&gt;
&lt;p&gt;
	- owner (player/user)&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Now, the DB is pretty obvious since I queried the information and as we discussed in my previous question, an app can only have one DB. But how do I know what source collection this doc is from? Assuming I use a generic callback which I would recycle for any related tasks, how can I filter the information or use proper conditions to know what game/app calls to do inside my project?&lt;/p&gt;
&lt;p&gt;
	The doc id is dynamic and hardocding it might not be the wisest idea. Can you please add a &lt;strong&gt;collectionName &lt;/strong&gt;(or sourceCollection or whatever name you deem fit)&lt;strong&gt; &lt;/strong&gt;property inside the json object? It seems like a vital information and it's a shame it's missing as it can allow for so much more dynamic coding. Not a priority for now as I wil try to limit my callback objects to specific tasks, but this will result in redundant code (and over-subclassing will result in overkill). I don't think it's difficult to add :)&amp;nbsp; (even with low priority)&lt;/p&gt;
&lt;p&gt;
	Adding an option to use a new call to get this information may seem too much. Simplest method as I see it is to be another metadata property like creation date, doc id etc.&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Similar question: using the same callback for similar API calls (i.e. one callback for 4-5 user-services requests) I can't always know what request I get a response for (if it's a standalone autonomous and dynamic callbcack). Can the request name be added as well in the response? Like GetRolesByUser, GetUser etc. but for all requests? Not a priority cos I'll just do some IFs but a request name in the response metadata like the collection source idea would be a lot cleaner :) If possible.&lt;/p&gt;
&lt;p&gt;
	Second issue: I can use metadata with UserServices.Authenticate (i.e. getting the profile), but it won't let me use queries. Is this by design or just not implemented? I tried several combinations and it will ignore any documents the user has. Only User functions will return queries. The main reason I ask, I will be honest, is to reduce API calls :)&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Thanks!&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	P.S. small cosmetic bug: in the storage menu -&amp;gt; json submenu there is a search button but it says &quot;Advance Search&quot; instead of &quot;Advanced Search&quot; :)&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11233/a-few-questions-about-storage</guid>
<pubDate>Mon, 23 Jul 2018 21:18:11 +0000</pubDate>
</item>
<item>
<title>How to delete a password policy</title>
<link>http://forum.shephertz.com/?qa=11214/how-to-delete-a-password-policy</link>
<description>Hello,

I added a pw policy as a test, but now I want to delete it. How do I do that? I don't see a button to delete it anywhere :(</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11214/how-to-delete-a-password-policy</guid>
<pubDate>Thu, 12 Jul 2018 20:09:17 +0000</pubDate>
</item>
<item>
<title>Internal exception instead of callback exception on UserServices API call</title>
<link>http://forum.shephertz.com/?qa=11213/internal-exception-instead-callback-exception-userservices</link>
<description>I authenticated the application and wanted to call UserServices.GetUserByEmailId() but when using an invalid e-mail (accidentally typed user#host.com instead of user@host.com) it triggers an internal exception, instead of my c# callback exception. I expected my callback to capture the exception so I can treat it. The current design seems to trigger the termination of my Editor app (I mean it stops playing, not that it crashes :) ) so I expect the same to happen in a standalone build. I don't think mistyping an emailaddress in a textbox should cause this. Is this by design? Cause I don't think it is a good way. I expect my callback to capture everything sent by the App42 Cloud API. Can you please check?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11213/internal-exception-instead-callback-exception-userservices</guid>
<pubDate>Wed, 11 Jul 2018 05:53:39 +0000</pubDate>
</item>
<item>
<title>How do I assign/revoke a role to a user from the Dashboard?</title>
<link>http://forum.shephertz.com/?qa=11205/how-do-i-assign-revoke-a-role-to-a-user-from-the-dashboard</link>
<description>I know the API provides calls to grant and revoke roles for users and I know the Dashboard allows me the possibility to grant roles. But how do I manage them from the Dashboard?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11205/how-do-i-assign-revoke-a-role-to-a-user-from-the-dashboard</guid>
<pubDate>Sat, 07 Jul 2018 09:49:38 +0000</pubDate>
</item>
<item>
<title>A few questions about users</title>
<link>http://forum.shephertz.com/?qa=11203/a-few-questions-about-users</link>
<description>&lt;p&gt;
	Hello 42-ers &lt;img alt=&quot;smiley&quot; height=&quot;20&quot; src=&quot;http://forum.shephertz.com/qa-plugin/wysiwyg-editor/plugins/smiley/images/regular_smile.gif&quot; title=&quot;smiley&quot; width=&quot;20&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	I have a few questions about users in the App42 Cloud API:&lt;/p&gt;
&lt;p&gt;
	- is there a way to get the user id of a user? (not the username, but a sequential id or a guid or something that uniquely identifies the user in the system, other than through a readable username)&lt;/p&gt;
&lt;p&gt;
	- if there is no internal user id, are there plans of including it?&lt;/p&gt;
&lt;p&gt;
	- must the username be unique?&lt;/p&gt;
&lt;p&gt;
	- if the username is unique, are there plans to implement a way to either duplicate usernames (for example by adding a user id as asked above)?&lt;/p&gt;
&lt;p&gt;
	- is there a way to use a display name? so my account name is &quot;superplayer&quot;, but I want my in-game name to be &quot;Rockstar01&quot;. I will login with username &quot;superplayer&quot; and password &quot;super&quot; but everyone sees me as &quot;Rockstar01&quot; and next week I can change to &quot;Rockstar02&quot;. Is there such a system in place? If not, are there plans for it?&lt;/p&gt;
&lt;p&gt;
	- is there a way to add custom fields/metadata for users? For example adding a nickname, age (yes I know you can calculate it from a DOB, but it is an example), favorite color and some other social trivia stuff? if not, are there plans for it? (maybe like a hashmap/list of strings and such)&lt;/p&gt;
&lt;p&gt;
	- is there support for teams/clans? And if not are there plans for a team management service? i.e. Rockstar01 is a member of team SuperTeam1337. SuperTeam1337 has 3 memebers. SuperTeam1337 has some info/bio for visitors or an avatar/icon etc.&lt;/p&gt;
&lt;p&gt;
	- is there support for cdkeys or something similar? Like uniquely authenticating an application (maybe, for example, replacing the api private key with a cd key hash/checksum that is unique for each user) per user/device&lt;/p&gt;
&lt;p&gt;
	- how can I add penalties for a player? Rockstart01 harassed somebody. he/she deserves a 6 month ban or something like that (but automatic). Or Rockstar01 can now only play game type X instead of all of them. Is there such a system in place? If not, are there plans for it?&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Thanks &lt;img alt=&quot;yes&quot; height=&quot;20&quot; src=&quot;http://forum.shephertz.com/qa-plugin/wysiwyg-editor/plugins/smiley/images/thumbs_up.gif&quot; title=&quot;yes&quot; width=&quot;20&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	Best regards!&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11203/a-few-questions-about-users</guid>
<pubDate>Fri, 06 Jul 2018 18:51:49 +0000</pubDate>
</item>
<item>
<title>Async Message/Queue Service tuts</title>
<link>http://forum.shephertz.com/?qa=11202/async-message-queue-service-tuts</link>
<description>Hello, are there any tutorials on using the MS? I don't just mean the code samples in the dev center. I am curious what use-cases they apply to, some best practices, best scenarios etc. Can I use them, for example, to get a server side variables, let's say the server version (I don't mean the &amp;quot;real&amp;quot; App42 version, but something I'd call a &amp;quot;version&amp;quot; which I would constantly update after some changes in my dashboard for example, like adding scheduled server custom code events)? Or would custom code be better? Side question: assuming I mistyped the api id or app private key, how can I track failures in Initialize() calls? (without parsing debug logs, but as a callback with onSuccess or Exception)</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11202/async-message-queue-service-tuts</guid>
<pubDate>Fri, 06 Jul 2018 06:09:01 +0000</pubDate>
</item>
<item>
<title>How to get users around the specified user in leaderbord</title>
<link>http://forum.shephertz.com/?qa=11155/how-to-get-users-around-the-specified-user-in-leaderbord</link>
<description></description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11155/how-to-get-users-around-the-specified-user-in-leaderbord</guid>
<pubDate>Wed, 13 Jun 2018 22:11:02 +0000</pubDate>
</item>
<item>
<title>Push Notification with Firebase and Unity</title>
<link>http://forum.shephertz.com/?qa=11093/push-notification-with-firebase-and-unity</link>
<description>Hi! I've setup my app for push notifications through Firebase (only Android app, for now).&lt;br /&gt;
&lt;br /&gt;
All the configuration is done: the FCM legacy key is set up, the user is subscribed for push notifications, the user's device ID for notifications &amp;nbsp;(in the App42 console) is the token received from Firebase, etc.&lt;br /&gt;
&lt;br /&gt;
When sending push notifications from the Firebase console, everything's working perfectly. The problem is that notifications sent via App42 (either from the console OR from code) are never shown. When the app is opened, Firebase shows me that I got a new message, but there is no notification attached to it (I assume this could be the problem).&lt;br /&gt;
&lt;br /&gt;
What am I doing wrong, please advise.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&lt;br /&gt;
Alex.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11093/push-notification-with-firebase-and-unity</guid>
<pubDate>Tue, 08 May 2018 10:43:18 +0000</pubDate>
</item>
<item>
<title>Unity NullReferenceException: Object reference not set to an instance of an object</title>
<link>http://forum.shephertz.com/?qa=11087/nullreferenceexception-object-reference-instance-object</link>
<description>&lt;p&gt;
	I'm trying to access the score board and keep getting errors, even though it seems to be working. This would be fine but it is making my iOS build crash.&lt;/p&gt;
&lt;p&gt;
	This is the exception:&lt;/p&gt;
&lt;div&gt;
	NullReferenceException: Object reference not set to an instance of an object&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+&amp;lt;Execute&amp;gt;d__6.MoveNext ()&lt;/div&gt;
&lt;div&gt;
	com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+&amp;lt;WaitForRequest&amp;gt;d__3.MoveNext ()&lt;/div&gt;
&lt;div&gt;
	UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	This is the code:&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&lt;div&gt;
		using com.shephertz.app42.paas.sdk.csharp;&lt;/div&gt;
	&lt;div&gt;
		using com.shephertz.app42.paas.sdk.csharp.game;&lt;/div&gt;
	&lt;div&gt;
		using com.shephertz.app42.paas.sdk.csharp.user;&lt;/div&gt;
	&lt;div&gt;
		using System;&lt;/div&gt;
	&lt;div&gt;
		using System.Collections;&lt;/div&gt;
	&lt;div&gt;
		using System.Collections.Generic;&lt;/div&gt;
	&lt;div&gt;
		using UnityEngine;&lt;/div&gt;
	&lt;div&gt;
		using UnityEngine.UI;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		public class SetupScreen : MonoBehaviour&lt;/div&gt;
	&lt;div&gt;
		{&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; public InputField userName;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; public Text errors;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; private ScoreBoardService scoreBoardService;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; private void Start()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; App42Log.SetDebug(true);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; App42API.Initialize(Strings.App42.API_KEY, Strings.App42.SECRET_KEY);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scoreBoardService = App42API.BuildScoreBoardService();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; public void SubmitUserName()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string name = userName.text;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!string.IsNullOrEmpty(name))&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UserNameUniqueCheck(name);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errors.text = &quot;Enter a username ya dope!&quot;;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; private void UserNameUniqueCheck(string name)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scoreBoardService.GetLastScoreByUser(Strings.App42.GAME_NAME, name, new CheckForScoreCallBack(this));&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; internal void ScoreDoesntExist()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string name = userName.text;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int score = PlayerPrefs.GetInt(Strings.Prefs.HIGHEST_SCORE);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PlayerPrefs.SetString(Strings.Prefs.USERNAME, name);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scoreBoardService.SaveUserScore(Strings.App42.GAME_NAME, name, score, null);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scoreBoardService.GetLastScoreByUser(Strings.App42.GAME_NAME, name, new SaveScoreCallBack(this));&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; internal void ScoreExists()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errors.text = &quot;Username taken ya scrub!&quot;;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; internal void ShowSavingError()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errors.text = &quot;Uh oh, why no internets?&quot;;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; internal void ChangeScene()&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UnityEngine.SceneManagement.SceneManager.LoadScene(Strings.Scene.TITLE);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; private class CheckForScoreCallBack : App42CallBack&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private SetupScreen sc;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public CheckForScoreCallBack(SetupScreen sc)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.sc = sc;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void OnSuccess(object response)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc.ScoreExists();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void OnException(Exception e)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc.ScoreDoesntExist();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; private class SaveScoreCallBack : App42CallBack&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private SetupScreen sc;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public SaveScoreCallBack(SetupScreen sc)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.sc = sc;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void OnSuccess(object response)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Game game = (Game)response;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string userName = PlayerPrefs.GetString(Strings.Prefs.USERNAME);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; game.GetScoreList().Count; i++)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string un = game.GetScoreList()[i].GetUserName();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (un.Equals(userName))&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string scoreId = game.GetScoreList()[i].GetScoreId();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PlayerPrefs.SetString(Strings.App42.SCORE_ID, scoreId);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc.ChangeScene();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void OnException(Exception e)&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Debug.Log(e.Message);&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc.ChangeScene();&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
	&lt;div&gt;
		}&lt;/div&gt;
	&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11087/nullreferenceexception-object-reference-instance-object</guid>
<pubDate>Fri, 04 May 2018 02:51:41 +0000</pubDate>
</item>
<item>
<title>Email from App42 arrive as an attachment called noname. How can I solve that?</title>
<link>http://forum.shephertz.com/?qa=11050/email-from-app42-arrive-attachment-called-noname-solve-that</link>
<description>So, when I send any mail from my app, it arrives, but it comes with no body, and instead an attachment called &quot;noname&quot;.
I've tried different mime types, but havent figured it out. Can anyone help?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11050/email-from-app42-arrive-attachment-called-noname-solve-that</guid>
<pubDate>Thu, 05 Apr 2018 00:23:33 +0000</pubDate>
</item>
<item>
<title>Unity App42API Callback variable respond</title>
<link>http://forum.shephertz.com/?qa=11035/unity-app42api-callback-variable-respond</link>
<description>&lt;p&gt;
	Hello, I just started using App42API Cloud with Unity. I have created Register/Login system by example. When game starts there is a UI Login Panel pops up. Player will enter his/here email and password to authenticate. After successfully authentication I want disable UI Login Panel and enable Menu UI Panel. 3 days past I can't figure out how can I do that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	As you can see in image class &quot;MyCallBack&quot; is not Monobehaviour and I can't get any access to him. I tried different method.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	I also tried to add Monobehaviour before App42CallBack. Like this:&lt;/p&gt;
&lt;p&gt;
	public class MyCallBack : Monobehaviour, App42Callback&lt;/p&gt;
&lt;p&gt;
	{&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	}&lt;/p&gt;
&lt;p&gt;
	Nothing works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Please help need. Thanks&lt;/p&gt;
&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=3753327550860418106&quot; style=&quot;width: 600px; height: 561px;&quot;&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11035/unity-app42api-callback-variable-respond</guid>
<pubDate>Sun, 25 Mar 2018 18:43:56 +0000</pubDate>
</item>
<item>
<title>Can I use App42 platform to build standalone (Windows, Mac, Linux) games with unity?</title>
<link>http://forum.shephertz.com/?qa=11028/app42-platform-build-standalone-windows-linux-games-unity</link>
<description>Hello!

Can anyone tell me if Unity SDK supports building games for PC?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11028/app42-platform-build-standalone-windows-linux-games-unity</guid>
<pubDate>Thu, 22 Mar 2018 12:09:15 +0000</pubDate>
</item>
<item>
<title>Unity SDK problems</title>
<link>http://forum.shephertz.com/?qa=11009/unity-sdk-problems</link>
<description>&lt;p&gt;
	Hello.&lt;/p&gt;
&lt;p&gt;
	I'm using App42-Unity3D-SDK-4.1.2.dll. It seems like there is a significant problem right now with the the SDK and specifically that the SDK relies on an older version of the SimpleJSON class (&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://wiki.unity3d.com/index.php/SimpleJSON&quot; rel=&quot;nofollow&quot;&gt;http://wiki.unity3d.com/index.php/SimpleJSON&lt;/a&gt;). The version of this class used in your SDK is outdated such that it creates some problems for us.&lt;/p&gt;
&lt;p&gt;
	Specifically, if you save an array of empty string values like [&quot;&quot;, &quot;&quot;, &quot;&quot;] and then try to create a JSONClass ((ie JSONClass)JSON.Parse(fileData)), it will not read the &quot;&quot; empty values and result in an&amp;nbsp; empty array []. You can try it yourself.&lt;/p&gt;
&lt;p&gt;
	After looking at this link - &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://wiki.unity3d.com/index.php/SimpleJSON&quot; rel=&quot;nofollow&quot;&gt;http://wiki.unity3d.com/index.php/SimpleJSON&lt;/a&gt;, I can see that this bug was fixed in&amp;nbsp; * [2017-04-11 Update], as it says:&lt;/p&gt;
&lt;pre class=&quot;de1&quot; style=&quot;padding: 0px; border: 0px none white; color: rgb(0, 0, 0); background: none; line-height: 1.2em; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 12.48px; margin-top: 0px; margin-bottom: 0px; vertical-align: top;&quot;&gt;
&lt;span class=&quot;coMULTI&quot; style=&quot;color: rgb(0, 128, 128); font-style: italic;&quot;&gt; * - Fixed parsing bug where empty string values have been ignored.&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
	I would appreciate very much if you could update the Unity SDK by implementing the latest SimpleJSON class.&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11009/unity-sdk-problems</guid>
<pubDate>Sun, 11 Mar 2018 17:02:56 +0000</pubDate>
</item>
<item>
<title>Unity Push Notification Problem</title>
<link>http://forum.shephertz.com/?qa=10952/unity-push-notification-problem</link>
<description>Hi , i am having an issue using unity push notification service my code : pushsample.cs &lt;a href=&quot;https://pastebin.com/4e2MUME2&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/4e2MUME2&lt;/a&gt; my android manifest : &lt;a href=&quot;https://pastebin.com/M6YBYdeY&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/M6YBYdeY&lt;/a&gt; and my log issues :&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Push Android Worker Exception : com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401 Exception while sending&lt;br /&gt;
&lt;br /&gt;
Push : cannot retry due to server authentication, in streaming mode&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
and the user is registering in the shephertz server but the notification wont come to device</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10952/unity-push-notification-problem</guid>
<pubDate>Fri, 09 Feb 2018 10:32:29 +0000</pubDate>
</item>
<item>
<title>Unity Push Notification Problem</title>
<link>http://forum.shephertz.com/?qa=10951/unity-push-notification-problem</link>
<description>Hi , i am having an issue using unity push notification service

my code : 

pushsample.cs &lt;a href=&quot;https://pastebin.com/4e2MUME2&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/4e2MUME2&lt;/a&gt;

my android manifest : &lt;a href=&quot;https://pastebin.com/M6YBYdeY&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/M6YBYdeY&lt;/a&gt;

 

and my log issues :

Push Android Worker Exception : com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401

Exception while sending Push : cannot retry due to server authentication, in streaming mode

 

and the user is registering in the shephertz server

but the notification wont come to device</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10951/unity-push-notification-problem</guid>
<pubDate>Fri, 09 Feb 2018 10:32:25 +0000</pubDate>
</item>
<item>
<title>Unity Push Notification Problem</title>
<link>http://forum.shephertz.com/?qa=10950/unity-push-notification-problem</link>
<description>Hi , i am having an issue using unity push notification service

my code : 

pushsample.cs &lt;a href=&quot;https://pastebin.com/4e2MUME2&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/4e2MUME2&lt;/a&gt;

my android manifest : &lt;a href=&quot;https://pastebin.com/M6YBYdeY&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/M6YBYdeY&lt;/a&gt;

 

and my log issues :

Push Android Worker Exception : com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401

Exception while sending Push : cannot retry due to server authentication, in streaming mode

 

and the user is registering in the shephertz server

but the notification wont come to device</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10950/unity-push-notification-problem</guid>
<pubDate>Fri, 09 Feb 2018 10:32:22 +0000</pubDate>
</item>
<item>
<title>Unity Push Notification Problem</title>
<link>http://forum.shephertz.com/?qa=10949/unity-push-notification-problem</link>
<description>Hi , i am having an issue using unity push notification service

my code : 

pushsample.cs &lt;a href=&quot;https://pastebin.com/4e2MUME2&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/4e2MUME2&lt;/a&gt;

my android manifest : &lt;a href=&quot;https://pastebin.com/M6YBYdeY&quot; rel=&quot;nofollow&quot;&gt;https://pastebin.com/M6YBYdeY&lt;/a&gt;

 

and my log issues :

Push Android Worker Exception : com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401

Exception while sending Push : cannot retry due to server authentication, in streaming mode

 

and the user is registering in the shephertz server

but the notification wont come to device</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10949/unity-push-notification-problem</guid>
<pubDate>Fri, 09 Feb 2018 10:32:19 +0000</pubDate>
</item>
<item>
<title>Unity Storage Service App Error code 1500 and http error code 500 on long JSON string of 3Kb?</title>
<link>http://forum.shephertz.com/?qa=10944/unity-storage-service-error-http-error-code-long-json-string</link>
<description>Hello, I am trying to upload JSON doc using storage service with close to 120 key value pairs. I have attached a sample file along with the question. The file size is close to 3 kb. I am facing internal server error while trying to upload the document using storage service. I'll be glad if someone can help me out with the issue as 3 kb doesn't seem to be crossing the max file size allowed by the storage service. Thank You, Kunal</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10944/unity-storage-service-error-http-error-code-long-json-string</guid>
<pubDate>Wed, 07 Feb 2018 16:21:53 +0000</pubDate>
</item>
<item>
<title>Email Services Not Work</title>
<link>http://forum.shephertz.com/?qa=10934/email-services-not-work</link>
<description>&lt;p&gt;
	i try to send email from App42 HQ (Unified Notifications&amp;gt;Email&amp;gt;Compose)&amp;nbsp; and get error in App42 HQ Email Log&lt;/p&gt;
&lt;p&gt;
	with this config&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;host : smtp.gmail.com &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;port&amp;nbsp; : 465 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;ssl : yes&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	i get&amp;nbsp; this error :&lt;/p&gt;
&lt;pre class=&quot;brush:plain;&quot;&gt;
Error : javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1949)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at javax.mail.Transport.send0(Transport.java:194)
	at javax.mail.Transport.send(Transport.java:124)
	at com.shephertz.app42.paas.app42.email.App42EmailNotifier.notify(App42EmailNotifier.java:126)
	at com.shephertz.app42.paas.app42.email.EmailListener.serviceMail(EmailListener.java:181)
	at com.shephertz.app42.paas.app42.email.EmailListener$1.run(EmailListener.java:138)&lt;/pre&gt;
&lt;p&gt;
	and with this config:&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;host : smtp.gmail.com&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;port&amp;nbsp; : 587&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;ssl : no&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	i get this error :&lt;/p&gt;
&lt;pre class=&quot;brush:plain;&quot;&gt;
Error : com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. n63sm12140238pgn.39 - gsmtp

	at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108)
	at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1609)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1117)
	at javax.mail.Transport.send0(Transport.java:195)
	at javax.mail.Transport.send(Transport.java:124)
	at com.shephertz.app42.paas.app42.email.App42EmailNotifier.notify(App42EmailNotifier.java:126)
	at com.shephertz.app42.paas.app42.email.EmailListener.serviceMail(EmailListener.java:181)
	at com.shephertz.app42.paas.app42.email.EmailListener$1.run(EmailListener.java:138)&lt;/pre&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10934/email-services-not-work</guid>
<pubDate>Sun, 28 Jan 2018 15:17:26 +0000</pubDate>
</item>
<item>
<title>Can't found getGameStatus() method.</title>
<link>http://forum.shephertz.com/?qa=10919/cant-found-getgamestatus-method</link>
<description>Hello, I am using App Warp Unity Mobile plugin for my chess multiplayer game. Few days before I was using Android App Warp plugin for my Other multiplayer application. In Android I a was able to use getGameStatus() method. I also want to use that method in Unity but could not found. Can anyone please provide me latest AppWarp plugin to use that method? Thanks in advance.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10919/cant-found-getgamestatus-method</guid>
<pubDate>Sat, 13 Jan 2018 10:47:46 +0000</pubDate>
</item>
<item>
<title>How to prevent user for Multi login at same time - Session is not reliable</title>
<link>http://forum.shephertz.com/?qa=10917/how-prevent-user-multi-login-same-time-session-not-reliable</link>
<description>we can check session to know that the user is logged in. but&lt;br /&gt;
&lt;br /&gt;
if app not close normal way or disconnect internet then close app, session not remove from server and app cant send anything to server and cant change on it , so user cant login again because session or every other parameter not changed on server.&lt;br /&gt;
&lt;br /&gt;
i search in forum and not find any correct answer for this problem.&lt;br /&gt;
&lt;br /&gt;
main problem is that we cant never be sure user logged out and change session attribute or update json document.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10917/how-prevent-user-multi-login-same-time-session-not-reliable</guid>
<pubDate>Fri, 12 Jan 2018 12:14:52 +0000</pubDate>
</item>
<item>
<title>Gift Request Accept Callback</title>
<link>http://forum.shephertz.com/?qa=10884/gift-request-accept-callback</link>
<description>Hello,

Is there any API for chacking requested gift status whether it is pending or accepted or rejected?

and If accepted or rejected then by which friend?

 

Thanks in advance</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10884/gift-request-accept-callback</guid>
<pubDate>Sat, 30 Dec 2017 05:49:02 +0000</pubDate>
</item>
<item>
<title>How to remove entry in leaderboard in unity c# &amp; how can we rename in leaderboard?</title>
<link>http://forum.shephertz.com/?qa=10874/remove-entry-leaderboard-unity-how-can-rename-leaderboard</link>
<description>Hello, I wanted to know if there are any chances to change tha name field in leaderboard and remove entry in leaderboard if yes then please help me out of this.

Thank you...</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10874/remove-entry-leaderboard-unity-how-can-rename-leaderboard</guid>
<pubDate>Mon, 18 Dec 2017 11:21:10 +0000</pubDate>
</item>
<item>
<title>why every variable value in my downloaded json surrounded by quotes?</title>
<link>http://forum.shephertz.com/?qa=10837/why-every-variable-value-downloaded-json-surrounded-quotes</link>
<description>&lt;p&gt;
	I was using FindDocumentByKeyValue(), but the problem is every variable values in the downloaded json became surrounded by quotes. When i checked in App42 storage dashboard, the json is fine, only strings has quotes.&lt;br&gt;
	&lt;br&gt;
	Here is the code that is use:&lt;/p&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
storageService.FindDocumentByKeyValue(dbName, collectionName, key, value, new UnityCallBack());   

public class UnityCallBack : App42CallBack  
{  
    public void OnSuccess(object response)  
    {  
        Storage storage = (Storage) response;  
        IList&amp;lt;Storage.JSONDocument&amp;gt; jsonDocList = storage.GetJsonDocList();   
        for(int i=0;i &amp;lt;jsonDocList.Count;i++)  
        {     
            App42Log.Console(&quot;objectId is &quot; + jsonDocList[i].GetDocId());  
            App42Log.Console(&quot;jsonDoc is &quot; + jsonDocList[i].GetJsonDoc()); 
            GlobalController.Instance.saveData = JsonUtility.FromJson&amp;lt;PlayerDB&amp;gt;(jsonDocList[0].GetJsonDoc());
        }    
    }  
  
    public void OnException(Exception e)  
    {  
        App42Log.Console(&quot;Exception : &quot; + e);  
    }  
}  &lt;/pre&gt;
&lt;p&gt;
	&lt;br&gt;
	&lt;br&gt;
	This problem leads to failure in convertion with unity JsonUtility. It recognize every true boolean in quotes as false.&lt;/p&gt;
&lt;p&gt;
	Does anyone ever experienced this?&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10837/why-every-variable-value-downloaded-json-surrounded-quotes</guid>
<pubDate>Tue, 05 Dec 2017 05:46:08 +0000</pubDate>
</item>
<item>
<title>Json Return and Query</title>
<link>http://forum.shephertz.com/?qa=10800/json-return-and-query</link>
<description>&lt;div&gt;
	Hello, I want to know how to query this type of json which is&amp;nbsp; Storage Service,&lt;/div&gt;
&lt;div&gt;
	and add items separately in &quot;parcela 01&quot; or &quot;parcela 02&quot;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	: json :&lt;/div&gt;
&lt;div&gt;
	&lt;pre class=&quot;brush:bash;&quot;&gt;
{

&quot;id&quot;: {
    
    &quot;parcela 01&quot;: { 
           &quot;variavel1&quot;: [30,501,40],
            &quot;variavel2&quot;: [30]
    },

    &quot;parcela 02&quot;: {
        &quot;variavel1&quot;: [30,501,40],
         &quot;variavel2&quot;: [40]
    }

}
} &lt;/pre&gt;
	&lt;p&gt;
		&amp;nbsp;&lt;/p&gt;
	&lt;p&gt;
		thank you&lt;/p&gt;
	&lt;p&gt;
		&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10800/json-return-and-query</guid>
<pubDate>Sat, 21 Oct 2017 01:56:17 +0000</pubDate>
</item>
<item>
<title>Problem getting location information of JSON document - unity/c#</title>
<link>http://forum.shephertz.com/?qa=10779/problem-getting-location-information-json-document-unity</link>
<description>&lt;p&gt;
	I've got a result set of JSON objects from a query, and all objects in this collection are geotagged with lat and lon. &amp;nbsp;On parsing through the results, I'm trying to store that lat/lon for further use, but I'm not getting the actual information. &amp;nbsp;Here's a couple things that I've tried:&lt;/p&gt;
&lt;p&gt;
	first, I used this - which resulted in mobPosition having the value of &quot;com.shephertz.app42.paas.sdk.csharp.storage.GeoTag&quot;&lt;/p&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
public class NBMQ_UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Storage storage = (Storage) response;
		IList&amp;lt;Storage.JSONDocument&amp;gt; jsonDocList = storage.GetJsonDocList ();
		for (int i = 0; i &amp;lt; jsonDocList.Count; i++) {
			App42Log.Console(&quot;objectId is &quot; + jsonDocList[i].GetDocId());
			App42Log.Console(&quot;jsonDoc is &quot; + jsonDocList[i].GetJsonDoc());

			var mobPosition = jsonDocList [i].GetLocation ();&lt;/pre&gt;
&lt;pre class=&quot;brush:csharp;&quot;&gt;
then I tried this instead, but the resulting value for mobPosition is still the same:

public class NBMQ_UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Storage storage = (Storage) response;
		IList&amp;lt;Storage.JSONDocument&amp;gt; jsonDocList = storage.GetJsonDocList ();
		for (int i = 0; i &amp;lt; jsonDocList.Count; i++) {
			App42Log.Console(&quot;objectId is &quot; + jsonDocList[i].GetDocId());
			App42Log.Console(&quot;jsonDoc is &quot; + jsonDocList[i].GetJsonDoc());

			GeoTag mobPosition = new GeoTag();
			mobPosition = jsonDocList [i].GetLocation ();&lt;/pre&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	How would I correctly store the lat/lon from the JSON object for the script to parse?&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Thanks,&lt;/p&gt;
&lt;p&gt;
	Ed&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10779/problem-getting-location-information-json-document-unity</guid>
<pubDate>Fri, 29 Sep 2017 13:59:10 +0000</pubDate>
</item>
<item>
<title>[UNITY 3D] Can't GetRank() of User in list scores Leaderboard Service?</title>
<link>http://forum.shephertz.com/?qa=10727/unity-3d-cant-getrank-user-list-scores-leaderboard-service</link>
<description>&lt;p&gt;
	Hello Everyone.I'm developing the game with Unity3d and App42.I'm having a problem with getting Rank of player .&lt;/p&gt;
&lt;p&gt;
	I'm using this line in the callback method to get rank but it always returns null.&lt;br&gt;
	&amp;nbsp;game.GetScoreList()[i].GetRank()&lt;br&gt;
	So can anyone for me know why?&lt;br&gt;
	Thank you so much!&amp;nbsp;&lt;img alt=&quot;frown&quot; height=&quot;20&quot; src=&quot;http://forum.shephertz.com/qa-plugin/wysiwyg-editor/plugins/smiley/images/confused_smile.gif&quot; title=&quot;frown&quot; width=&quot;20&quot;&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10727/unity-3d-cant-getrank-user-list-scores-leaderboard-service</guid>
<pubDate>Mon, 04 Sep 2017 07:52:37 +0000</pubDate>
</item>
<item>
<title>Question about Reward service</title>
<link>http://forum.shephertz.com/?qa=10700/question-about-reward-service</link>
<description>Hi!&lt;br /&gt;
&lt;br /&gt;
I have 3 reward, Bronze, Silver and Gold. And I have 3 leaderdboard for this 3 rewards.&lt;br /&gt;
&lt;br /&gt;
Bronze = 0 - 2000 Trophys&lt;br /&gt;
&lt;br /&gt;
Silver= 2000-4000 Trophys&lt;br /&gt;
&lt;br /&gt;
Gold = +4000 Trophys&lt;br /&gt;
&lt;br /&gt;
All work fine but I have a problem, when some user raise 2000 trophys I want to delete this user on Bronze leaderboard and move to Silver Leaderboard. I dont see any method for delete record or move between Reward.&lt;br /&gt;
&lt;br /&gt;
How I can make this?</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10700/question-about-reward-service</guid>
<pubDate>Fri, 25 Aug 2017 16:32:07 +0000</pubDate>
</item>
<item>
<title>Unable to Send Email from EmailServices</title>
<link>http://forum.shephertz.com/?qa=10673/unable-to-send-email-from-emailservices</link>
<description>&lt;p&gt;
	Hello Team,&lt;/p&gt;
&lt;p&gt;
	We are trying to implement the Send Email feature in our App. We have done following:&lt;/p&gt;
&lt;p&gt;
	1. We have configured Email in AppHQ with Login details, smtp host, port = 465&lt;/p&gt;
&lt;p&gt;
	2. From within the App when we are calling the Email services API by building Email services like :&lt;/p&gt;
&lt;p&gt;
	===============================&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;EmailService&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;emailService&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;App42API&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;BuildEmailService&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color:#333333;&quot;&gt;emailService&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;SendMail&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;GameUtils&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;FEEDBACK_RECEIVER_MAIL_ID&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;GameUtils&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;FEEDBACK_EMAIL_SUBJECT&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;userSuggestionTExt&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;GameUtils&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;FEEDBACK_SENDER_MAIL_ID&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;EmailMIME&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;PLAIN_TEXT_MIME_TYPE&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#009695;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#3364a4;&quot;&gt;SendEmailCallBack&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;())&lt;/span&gt;&lt;span style=&quot;color:#333333;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color:#333333;&quot;&gt;==============================&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color:#333333;&quot;&gt;We have provided every parameter correctly and still we are getting this error:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	SendEmail Exception : com.shephertz.app42.paas.sdk.csharp.App42BadParameterException: {&quot;httpErrorCode&quot;:&quot;400&quot;, &quot;appErrorCode&quot;:&quot;1400&quot;, &quot;message&quot;:&quot;Bad Request&quot;, &quot;details&quot;:&quot;The Request parameters are invalid&quot;}&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10673/unable-to-send-email-from-emailservices</guid>
<pubDate>Fri, 28 Jul 2017 11:26:33 +0000</pubDate>
</item>
<item>
<title>Error code when Shephertz servers are out of service</title>
<link>http://forum.shephertz.com/?qa=10562/error-code-when-shephertz-servers-are-out-of-service</link>
<description>&lt;p&gt;
	Hey,&lt;/p&gt;
&lt;p&gt;
	Last day Shephertz servers are out of service and we could connect at least 3-4 hour as it is written in this link&amp;nbsp;&lt;a href=&quot;http://forum.shephertz.com/?qa=10549/is-there-a-problem-on-servers&quot; rel=&quot;nofollow&quot;&gt;http://forum.shephertz.com/?qa=10549/is-there-a-problem-on-servers&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
	After that we started to think what if we face similar problems when our game is live.&lt;/p&gt;
&lt;p&gt;
	Is there a way to handle this. I mean&amp;nbsp;&lt;span style=&quot;background-color: rgb(250, 250, 250); color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif;&quot;&gt;Is there a way to understand that there are problems on servers so that I can show a message on my game that says like &quot;There are maintenance on our servers, please be patient&quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-family: Helvetica, Arial, Sens-serif; color: #333333;&quot;&gt;&lt;span style=&quot;background-color: rgb(250, 250, 250);&quot;&gt;Thanks.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10562/error-code-when-shephertz-servers-are-out-of-service</guid>
<pubDate>Thu, 15 Jun 2017 10:27:49 +0000</pubDate>
</item>
<item>
<title>Reset Password Email Template</title>
<link>http://forum.shephertz.com/?qa=10556/reset-password-email-template</link>
<description>Hi to all, We wanted to create a template for reset password. I first enter Unified Notifications&amp;gt;Email&amp;gt;Reset Password Template &amp;gt;Add Template and it asks me Email on top in a drop down menu which is currently empty since I didnt define any email on settings yet. Than, I go Unified Notifications&amp;gt;Settings&amp;gt;Email&amp;gt;Add Email and define an email with App42 service provider. After that Reset Password Template &amp;gt;Add Template works completely different:/ I think a bug occurs when I add an email in settings. Could you please reproduce it and write me abbout issue. Thanks.</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10556/reset-password-email-template</guid>
<pubDate>Wed, 14 Jun 2017 14:54:40 +0000</pubDate>
</item>
<item>
<title>Is there a problem On Servers?</title>
<link>http://forum.shephertz.com/?qa=10549/is-there-a-problem-on-servers</link>
<description>Hi All&lt;br /&gt;
&lt;br /&gt;
Is there a problem on servers? I cannot connect from both apphq and from my applications. What is happening?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10549/is-there-a-problem-on-servers</guid>
<pubDate>Wed, 14 Jun 2017 07:17:49 +0000</pubDate>
</item>
<item>
<title>Push Notification Language</title>
<link>http://forum.shephertz.com/?qa=10519/push-notification-language</link>
<description>&lt;p&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; background-color: rgb(250, 250, 250);&quot;&gt;Hello Himanshu&lt;/span&gt;&lt;br style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; background-color: rgb(250, 250, 250);&quot;&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; background-color: rgb(250, 250, 250);&quot;&gt;What I achieved so far is that: I store user device ids in push notification service and register them to channels according to their app language. So I can send push from apphq console according to their language. So far so good. Now, refering to my 3. question. I will send push from application (not from apphq) , lets say ,&quot;Himanshu wants to add you as friend&quot;. Now, who will translate this to receiver's language? Sender or receiver? And how? Should I first retrieve user's channel? Inshort, can you please write me the apis one by one that I will use?&lt;/span&gt;&lt;/p&gt;</description>
<category>Unity</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10519/push-notification-language</guid>
<pubDate>Thu, 01 Jun 2017 06:57:27 +0000</pubDate>
</item>
</channel>
</rss>