RequestActivity does not open on Release build

7 Kommentare

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi George! The version of our SDK that you're using is from late 2020 and may be the cause of the issues that you're seeing. Could you please update to the latest version (5.0.9 for Android) and let us know if you're still experiencing the issue? If you are, please use one of our sample apps to see if the issue occurs for you there and then share the code snippet and the name of the sample app so that we can try and reproduce this as well.

    0
  • George Tzanoudakis

    Hello ! Thanks for the quick answer

    I have upgraded to 5.0.9 and the problem still persists . I couldn't reproduce it with your samples . I have tried disabling Proguard (even though i added the suggested rules) but the problem still stands . What is weird is that the bug is not consistent on all devices. On some devices it is working and on some it is not. Also there is no error in the logs 

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Thanks for checking those, although I'm not thrilled that the solution wasn't just a simple SDK upgrade. I'll check with our SDK devs to see if they're aware of any possible next steps for what you would want to check, since Java/Kotlin are not my strong suit. I'll drop you an update when I hear back from them.
    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Actually, one thing that they might want to know...on the devices where it isn't working, are there any similarities, like OS versions or even something seemingly unrelated like time of day?
    0
  • George Tzanoudakis

    I was trying to find a correlation between devices or OS version but it seems unrelated . I didnt check if it is time related but it looks like that if it not working on a device it is consistent

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hey again, apologies for not clarifying this earlier, but when you mention that there is nothing in the logs, are you using our logger? And while we're at it, could you provide the code snippet (with the config) for the builder? 

    0
  • George Tzanoudakis

    Hello, these are the relevant parts of the class . I tried with logger enabled but still no error on the logs 

    class HelpCenter(context: Context) {

    init {
    Zendesk.INSTANCE.init(
    context,
    zendeskUrl,
    applicationId,
    clientId
    )
    Support.INSTANCE.init(Zendesk.INSTANCE)
    }

    fun initializeIdentity(userStoreData: UserStoreDataSource) {

    val user = userStoreData.loadUser()
    if (user.isEmpty()) {
    Zendesk.INSTANCE.setIdentity(AnonymousIdentity.Builder().build())
    } else {
    val identity = AnonymousIdentity.Builder()
    .withEmailIdentifier(user.email)
    .withNameIdentifier(user.username)
    .build()
    Zendesk.INSTANCE.setIdentity(identity)
    }
    }


    private fun openRequestScreen(webForm: WebForm, title: String) {
    val config = RequestActivity.builder()
    .withRequestSubject(getString(R.string.help_center_form_subject, title))
    .withTicketForm(webForm.id, listOf(CustomField(webForm.reasonId, webForm.reasonValue)))
    .config()

    RequestActivity.builder().show(this, config)
    }
    }

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk