• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
D

Davis Knox

@Davis Knox
About
Posts
8
Topics
4
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Tournament Questions
  • D Davis Knox

    I am planning on using weekly rotating leaderboards in conjunction with weekly tournaments to increase engagement in my game.

    I noticed there is a "auto-claim" option for tournaments in the portal. Is it possible to hook into this behavior to modify tournament rewards? My game has a "coin bonus" IAP that multiplies earned VC, and I would like to apply it to my tournament rewards.

    Alternatively, if it is not possible to hook into the auto claim feature, and I must claim tournament rewards manually, I plan to do so via cloud code. I noticed that the claimTournamentReward API takes a version, but the description of the api states "Processes any outstanding rewards for the player." If a user has an outstanding reward(s) for some tournament(s) some number of weeks ago, can I pass -1 to this version to award an aggregated reward, or must I manually get all the versions of each outstanding tournament the user has rewards for and manually claim each one individually?

    Thanks,
    Davis


  • Processing Refunds?
  • D Davis Knox

    Thanks for the response Paul.

    So using "User Entities" I can record the refund receipt with the User, but it won't show up in the transaction log in the portal.

    Via Custom Entities I could have a globally searchable refund receipt, but I need to pay for a Plus plan to get this functionality, and still I assume it won't show up in transaction view.

    Just confirming that there's no way for this to show up in the user transaction log in the portal right now?

    -Davis


  • Processing Refunds?
  • D Davis Knox

    Hi there.

    I am currently making a mobile application that utilizes Unity's IAP library to manage IAP. I also use you guys for data storage and receipt validation.

    I am currently testing refund scenarios and am not seeing much on Braincloud API in regards to refunds.

    I currently call a cloud code script from my client that performs a VerifyPurchase call to validate the receipt, and then I can ensure receipt has purchaseState:1 (GooglePlay receipt). At this point I can revoke the purchase in the cloud code script.

    I am noticing that with this method, the cancelled receipt does not show up in the user's Transaction log, only the original purchase receipt shows up (purchaseState:0).

    Is there a better way to do this?

    Thanks,
    Davis


  • Understanding VerifyPurchases for "Non-Consumables"
  • D Davis Knox

    Thanks Paul that all makes sense. I will likely go with wrapping the Verify call in a cloud script to be consistent with my other purchase code.


  • Understanding VerifyPurchases for "Non-Consumables"
  • D Davis Knox

    Hi there,

    I have a mobile application that I am planning to release on both Android and iOS. My monetization strategy is to have a virtual currency and then a cosmetic store where the user can unlock items via VC. The user earns VC via gameplay and also upon watching ads. I also allow the user to purchase VC via IAP (which I can use VerifyPurchases on brain cloud to award to the user). I was also going to sell a coin boost that is not purchasable via VC (IAP only).

    I am seeing that VerifyPurchases automatically will award VC to my server-side VC balance upon a successful verify. What happens with Non-Consumable products (like my coin booster) upon successful verification? I don't see anything in the available APIs to read if a product was successfully purchased. Is it now up to the client to then save more data on braincloud to log this purchase, or to use a post hook on verifyPurchases to record this purchase? I am currently keeping track of my unlocks in player statistics. What's the best practice here?

    Thanks,
    Davis


  • Award Achievement Issue
  • D Davis Knox

    Cheers guys. Thanks for the quick response!


  • Award Achievement Issue
  • D Davis Knox

    Hi there,

    I am attempting to award some achievements via cloud code, and am running into an error that I can't seem to rectify with the existing documentation. I'm getting the error:

    "Script Error (Line 79, Column 0): Can't find method com.braincloud.core.service.scripting.proxy.GamificationServiceProxy.awardAchievements(object)."
    

    And code causing the error:

        // process achievements, put them both here so we only access proxy if we need it (for minimal api count)
        if( statTotalMeters+meters >= PERSISTANCE_TRAVEL_THRESHOLD ||
            statLandings+padsLanded >= SANCT_THRESHOLD)
        {
            var gamificationService = bridge.getGamificationServiceProxy();
            var achievementIds = [];
            if(statTotalMeters+meters >= PERSISTANCE_TRAVEL_THRESHOLD)
            {
                achievementIds.push(PERSISTANCE_ID);
            }
            if(statLandings+padsLanded >= SANCT_THRESHOLD)
            {
                achievementIds.push(SANCT_ID);
            }
            
            var achievementRes = gamificationService.awardAchievements(achievementIds)
        }
    

    Everything "feels" right but it's likely something silly I'm doing wrong?

    Thanks,
    Davis

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users