最近搜索
没有最近搜索

hanae
已加入2021年10月16日
·
最后活动2021年11月11日
关注
0
关注者
0
活动总数
4
投票
0
订阅
2
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 hanae
hanae 创建了一个帖子,
帖子 Developer - Zendesk SDKs
Hello,
I've just adding the chat sdk to my react native project and I got this
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.android:flexbox:2.0.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- file:/Users/izi/.m2/repository/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- file:/Users/izi/Desktop/app/node_modules/react-native/android/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- file:/Users/izi/Desktop/app/node_modules/jsc-android/dist/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- https://dl.google.com/dl/android/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- https://maven.google.com/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- https://www.jitpack.io/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
- https://zendesk.jfrog.io/zendesk/repo/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom
Required by:
project :app > com.zendesk:messaging:5.2.1
my build.gradle(app module)
implementation group: 'com.zendesk', name: 'chat', version: '3.3.1'
implementation group: 'com.zendesk', name: 'messaging', version: '5.2.1'
any idea please?!
已于 2021年11月11日 发布 · hanae
0
关注者
9
投票
6
评论
hanae 创建了一个帖子,
帖子 Developer - Zendesk SDKs
Hi community,
I'm using Chat SDK V2 in my react native project as a native module, when I add chatAPIConfiguration to set visitorInfo and department I can't start chat, no bot message, only a blank screen even trying to send messages are never delivered.
here is my code:
#import
#import "ZendeskChatModule.h"
#import
#import
#import
#import
#import
#import
RCT_EXPORT_METHOD(startZendeskChat:(NSString *)name email:(NSString *)email
{
dispatch_async(dispatch_get_main_queue(), ^(void){
// initialize zendesk chat sdk
[ZDKChat initializeWithAccountKey:key appId:apid
queue:dispatch_get_main_queue()];
ZDKChatAPIConfiguration *chatAPIConfiguration = [[ZDKChatAPIConfiguration alloc] init];
ZDKVisitorInfo *visitorInfo = [[ZDKVisitorInfo alloc] initWithName:name email:email phoneNumber:@""];
// Chat Configuration
ZDKChatFormConfiguration *formConfiguration = [[ZDKChatFormConfiguration alloc]
initWithName:ZDKFormFieldStatusOptional
email:ZDKFormFieldStatusOptional
phoneNumber:ZDKFormFieldStatusOptional
department:ZDKFormFieldStatusHidden];
chatAPIConfiguration.department = @"Mobile application";
chatAPIConfiguration.visitorInfo = visitorInfo;
ZDKChat.instance.configuration= chatAPIConfiguration;
ZDKChatConfiguration *chatConfiguration = [[ZDKChatConfiguration alloc] init];
chatConfiguration.isAgentAvailabilityEnabled = YES;
chatConfiguration.isPreChatFormEnabled = YES;
chatConfiguration.isOfflineFormEnabled = YES;
chatConfiguration.preChatFormConfiguration = formConfiguration;
// messaging config
ZDKMessagingConfiguration *messagingConfiguration = [[ZDKMessagingConfiguration alloc] init];
messagingConfiguration.name = @"bot";
// Build view controller
NSError *error = nil;
NSArray *engines = @[
[ZDKChatEngine engineAndReturnError:&error]
];
UIViewController *viewController = [ZDKMessaging.instance buildUIWithEngines:engines
configs:@[
messagingConfiguration,
chatConfiguration
]
error:&error];
// close view controller
viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close"
style: UIBarButtonItemStylePlain
target: self
action: @selector(dismissChatUI)];
// Present view controller
UINavigationController *chatController = [[UINavigationController alloc] initWithRootViewController:viewController];
[RCTPresentedViewController() presentViewController:chatController animated:YES completion:nil];
});
}
已于 2021年9月30日 发布 · hanae
1
关注者
3
投票
1
Comment