zoho / salesiq-mobilisten-ios Goto Github PK
View Code? Open in Web Editor NEWYour mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
Home Page: https://mobilisten.io
Your mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
Home Page: https://mobilisten.io
Describe the bug
This bug happens on client no matter he is on chat screen or not, it looks like there is some unguarded variable problem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should not be a crash
Smartphone (please complete the following information):
Describe the bug
There is no no navigation bar to close the conversations page when I open the SDK UI in floating button.
Smartphone (please complete the following information):
Describe the bug
Cannot create a new conversation using a specific VisitorID anymore: [ZohoSalesIQ registerVisitor:@"2500"];
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The conversation should be created.
Screenshots
Here is a video showing the issue: https://imgur.com/a/JnF7fG8
Smartphone (please complete the following information):
Additional context
It only happens for a specific visitor ID: [ZohoSalesIQ registerVisitor:@"2500"]
. It used to work.
Hi!
Tomorrow (17 Sept 2020) the new Xcode will be released, would you mind to update Mobilisten with the new swift compiler?
If you guys are looking before it, Xcode GM is available to download as right now
Thanks!
Describe the bug
I can't able to compile when I try to access ZohoSalesIQSDK for access Launcher Theme by importing "Mobilisten" in my source.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It's should be compile without any issues. And I need to access and will do the same UI customisation
Smartphone (please complete the following information):
Kindly check and let me know how to solve that compiler error ?
Hi guys,
I downloaded the beta of Xcode and now we can't compile our project because of Mobilisten
Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler: MobilistenBeta/Mobilisten.framework/Modules/Mobilisten.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
I was checking this other project:
https://github.com/zoho/Mobilisten-iOS-Beta
But it has the same problem, it is not an issue now, but it will be when Xcode will be release Swift 5.2
Thanks!
I follow installation step as per give into zoho portal. but it give always error.i attach screenshot of error please help me to find out proper solution. Because same step follow in swift project and in work file for me.
[ZohoSalesIQ initWithAppKey:**zohoAppKey** accessKey:**zohoAccessKey** completion:^(BOOL completed) { }];
[ZohoSalesIQ.Chat setThemeColor:[UIColor navigationBarColor]];
[ZohoSalesIQ.Chat setBarTintColor:[UIColor navigationBarTextColor]];
[ZohoSalesIQ showLiveChat:YES];
I import header file in <Appdelegate.m> file.
Describe the bug
Getting error on making build, "No such module 'Mobilisten'". Although its added in pod file and running pod install shows its being added.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should make build properly
Smartphone
Do you usually run the project on the simulator or a physical device?
Both giving same error
Device: [e.g. iPad 8th Generation]
OS: [e.g. iOS 14.4.2]
Xcode Version: [e.g. 12.5.1]
Mobilisten Version: [e.g. 4.2.5]
Additional Info:
COCOAPOD VERSION: 1.7.5
RUBY VERSION: 2.7.0
Right now faced one more issue, the sdk is initialized but I am getting the following error, and no window is visible;
"Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service"
Originally posted by @ammarmarn in #20 (comment)
I am trying to implement the Mobilisten framework through Cocoapods,
I am using the below code to have it shown across all app screens
ZohoSalesIQ.initWithAppKey(mobilistenAppKey, accessKey: mobilistenAccessKey) { error in
guard error == nil else{return}
ZohoSalesIQ.Launcher.show(.always)
ZohoSalesIQ.Launcher.enableDragToDismiss(false)
}
the launcher was displayed for once and on the next runs it doesn't appear on any screen on any simulator
Could anyone help?!
Describe the bug
The chat always start on portrait
I might be missing something, but I couldn't see anything in the documentation about the orientation, it will be great if will work out of the box
To Reproduce
That's how we do right now on code:
ZohoSalesIQ.initWithAppKey("....")
ZohoSalesIQ.showLauncher(false)
ZohoSalesIQ.Chat.startChat(question: message)
ZohoSalesIQ.Chat.show()
Expected behavior
If the device rotate, the chat window should rotate with the device
In our case the iPad is on landscape, fixed on a mount so it is not as easy to rotate, but if you do, the chat keeps static not rotating with the device
Smartphone (please complete the following information):
We are trying on an iPad in landscape
Describe the bug
A clear and concise description of what the bug is.
When trying to compile my app I get :
Reference to 'kReachabilityChangedNotification' is ambiguous
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The app should compile without error
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The constant kReachabilityChangedNotification is defined in Reachability and Mobilisten library
Describe the bug
While trying to generate a build in Xcode 12.4, getting the error: 'Mobilisten/Mobilisten.h' file not found
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The build should be generated for iOS Simulator 14.4 (iPhone 11)
Smartphone
Additional context
Sometimes zoho launcher not showing on appear view for swiftui based project - ZohoSalesIQ.showLauncher(true)
Could it be that this SDK is not updated to the guidelines of Apple regarding the use of UIWebView?
Apple is not accepting apps that use UIWebView any more:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
We're using the React Native SDK, which has outdated binaries. We tried to replace the binaries reference with the ones in this project, which seems more active. However, we are still getting the same error from Apple.
Related issue on the React Native SDK: zoho/SalesIQ-Mobilisten-ReactNative#2
Is anyone else having this problem?
Could you confirm that this is working please?
this my code registervisitor
@IBAction func onClickBtnChatSpradz(_ sender: Any) { print(idMember ?? "") ZohoSalesIQ.registerVisitor(idMember) ZohoSalesIQ.Visitor.setName(namaMember) ZohoSalesIQ.Visitor.setEmail(email) ZohoSalesIQ.Visitor.setQuestion("Saya butuh bantuan terkait hal...") ZohoSalesIQ.Chat.show() }
What my mistake?
when i tried to chat with zoho. my chat not sending to panel dashboard
Running on simulator.
After updating to Xcode 11 following error occurs.
" Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler"
Describe the bug
The bug is because a Multithreading Core Data Violation, I explain you more. Around 6 month ago I just started to test my app using the flag of Xcode to Multithreading Core Data Violation. And I found with early versions (all Betas) of your SDK that issue was happening. Today I updated to the Release 3.0 and I found the same issue. It's very simple to reproduce.
To Reproduce
Steps to reproduce the behavior:
Go to 'Edith Scheme', then Arguments and put this on the list: -com.apple.CoreData.ConcurrencyDebug 1
. Be sure that the checkmark is marked
Hide the Default Button and use a custom one. In my code I only use the next line:
In AppDelegate.swift in the method application(_:didFinishLaunchingWithOptions:)
ZohoSalesIQ.initWithAppKey("<MY APP KEY>", accessKey: "<MY ACCESS KEY>") { (success) in
print(success)
}
ZohoSalesIQ.showLauncher(false)
ViewController
I am using only this function in a IBAction func
: ZohoSalesIQ.Chat.show()
Expected behavior
Easy. Don't crash. Because this crash can appear in any moment in Production
Screenshots
You can see on the Thread 2, on the row with number 0, the flag of Xcode belong to Multithreading Violation
Smartphone (please complete the following information):
Additional context
As additional information, I have to say that I am using this functions, accessing to them on the MainThread:
ZohoSalesIQ.Visitor.setName(<THE NAME>)
ZohoSalesIQ.Visitor.setEmail(<THE EMAIL>)
ZohoSalesIQ.Visitor.setContactNumber(<THE PHONE NUMBER>)
Pd: Sorry by my English.
Hello, how are you?
I'm not sure if this is the most suitable place to clarify this doubt, but I couldn't find another one.
I need to customize the strings used by SalesIQ. I saw in the iOS documentation the function registerLocalizationFile(), however, I couldn't find anywhere else a list with all the strings used. I found only in the Android documentation, but from what I saw, they are not the same.
Would you know where I can find this information?
Description
Our production app is crashing for users, and we're unable to reproduce it internally. I've attached the crash logs file below for your immediate attention. Please investigate and resolve this issue urgently.
To Reproduce
Not able to reproduce
Expected behavior
The app should not crash
Screenshots
N/A
Smartphone:
Additional context
Sharing crash log file
Crash 1. Mobilisten_crash_stacktrace.txt
Crash 2. Mobilisten_crash2_stacktrace.txt
Crash 3. Mobilisten_crash3_stacktrace.txt
Crash 4: Mobilisten_crash4_stacktrace.txt
Crash 5. Mobilisten_crash5_stacktrace.txt
Crashed: com.messageentity.serialQueue
0 Mobilisten 0x1b272c block_destroy_helper + 11400
1 Mobilisten 0x1b2a10 block_destroy_helper + 12140
2 libswiftDispatch.dylib 0x2598 partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28
3 libswiftDispatch.dylib 0x9af8 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
4 libswiftDispatch.dylib 0x3958 closure #1 in closure #1 in OS_dispatch_queue._syncHelper(fn:execute:rescue:) + 188
5 libswiftDispatch.dylib 0x3a6c partial apply for thunk for @callee_guaranteed () -> () + 28
6 libswiftDispatch.dylib 0x3384 thunk for @escaping @callee_guaranteed () -> () + 28
7 libdispatch.dylib 0x3a2c _dispatch_client_callout + 20
8 libdispatch.dylib 0x12c90 _dispatch_lane_barrier_sync_invoke_and_complete + 56
9 libswiftDispatch.dylib 0x2cac implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync(execute:) + 180
10 libswiftDispatch.dylib 0x1d0c partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync(execute:) + 56
11 libswiftDispatch.dylib 0x29ec OS_dispatch_queue._syncHelper(fn:execute:rescue:) + 396
12 libswiftDispatch.dylib 0x1dbc OS_dispatch_queue.sync(execute:) + 168
13 Mobilisten 0x1b017c block_destroy_helper + 1752
14 Mobilisten 0x2e3af4 block_destroy_helper + 24628
15 Mobilisten 0x2e3728 block_destroy_helper + 23656
16 Mobilisten 0x2e360c block_destroy_helper + 23372
17 Mobilisten 0x2447b0 block_destroy_helper.42 + 9828
18 Mobilisten 0x8e288 block_destroy_helper.86 + 1304
19 libdispatch.dylib 0x1e68 _dispatch_call_block_and_release + 32
20 libdispatch.dylib 0x3a2c _dispatch_client_callout + 20
21 libdispatch.dylib 0x11f48 _dispatch_main_queue_drain + 928
22 libdispatch.dylib 0x11b98 _dispatch_main_queue_callback_4CF + 44
23 CoreFoundation 0x522f0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
24 CoreFoundation 0xc1f4 __CFRunLoopRun + 2532
25 CoreFoundation 0x1f6b8 CFRunLoopRunSpecific + 600
26 GraphicsServices 0x1374 GSEventRunModal + 164
27 UIKitCore 0x513e88 -[UIApplication _run] + 1100
28 UIKitCore 0x2955ec UIApplicationMain + 364
29 Z1 0x20cf8 main + 18 (AppDelegate.swift:18)
30 ??? 0x1059fdce4 (Missing)
Mobilisten pod is not working in m1 apple silicon macbook pro,
Here is more details
`Installing Mobilisten (3.4.2)
[!] Error installing Mobilisten
[!] /usr/bin/curl -f -L -o /var/folders/n6/v01s8xnx7jx8fg3264bmx1dh0000gn/T/d20210430-5972-1vr4v0/file.zip https://raw.githubusercontent.com/zoho/SalesIQ-Mobilisten-iOS/v3.4.2/Mobilisten.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.1 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:04:22 --:--:-- 0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out`
Also try pod 'Mobilisten', '3.6.4' version but got same error
Let me know if you need any other information
Note: It will work with intel processor
I get Use of undeclared identifier 'ZohoSalesIQ'
.
I'm attempting to create a React-Native bridge for your project within my application, but whenever I try to import your project it does not work. This is hard-stopping me.
//
// SalesIQBridge.m
// HailTrace
//
// Created by Austin Hunt on 11/11/19.
// Copyright © 2019 Facebook. All rights reserved.
//
#import <Mobilisten/Mobilisten.h>
#import "SalesIQBridge.h"
@implementation SalesIQWrapper
RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(testMethod: (NSDictionary *) options resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
NSLog(@"Test!!");
resolve(@"test response");
}
RCT_EXPORT_METHOD(init: (NSDictionary *) options resolver: (RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
NSString * appKey = options[@"appKey"];
NSString * accessKey = options[@"accessKey"];
[ZohoSalesIQ initWithAppKey: appKey accessKey: accessKey completion:^(BOOL completed) {
if (completed) {
resolve();
} else {
reject(@"Error intializing ZohoSalesIQ");
}
}]
}
@end
Here is my pod file:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'HailTrace' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
#use_frameworks!
# Pods for HailTrace
pod 'Mobilisten','1.1.0'
pod 'Firebase/Core', '~> 5.20.2'
pod 'Firebase/Messaging', '~> 5.20.2'
pod 'Intercom'
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'react-native-video', :path => '../node_modules/react-native-video'
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-intercom', path: '../node_modules/react-native-intercom'
# CodePush plugin dependency
pod 'CodePush', :path => '../node_modules/react-native-code-push'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
if target.name == "yoga"
target.remove_from_project
end
end
end
target 'HailTraceTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'HailTrace-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for HailTrace-tvOS
target 'HailTrace-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
There is already an issue that is opened like 10 days ago but with no replies, opening a new issue to get the devs attention. SDK is currently unusable after latest XCode 11 update. The error is;
Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler
Describe the bug
The chat will not open on calling ZohoSalesIQ.Chat.show() if Mobilisten is unable to initialize yet for any undefined reason (no idea why its taking time even if called in appdidFinishLaunching).
To Reproduce
That's how we do right now on code:
ZohoSalesIQ.initWithAppKey("....")
ZohoSalesIQ.Chat.show()
Expected behavior
the chat window should always show or atleast give a error so developer can handle the failure.
Finding
If this "✅ MOBILISTEN » INITIALIZED {4.1.0}" is not printed yet the calling "ZohoSalesIQ.Chat.show()" will have no affect.
Attempted to follow your docs with a new project with both Swift and Objective-C and neither work. I get this error in Swift Module compiled with Swift 5.0.1 cannot be imported by the swift 5.1.2 compiler.
In Objective-C projects I don't even get an error, I merely have no api methods available.
Hello,
As suggested in your documentation (the documentation is outdated btw, https://www.zoho.com/salesiq/help/developer-section/ios-mobile-sdk-installation.html it says install version 1.1.0), we have a login mechanism in our app.
After user successfully logged in, I added
if let user = Utils.getSavedUserData() {
ZohoSalesIQ.registerVisitor(user.email)
}
However, if this register is done, we cannot get any messages on the panel side.
If registerVisitor line commented out, the messages are coming to panel, however we cannot identify our users.
Check the images below,
Mobilisten (= 1.1.1)
Here is stack trace:
Crashed: com.apple.root.default-qos
0 Mobilisten 0x104117b64 hidden#16335 + 223 (_hidden#20678:223)
1 Mobilisten 0x1040b0640 hidden#4605 + 196 (_hidden#16341:196)
2 Mobilisten 0x1040a88fc hidden#16037 + 196 (_hidden#16093:196)
3 Mobilisten 0x10402c990 hidden#3375 + 4324346256 (_hidden#3105:4324346256)
4 libdispatch.dylib 0x1abe80b7c _dispatch_call_block_and_release + 32
5 libdispatch.dylib 0x1abe81fd8 _dispatch_client_callout + 20
6 libdispatch.dylib 0x1abe84414 _dispatch_queue_override_invoke + 672
7 libdispatch.dylib 0x1abe90bd4 _dispatch_root_queue_drain + 348
8 libdispatch.dylib 0x1abe91384 _dispatch_worker_thread2 + 120
9 libsystem_pthread.dylib 0x1abee7690 _pthread_wqthread + 216
10 libsystem_pthread.dylib 0x1abeed9e8 start_wqthread + 8
According to my findings this happens when we are trying to access something whose permission we haven't asked. We are asking following permissions:
Describe the bug
A clear and concise description of what the bug is.
I am unable to build an iOS project that uses the Mobilisten 4.2.4 release with Xcode 13.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Project should build correctly without errors
Smartphone (please complete the following information):
Additional context
Please note that the failure happens before the app is installed on a device, it happens whenever I attempt to build the project
Here's the error shown in Xcode:
Category 'SRWebSocket' on interface 'NSRunLoop' has different definitions in different modules; first difference is definition in module 'Mobilisten.LDSRWebSocket' found return type is 'NSRunLoop *'
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:
pod 'Mobilisten','3.6.4'
podfile.lock
and Pods
folderpod repo update && pod install
No visible @interface for 'LCSharedHandler' declares the selector 'show:'
Expected behavior
Successful build generation for iOS
Smartphone (please complete the following information):
Additional Information
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.