Buildbox 2.3.7 Custom Button (gdpr And More)

Discussion in 'Official Announcements' started by NikRudenko, Oct 8, 2018.

  1. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    Hello everyone.
    Here is new build of 2.3.7 with a new "Custom Button" feature.
    With this new feature you can assign to execute native code for iOS or Android.
    This is especially helpful when you trying to revoke GDPR consent.

    So how it this works.
    1. Create a new Navigation Button and name it properly
    2. Choose 'Custom' from function drop down menu
    [​IMG]

    This is pretty much it.

    Now inside AdIntegrator.mm file you will have two more methods:
    Code:
    -(void)buttonActivated:(NSString*) name{
    
    }
    
    -(bool)buttonVisible:(NSString*)name{
        return false;
    }
    buttonActivated will be triggered every time you hit that button.
    buttonVisible you need to return true/false in order to keep this button visible or hide it

    BUILD:
    MAC: http://download.buildbox.com/buildb...3.7-2289_0040c3bdb251cb6194a9555709ae05d4.zip
    WIN: http://download.buildbox.com/buildb...3.7-2289_200ac92de990d5d0f7302c77e3c679c0.exe

    GDPR implementation.
    The logic here is simple. First you need to ask MoPub GPDR framework or other system if you need to show that button at all. In other words how revoke button if you have consent. That is where buttonVisible method will be handy for you.
    Then if user pressed a button you just simply call revokeConsent.

    That's it

    If you have any questions feel free to ping me privately.

    PS. this feature only works for iOS. After testing we will bring this to Android too.
     
    Forgive, lee.huu, itzonator and 5 others like this.
  2. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    @NikRudenko is this the final release of 2.3.7 or just an interim build to get GDPR out the door?
     
  3. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    What's the bug fixed in this build?
     
  4. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    this is build for 'Custom Button' feature preview. new shinny build is coming with improvements and detailed list of fixes
     
    AndyG, Sean Buildbox and AaroArts like this.
  5. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    So I guess we can ignore other bug(fixes), right? Because I just tested the cooldown feature and it seems it's actually worse than in the previous beta #2241. If not, just a heads up... cheers.
     
  6. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    613
    Likes Received:
    362
    Hey @NikRudenko,

    This happened on older builds but if you use a large amount of objects/scene and you move in between scenes using portals than behind you there are just a few objects that get deleted not all of them. It seems that we have a limit of 250 or so objects that got deleted. This is an issue if you are building a "stage"/scene with small tiles like 8x8 or 16x16.


    Steps to reproduce:
    1. Launch the app and import small png 16x16 for a swipe like game
    2. Create a level on first scene (start scene) with at least 250 tiles (you can make a box and another box inside it and so on so you can see the limit
    3. Duplicate the scene and use a portal to switch in between them
    4. Swipe back to reach the "start screen"
    5. Observe that the first level is not fully cleaned up no matter how much you set the back detection trashold option
    And it's good to mention that multiple object on the screen lowers the game performance on physical devices like a lot, on computer everything seems to look good
     
  7. ReVerseJ

    ReVerseJ Boxer

    Joined:
    Feb 26, 2018
    Messages:
    2
    Likes Received:
    0
    Any news on Admob rewarded video
     
  8. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You can add Admob Rewarded Videos using the Custom option and the AdIntegrator class.
    If you're stuck, follow the MoPub tutorial and then when you have that working, look at the Admob guide and you should be able to replace Mopub with Admob.
     
  9. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Hi @NikRudenko I don't see a custom function option in navigation button even after updating the software to 2.3.7, do you know why this is happening ?
    There is nothing below exit function for me , unlike the screenshot you have posted.
    Thanks
     
  10. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Anyone else experiencing the same problem ?
     
  11. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am not getting an option for custom button even after updating to Buildbox 2.3.7 beta , what to do ?
     
  12. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Sorry my bad, I downloaded the wrong beta version of Buildbox 2.3.7 . Thanks for this custom function @NikRudenko by the way.
    But I still have one more question what to do for Android , how to add a revoke consent button for android as well.
    GDPR was implemented a long time ago but buildbox still does not has revoke consent button in built.
    Also for Buildbox 3 what to do there is no button to revoke consent in it as well.
     
  13. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    How about the CUSTOM button on the Rewarded Video??
     
  14. Bilz636

    Bilz636 Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    313
    Likes Received:
    182
    Quick question:
    what it does? How to implement it into android games? and how can i preview?
     
  15. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    The rewarded video?
     
  16. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    hi, did u use this code. i am trying but its gives errors:

    - (void)screenOnEnter:(const char*) name{
    NSString* n = [NSStringWithUTF8String:name]
    if ([n is EqualToString: @"YOUR UI NAME"]){
    // put any code you want here to execute

    }

    }
     
  17. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Have you followed the MoPub Tutorial?
     
  18. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    yes i found this code that page. but i am not trying MoPub, i am trying to add custom event for analytics
     
  19. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    The problem is you have an extra space in your line of code. is EqualToString should be isEqualToString
     
  20. lee.huu

    lee.huu Boxer

    Joined:
    Feb 28, 2019
    Messages:
    7
    Likes Received:
    2
    Hi NikRudenko, any update for android yet? I looking for a similar function.
    Thanking you in advance.
     

Share This Page