jungle-works / hippo-ios-sdk Goto Github PK
View Code? Open in Web Editor NEWHippo-iOS-SDK
License: MIT License
Hippo-iOS-SDK
License: MIT License
Hi,
While attempting to implement this sdk as an update to the old Fugu SDK I've run into 2 issues:
2020-02-25 17:58:28.253399+0200 App[21633:4365073] Task <A2A24D24-164A-4F20-A2A3-8F03D5209510>.<1> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “api.hippochat.io” which could put your confidential information at risk." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x2827d83f0>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9843, NSErrorPeerCertificateChainKey=( "<cert(0x109012000) s: *.fuguchat.com i: COMODO RSA Domain Validation Secure Server CA>", "<cert(0x109012c00) s: COMODO RSA Domain Validation Secure Server CA i: COMODO RSA Certification Authority>", "<cert(0x109013600) s: COMODO RSA Certification Authority i: AddTrust External CA Root>" ), NSUnderlyingError=0x281bb7960 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x2827d83f0>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9843, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9843, kCFStreamPropertySSLPeerCertificates=( "<cert(0x109012000) s: *.fuguchat.com i: COMODO RSA Domain Validation Secure Server CA>", "<cert(0x109012c00) s: COMODO RSA Domain Validation Secure Server CA i: COMODO RSA Certification Authority>", "<cert(0x109013600) s: COMODO RSA Certification Authority i: AddTrust External CA Root>" )}}, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “api.hippochat.io” which could put your confidential information at risk., NSErrorFailingURLKey=https://api.hippochat.io/api/users/putUserDetails, NSErrorFailingURLStringKey=https://api.hippochat.io/api/users/putUserDetails, NSErrorClientCertificateStateKey=0}
I managed to fix this by changing the Hippo HTTPClient to accept any SSL connection, however now I am running into a second issue: the library crashes internally because 'https://api.hippochat.io/api/users/putUserDetails' returns a 404.
I've attached an image of a postman request failing so you can see what i'm talking about.
Any help on fixing these issues would be appreciated!
We're using Apple chip M1 and got this compile error
<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios10.0' /......../ios/Pods/Hippo/Hippo/Controllers/Payment/RazorPayViewController.swift:9:8: error: module compiled with Swift 5.5.1 cannot be imported by the Swift 5.6 compiler: /...../ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule import Razorpay
When there is not conversation made by the user with support we are getting this error and after this Ui stuck
[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x7fa5e280d000; frame = (0 85; 375 582); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x60000251bcc0>; backgroundColor = <UIDynamicSystemColor: 0x6000033e11c0; name = tableBackgroundColor>; layer = <CALayer: 0x600002efec00>; contentOffset: {0, -10}; contentSize: {375, 582}; adjustedContentInset: {10, 0, 70, 0}; dataSource: <Hippo.AllConversationsViewController: 0x7fa5e10bd000>>
i have made a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch the reason and i got
AllConversationsViewController - showConversationsTableView.layoutSubviews() is creating issue in noConversationFound function can you help us out in this matter?
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.