Skip to content
  • 0 Votes
    4 Posts
    362 Views
    Paul WinterhalderP
    Happy to help!
  • Method to access "other user" items

    Solved General users items
    2
    1 Votes
    2 Posts
    296 Views
    Paul WinterhalderP
    Hi Claudiu, It's possible to do this using cloud script... you just need to impersonate the other user... Here's an example script that does this - caveat, it only returns the first page of user items. Create the script, and set it's test parameters to: { "profileId": "www-xxx-yyy-zzzz-123456" } (Note - you'll of course want to replace profileId with an id of a user that you want to test with.) And here's the code... var response = {}; // We need to impersonate another user to make this call var otherSession = bridge.getSessionForProfile( data.profileId ); var otherUserItemsProxy = bridge.getUserItemsServiceProxy( otherSession ); // Now, request the page of items from that proxy var context = { "pagination": { "rowsPerPage": 50, "pageNumber": 1 }, "searchCriteria": {}, "sortCriteria": { "createdAt": 1 } }; var includeDef = true; var itemResult = otherUserItemsProxy.getUserItemsPage( context, includeDef ); if (( itemResult.status == 200) && ( itemResult.data.results.count > 0 )) { response.items = itemResult.data.results.items; } else { response.items = []; } response; For convenience I've attached an export of the script. You can import this script into your app from the Design | Cloud Code | Scripts screen. Hope that helps! Paul. RetrieveAnotherUsersItems.ccjs
  • Award Achievement Issue

    Solved Cloud Code cloud code script gamification
    5
    0 Votes
    5 Posts
    403 Views
    D
    Cheers guys. Thanks for the quick response!
  • brainCloud 4.3 is here!

    Moved General 4.3 braincloud release
    1
    0 Votes
    1 Posts
    188 Views
    No one has replied
  • 0 Votes
    1 Posts
    187 Views
    No one has replied
  • 0 Votes
    1 Posts
    215 Views
    No one has replied
  • Online state when viewing user

    Suggestions users
    2
    0 Votes
    2 Posts
    338 Views
    Paul WinterhalderP
    Hmm, I'm guessing that this is so that you as a developer have a warning that you may be mucking with an online user's data? Sadly, unless the user is using RTT, the system doesn't deterministically know that a user is still online. We do however know when the user last logged in - and that is shown on the User Summary page here (see capture). You can further get an idea if a user is still online via the User Monitoring | Logs page... Might be interesting to see if we could query the last session for the time of the last received request... though we'd need to somehow differentiate a real session from an API Explorer session... Hmm, some food for thought. [image: 1572725186353-2019-11-02_15-55-22-resized.png]
  • 0 Votes
    2 Posts
    264 Views
    A
    Hi, One thing that you wont be able to do via api is managing users (list api), other than that almost everything is available with cloud script.
  • Tournament division by level

    General sport-league divisions
    2
    0 Votes
    2 Posts
    253 Views
    Paul WinterhalderP
    Hi, This is very doable in brainCloud. Check out the Tiers design note in this knowledge-base article: http://help.getbraincloud.com/en/articles/3344756-increasing-tournament-engagement-with-divisions-and-or-tiers Hope that helps! Cheers, Paul.
  • 0 Votes
    6 Posts
    607 Views
    Paul WinterhalderP
    What sort of devices? Will people really sit there logged into multiple devices, and expect them all to rise in realtime? I mean, wouldn't a user play on one device. Finish, and maybe pick up another device - and when they do, you refresh all the stats when the app loads? I would suggest you use RTT for real-time notifications - but we actually assume that that a user would only have one logged in RTT session - so that won't work. You could send push notifications to all of the devices. Push notifications can have data payloads - so your client app(s) can catch the updated data, or maybe the notification is just a signal to the client to request updated data... (likely more flexible). Alternatively, I guess your option best option would be to have the devices poll every <x> minutes or so... Honestly, the use case still seems a bit weird though - I'm probably just not understanding something Paul.
  • Timeouts?

    Solved APIs timeout unity
    4
    0 Votes
    4 Posts
    435 Views
    U
    Thanks guys! I figured it would be ridiculous if I had to do timeout checks and retries myself
  • brainCloud 4.2 is released!

    Moved General 4.2 release announcement
    3
    0 Votes
    3 Posts
    345 Views
    H
    +1 to updated roadmap. Also wishing you guys implement web payments soon (xsolla or any other)
  • Unity AddressableAssets

    Solved APIs unity
    4
    0 Votes
    4 Posts
    438 Views
    Paul WinterhalderP
    Follow-up on this... My guys have looked into it, and the way we version our global files isn't compatible with this new feature from Unity. Apologies! (PS - No plans yet for when/if we'll support it. Certainly tons of folks use an external CDN with brainCloud apps though - so the option is still there for you!)
  • Unity basic setup

    Solved APIs unity
    5
    0 Votes
    5 Posts
    466 Views
    Paul WinterhalderP
    Cool to see the forums working! I've marked @Panagiotis-Milios more detailed explanation as the accepted solution, but kudos to you @Chris-Brown for pointing it out, and @Panagiotis-Milios for providing the detailed example. Thanks a bunch!
  • Group system with larger than 50 limit

    Solved APIs groups group unity
    2
    0 Votes
    2 Posts
    260 Views
    Paul WinterhalderP
    Hi Chris, The maximum # of group members is controllable by our support team. Just send a request to our support team, indicating the name and appId of the app, and what you'd like the max to be and why. (A short description of your use cases would be helpful - since we just need to review to see if we think there would be any performance gotchas). We'll do a quick review and hopefully approve! Cheers! Paul.
  • GetMyGroups never returns

    Solved APIs groups unity
    2
    0 Votes
    2 Posts
    235 Views
    JonathanJ
    This error has been since resolved. A help article has been made on the groupType page: http://help.getbraincloud.com/en/articles/3272656-design-groups-group-types If experience similar problems to this forum topic with our Unity library, ensure brainCloud has been added to a gameObject, and that gameObject is not disabled.
  • Modules/Common code scripts?

    Solved Cloud Code script
    7
    0 Votes
    7 Posts
    709 Views
    A
    Similar situation here, i had built a micro framework on GameSparks to cover cases that almost every cloud driven game require. This saved huge amount of time working on new games and at the same time sharing code among existing features. Please consider this requirement a must have for any serious game development.
  • View all users

    Suggestions suggestion
    1
    0 Votes
    1 Posts
    302 Views
    No one has replied
  • Mass delete of users.

    General crud
    3
    0 Votes
    3 Posts
    335 Views
    C
    @Chris-Brown I see it now. Thank you!
  • Getting public groups only

    Solved APIs group unity windows
    4
    0 Votes
    4 Posts
    414 Views
    Paul WinterhalderP
    D'oh - bit late on the update, but 4.1 has been released, and you can now search on isOpenGroup (as well as the new groupSummaryData). 4.1 Release notes here - https://getbraincloud.com/apidocs/release-4-1/ Cheers! Paul.