Zendesk Android SDK-无法显示帮助中心

问题描述

我正在开发一个Nativescript应用,该应用需要显示Zendesk帮助中心。为此,我正在创建一个插件,然后将其在应用程序中使用。在iOS 14上使用时,当前可用的插件崩溃。对于iOS,我没有任何问题,但是在显示Android帮助中心时遇到了麻烦。

我首先添加了存储库和依赖项:

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

dependencies {
    implementation group: 'com.zendesk',name: 'support',version: '5.0.1'
}

然后,我使用以下代码显示帮助中心

//init the zendesk instance - the url,appID and ClientID are correct - they work in iOS
zendesk.core.Zendesk.INSTANCE.init(android.foregroundActivity,this.url,this.appID,this.clientID);

//set the identity
const anonymousIdentityBuilder: zendesk.core.AnonymousIdentity.Builder
            = new zendesk.core.AnonymousIdentity.Builder();
zendesk.core.Zendesk.INSTANCE.setIdentity(anonymousIdentityBuilder.build());

//create the help center object
const help = zendesk.support.guide.HelpCenteractivity.builder()
            .withContactUsButtonVisible(false)
            .withCategoriesCollapsed(false)
            .withShowConversationsMenuButton(true);
            
//show it
help.show(android.foregroundActivity,java.util.Arrays.asList([]));

当我运行上面的代码时,什么都没有发生。没有错误,但帮助中心未显示

我错过了一步吗?我能够做到iOS版本没有问题,但是Android规避了我。

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)