Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  How to use mobile messenger SDK for Android with proguard.

    Posted 06-10-2025 07:50

    Hello,

    When we use proguard, on our mobile apps which integrate the genesys mobile SDK, with the minifyEnabled and shrinkResources options set to true, the button on the messenger are displayed without border or color. By deactivating proguard, the buttons are displayed properly.

    Does any one know which exception rules must be put in proguard for the SDK ?
    We tried his set of rules but it doesn't work :
    -keep class com.google.android.flexbox.** {*;}
    -keep class com.genesys.cloud.messenger.transport.core.ButtonResponse
    -keepnames public class com.google.android.flexbox.FlexboxLayoutManager

    Thanks for your help.

    Regards,
    Ludovic Guillou. 



    #MobileMessenger

    ------------------------------
    Ludovic Guillou
    CIO
    ------------------------------


  • 2.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 06-10-2025 07:58
    Edited by Akosne Tamasi 06-10-2025 09:04

    Hi Ludovic,

    Can you please confirm which SDK you are using? Mobile Messenger SDK or Mobile Transport SDK? Which version of the SDK you are using? Also can you send us the proguard version?

    Thank you.



    ------------------------------
    Monika Tamasi
    Mobile Development Manager
    ------------------------------



  • 3.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 06-11-2025 05:04

    Hello,

    We are using the Mobile Messenger SDK  1.10.2 and the version of proguard is R8.



    ------------------------------
    Ludovic Guillou
    CIO
    ------------------------------



  • 4.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 06-11-2025 05:34

    Thank you Ludovic. I've created a ticket to the engineer team with high priority. We will provide answers or workarounds hopefully soon.



    ------------------------------
    Monika Tamasi
    Mobile Development Manager
    ------------------------------



  • 5.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 07-24-2025 10:41
    Edited by Grant McKay 07-24-2025 10:41

    Hi @Akosne Tamasi @Ludovic Guillou

    We are experiencing similar issue as above.  Do you have any solution or update on the case you can share?



    ------------------------------
    Grant McKay
    ------------------------------



  • 6.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 07-24-2025 14:23

    Hi Grant McKay,

    We will document the workaround - no deadline yet, and have a ticket to support R8 ProGuard.

    Until then the suggested workaround:

    Add in Proguard rulesfile :app proguard-rules.pro

    -keep class com.genesys.cloud.** { *; }



    ------------------------------
    Monika Tamasi
    Mobile Development Manager
    ------------------------------



  • 7.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 08-11-2025 05:16

    Hi @Akosne Tamasi

    Any update please ?
    I sent your workaround (thanks !) to our app team.

    KR,

    Jean-Christophe



    ------------------------------
    Jean-Christophe Pondi
    Product Owner - Contact Center
    BNP PARIBAS PERSONAL FINANCE SA
    ------------------------------



  • 8.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 08-11-2025 06:31

    Hi Jean-Christophe,

    There is no real update. The ProGuard update is planned for 1.17 at the end of September, but this is still not confirmed yet. As soon as it is confirmed, I will update the thread.

    Thank you.



    ------------------------------
    Monika Tamasi
    Mobile Development Manager
    ------------------------------



  • 9.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 16 days ago

    Hi Jean-Christophe,

    I'm happy to announce to you, that we released version 1.18, which contains R8 ProGuard.

    Best Regards,

    Monika



    ------------------------------
    Monika Tamasi
    Mobile Development Manager
    ------------------------------



  • 10.  RE: How to use mobile messenger SDK for Android with proguard.

    Posted 15 days ago

    Hi Monika,

    Many thanks !
    I've informed app dev team.

    Kind Regards,

    Jean-Christophe



    ------------------------------
    Jean-Christophe Pondi
    Product Owner - Contact Center
    BNP PARIBAS PERSONAL FINANCE SA
    ------------------------------