zoho / SalesIQ-Mobilisten-iOS

Your mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
https://mobilisten.io
12 stars 4 forks source link

Issue: No visible @interface for 'LCSharedHandler' declares the selector 'show:' #17

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug While trying to generate a build in iOS, getting the error: No visible @interface for 'LCSharedHandler' declares the selector 'show:'

To Reproduce Steps to reproduce the behavior:

  1. In my existing react native app, added pod pod 'Mobilisten','3.6.4'
  2. Delete podfile.lock and Pods folder
  3. pod repo update && pod install
  4. Clean Project and build in Xcode
  5. See error: No visible @interface for 'LCSharedHandler' declares the selector 'show:'

Expected behavior Successful build generation for iOS

Screenshots

Screenshot 2021-03-30 at 11 24 47 AM

Smartphone (please complete the following information):

Rishabh-Raghunath commented 3 years ago

@bala-kredx The ZohoSalesIQ.Chat.show API has been used incorrectly here. You can find the documentation for this API here.

Here is the example code snippet that should work:

RCT_EXPORT_METHOD(openChat){
    dispatch_async(dispatch_get_main_queue(), ^{
        [[ZohoSalesIQ Chat] showWithReferenceID:nil new:NO];
    });
}
Rishabh-Raghunath commented 3 years ago

We hope that the API reference provided answers your question. This issue is being closed. Feel free to add more comments here in case you have further queries.