Recent searches
No recent searches

hanae
Joined Oct 16, 2021
·
Last activity Nov 11, 2021
Following
0
Followers
0
Total activity
4
Votes
0
Subscriptions
2
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by hanae
hanae created a post,
Post 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?!
Posted Nov 11, 2021 · hanae
0
Followers
9
Votes
6
Comments
hanae created a post,
Post 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];
});
}
Posted Sep 30, 2021 · hanae
1
Follower
3
Votes
1
Comment