Skip to content
  • You may need to re-upload your profile pic....

    Moved General forums profile
    1
    0 Votes
    1 Posts
    629 Views
    No one has replied
  • brainCloud 4.15 (with Portal-X) is coming on Monday!

    Moved General 4.15 braincloud
    1
    0 Votes
    1 Posts
    623 Views
    No one has replied
  • 0 Votes
    5 Posts
    2k Views
    Michael CostaM
    Hello @Gavin-Beard! We've had trouble reproducing this issue on our end. After some testing with a small app on MacOS and iOS, we have not been able to see the error you are encountering using Unity 2021.3.8. If you could, please check out the app here and let us know if this issue is still persisting. It is a barebones authentication app and it should run on multiple devices. The Authentication.cs script has all the gory details. Just open up the Main scene under Assets > App > Misc > Main.unity to get it running. You will also need to add your brainCloud credentials, but you can copy the Authentication example template in brainCloud to test the app. Please let us know how this app works on your end and if any issues are encountered! You should be able to click on any error logs in the in-app console to copy the log to your device's clipboard. As for your specific issue, my best guess is that perhaps an external library of sorts might not be supported with brainCloud, such as the Newtonsoft Json.NET library. For JSON de/serializing, brainCloud comes with JsonFX. You can also make use of Unity's own JsonUtility for structured JSON de/serialization. Both the app I've shared and the examples on our GitHub make use of JsonFX extensively. If you'd like to know more and see how a more robust app can handle brainCloud authentication, as Franco suggested, you should check out our Authentication example on our Unity Examples GitHub. Hope this helps! Please let us know if you have further questions or inquiries about this.
  • 0 Votes
    1 Posts
    797 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    Paul WinterhalderP
    Update 3 - okay - the networking optimization is back in place now. (Though we haven't turned it on for the Portals yet - just want to ensure there aren't any issues first...) Paul.
  • Difficulty parsing JSON response in Unity

    APIs unity json jsonutility
    2
    0 Votes
    2 Posts
    1k Views
    Michael CostaM
    Hello! Thanks for your inquiry. The format of this response has been used for several years so to change it at this point would cause many errors for our clients. However, in situations like this, we have included the JsonFx library to help deserialize dynamic JSON objects with. One way to deserialize the JSON items would be to include a DeserializeItems(string) method in your Data class to be able to store them in an array using JsonFx's JsonReader.Deserialize(string) method: public List<Item> Items = new List<object>(); public void DeserializeItems(string jsonResponse) { var response = JsonReader.Deserialize<Dictionary<string, object>>(jsonResponse); var data = response["data"] as Dictionary<string, object>; var items = data["items"] as Dictionary<string, object>; foreach (Dictionary<string, object> item in items.Values) { var newItem = new Item(); newItem.itemId = (string)item["itemId"]; newItem.defId = (string)item["boost_rapidfire"]; newItem.quantity = (int)item["quantity"]; // etc... Items.Add(newItem); } } Alternatively, you can also use JsonFx's JsonWriter.Serialize(object) method in the foreach loop to then be able to use Unity's JsonUtility to automatically map it as an Item. Understandably, both methods have their own pros and cons. However, it should be able to get the job done in this case. Hope this helps! Please let us know if you have further questions or inquiries about this.
  • Number of users via web hook or S2S call

    Moved APIs s2s webhook
    2
    0 Votes
    2 Posts
    1k Views
    Paul WinterhalderP
    Hmm, not really... You can get the number of sessions created in an hour with this call: https://getbraincloud.com/apidocs/apiref/#capi-globalapp-sysgetdailycounts But brainCloud doesn't otherwise track a concurrent session count per app. There are certainly 3rd party analytics packages that you could link into your client that would give you that sort of information though. Paul.
  • Password content specification?

    Solved General password email cloudcode
    4
    0 Votes
    4 Posts
    2k Views
    Paul WinterhalderP
    FYI - this feature was added in brainCloud 4.13 - https://getbraincloud.com/apidocs/release-4-13/