Skip to content

General

77 Topics 190 Posts

Discuss all the things!

  • Method to access "other user" items

    Solved 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
  • brainCloud 4.3 is here!

    Moved 4.3 braincloud release
    1
    0 Votes
    1 Posts
    188 Views
    No one has replied
  • Changing groups from Public to Private and back on dashboard

    groups unity
    1
    0 Votes
    1 Posts
    187 Views
    No one has replied
  • 0 Votes
    1 Posts
    215 Views
    No one has replied
  • 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

    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.
  • brainCloud 4.2 is released!

    Moved 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)
  • Mass delete of users.

    crud
    3
    0 Votes
    3 Posts
    335 Views
    C
    @Chris-Brown I see it now. Thank you!
  • Award currency on new registration

    Solved currency rewards
    4
    0 Votes
    4 Posts
    399 Views
    Paul WinterhalderP
    Happy to help! Paul.
  • brainCloud 4.1 is officially released!

    Moved release
    2
    1 Votes
    2 Posts
    302 Views
    Omar AlzayedO
    @Paul-Winterhalder said in brainCloud 4.1 is officially released!: Group Enhancements Loving the summary data for groups. Made my life easier. Thank you, you guys rock! Omar
  • Import IAP products catalog

    iap
    2
    0 Votes
    2 Posts
    281 Views
    Paul WinterhalderP
    Hi, Unfortunately the answer is no on that one. (For what it's worth, I'm not sure how we'd make that one work - since brainCloud allows you to link products across AppStores - not sure how we'd be able to establish those relationships in an import). The good news is that brainCloud allows you to set up one list of products, with multiple price points, across all stores. And then, if you want to change prices (put things on sale, etc) - it's just a couple of quick clicks to do that across all the stores (the new prices would be instantly active). So we recommend that devs initially configure both a "regular" and a "sale" price for all items. There's definitely a bit of pain getting it initially configured - but it's well worth it in the long run. Not the answer you were hoping for - but I hope it helps! Paul.
  • brainCloud Roadmap (and Release 4.1 content)

    Moved release roadmap
    1
    1 Votes
    1 Posts
    217 Views
    No one has replied
  • So - our forums are up! What do you think?

    general
    4
    4 Votes
    4 Posts
    436 Views
    C
    I like the new forums. It was something I always felt was lacking and with the quick response time, they have already proven to be very useful. Hopefully this helps connect developers using brainCloud together as well as with the brainCloud team.
  • 1 Votes
    2 Posts
    344 Views
    Steve JonesS
    Additionally! Using a Pre-Hook, to the Post Score Cloud Code Script, to validate incoming data. Doing the actual JoinTournament / PostTournament Score via Cloud Code Script, once again verifying data. Lastly, validating the results of the Cloud Code Script via Post-Hook, allows developer's to confirm that the incoming data results in the expected outgoing data. If at any point validation fails, tag the user as a Cheater! If users are going through enough trouble to try and cheat, they must enjoy the apps experience. Instead of blocking the Cheater from using the app, ensure all Cheaters are playing against each other, via a Cheater leaderboards or any other means. This way the apps experience to Cheaters is unchanged, and only cheating against cheaters, but most importantly the rest of the user base does not get negatively impacted via a few rare users. Any other ideas? Interesting Applications for Cheaters?
  • Global Entities What, when, where and how?

    database entity
    5
    0 Votes
    5 Posts
    566 Views
    J
    Thank you, fantastic. I appreciate all the information you have given.
  • 0 Votes
    4 Posts
    453 Views
    Steve JonesS
    If your app uses Global Entities, don't forget to Export/Import the required entities from the Dev->Staging->Live apps. You can export all, or some via the Bulk Actions Menu within the Monitoring/Global Monitoring/ Global Entities page. More about Global Entity File Export Formats are here, https://getbraincloud.com/apidocs/api-modules/global-entity-file-formats/ Hope this helps!