Skip to content

APIs

68 Topics 274 Posts

Questions specific to particular APIs, libraries, etc.

  • Global Entities retrieval issues and questions

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    P
    @wjurica Assuming you're using c#, consider Newtonsoft for the deserialization & mapping process. It's two lines of code to map your data to a class. https://www.newtonsoft.com/json
  • [Unity] Registering push notifications specifically for Async turns.

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    J
    For clarity, Firebase Cloud Messaging recommends creating a topic using Pub/Sub, though this approach is optional.
  • [Unity] BrainCloud 5.4.1 is reporting error in an empty project

    Unsolved
    2
    1
    0 Votes
    2 Posts
    746 Views
    C
    Hi there- thanks for bringing this to our attention! A newer version of the Unity Package containing a fix for this has been uploaded. Available here: https://github.com/getbraincloud/braincloud-csharp/releases/tag/5.4.1
  • [Unity] BraincloudWrapper.ProductService not found on BC 5.3

    Solved products
    2
    0 Votes
    2 Posts
    1k Views
    Paul WinterhalderP
    Hi @francesco-lenolli , The ProductService has actually been deprecated. You should use the AppStore service instead. I hope that helps! Paul. [image: 1726617384339-2024-09-17_19-55-15-resized.png]
  • [Unity] In App Purchases

    Solved unity in app purchases mobile
    2
    0 Votes
    2 Posts
    2k Views
    J
    brainCloud supports a wide range of popular in-app purchases, including Google Play, Apple, Facebook, Amazon, and Steam, etc.. In most cases, the purchase process is initiated through the corresponding IAP plugin that you need to download into your Unity project. Then, verify the receipt received from the purchase outcome with brainCloud by calling VerifyPurchase API. It should be noted that the necessary configuration for the IAP store must be set up in the brainCloud portal for your app, including the products section and platforms section. Some store integration examples are available on our documentation website -- https://docs.braincloudservers.com/learn/portal-tutorials/store-integration-google/ Hope this helps!
  • Unreal 5.1 + Online Services

    unreal
    4
    0 Votes
    4 Posts
    2k Views
    Paul WinterhalderP
    We should point out that this doesn't mean that there aren't Unreal multiplayer examples in brainCloud - they just don't use the online subsystem paradigm per se. Here's our latest Unreal dedicated server example: https://github.com/getbraincloud/braincloud-roomserver-unreal
  • Is profileId returned by auth considered sensitive?

    Unsolved profile authentication
    2
    0 Votes
    2 Posts
    1k Views
    P
    It's not. Just knowing a playerId is really not important as it's only a unique identifier for another player and nothing more than that.
  • Error launching room on room server

    Unsolved
    2
    1
    0 Votes
    2 Posts
    843 Views
    Paul WinterhalderP
    Hi, Has your dockerhub team invited the "braincloudhost" user to your team with read-only privileges so that we can retrieve your custom image? The email address of that account is paulw AT getbraincloud.com. Hope that helps! Paul. [PS - Once you've done that - ping us here or in the support chat. We need to manually access the request these days <- Recent change to how dockerhub works.]
  • UserItems.AwardUserItem cannot be blocked for clients

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    Paul WinterhalderP
    Update - we have patched this issue in our Public BaaS. The API call is now blockable via API Blocking - but it's also disabled by default now (via the core API itself). There's a new compatibility flag (that is by default enabled for all existing apps) that preserves the old functionality. Paul.
  • Update Entity with updatesingleton not blocked by platform min version

    Solved
    3
    1
    0 Votes
    3 Posts
    1k Views
    L
    thank you
  • Error 40316 on authenticate

    Moved s2s authentication
    3
    0 Votes
    3 Posts
    1k Views
    B
    @panagiotis-milios Thank you for your response, appreciate your time ! I solved the issue : The url I was using was wrong, more precisely I was using the wrong servlet : I was using /dispatcherv2 while I was supposed to use /s2sdispatcher. I also want to point out that you are right about the "appId" below the "packetId", it is not needed. Thank you, I hope this thread will help anyone encountering this problem !
  • Difficulty parsing JSON response in Unity

    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 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.
  • getMessagesPage with $or field not working probably

    messaging
    2
    0 Votes
    2 Posts
    901 Views
    J
    Hi Kirlos, as you can see from the response's message field, there are two elements (id and name) underneath, you need to append .id to specify the first search field for id, so change the "message.from" to "messsge.from.id" should solve this problem.
  • Solution: WebGL: Unity 2021 Websocket-native Runtime Error

    unity error solution web
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Authentication error - Unity iOS

    unity error ios
    4
    0 Votes
    4 Posts
    2k Views
    A
    Hi Gavin, Did you resolve the crash issue on iOS? I am experiencing it as well, so I feel I must have missed something Cheers, Andreas
  • Convert Anonymous to username/password

    unity authentication
    2
    0 Votes
    2 Posts
    2k Views
    J
    Call AttachUniversalIdentity() method from client lib, the username is uniqueness enforced.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    J
    Hi Dylan, actually, the argument purchaseData for StartPurchase() method takes the Steam Item ID (from Edit Price Entry pop-up) as the input field (not the Item ID from the product list) [image: 1650316497178-7e9ff7b1-1854-4a48-8e38-d219501da3fd-image.png]