chyiiiiiiiiiiii / flutter_zendesk_messaging

Zendesk-Messaging for Flutter developer
Apache License 2.0
31 stars 46 forks source link

Problem in release Android #23

Closed urielvexi closed 3 days ago

urielvexi commented 1 year ago

this package used to work form me, since I updated to zendesk_messaging: ^2.7.5 now I get the next error in release: [ZendeskMessaging] - initialize failure - java.lang.AssertionError: Missing field in a9.b [ZendeskMessagingPlugin] - Messaging needs to be initialized first

it still works in debug, any idea how could I fix it?

urielvexi commented 1 year ago

Last version than did work for me was 2.7.4, a9.b means zendesk.android.internal.proactivemessaging.model.ConditionType

Pride049 commented 1 year ago

@urielvexi The same issue, release apk cannot do anything and without any log output. Did you have any workaround for this? Thanks!

urielvexi commented 1 year ago

@Pride049 I did a downgrade to 2.7.4, I didn't find a workaround for 2.7.5

Pride049 commented 1 year ago

Thanks, it looks good on 2.7.4.

xang555 commented 1 year ago

if you using proguard add this line

# Zendesk
-keepnames class zendesk.** { *; }
manalisangani18 commented 1 year ago

Add these code in project level build.gradle

repositories {
    ...
    maven {
        url "https://zendesk.jfrog.io/artifactory/repo"
    }
}

Add dependency in app level build.gradle

dependencies {
    .....
    //zendesk
    implementation "zendesk.messaging:messaging-android:2.13.0"
}
chyiiiiiiiiiiii commented 1 month ago

Please try new version.

JimmyTai commented 3 days ago

Please read this doc: https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/android/known_issues/ I will add one more step for setting up proguard on README.

If u still meet the issue please re-open it or create a new issue.