techaffinity / freshchat-phonegap

Freshchat sdk for phonegap
7 stars 36 forks source link

We can't make it work with ionic 3? #27

Closed chrisluo closed 5 years ago

chrisluo commented 5 years ago

We followed these instructions on github.

window.Freshchat.init({ appId : "", appKey : "", gallerySelectionEnabled : true, cameraCaptureEnabled : true, teamMemberInfoVisible : true });

We have done the following:

We can build it using ionic cordova build ios and ionic cordova build android, but we must be doing something wrong because:

objc[61663]: Class MPExportableArtworkProperties is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaPlaybackCore.framework/MediaPlaybackCore (0x12a4eb108) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/MediaPlayer.framework/MediaPlayer (0x1291ae7d0). One of the two will be used. Which one is undefined. 2018-10-23 10:21:42.165867-0700 Goziip[61663:1937331] Apache Cordova native platform version 4.4.0 is starting. 2018-10-23 10:21:42.166830-0700 Goziip[61663:1937331] Multi-tasking -> Device: YES, App: YES 2018-10-23 10:21:42.221520-0700 Goziip[61663:1937331] CDVWKWebViewEngine: trying to inject XHR polyfill 2018-10-23 10:21:42.588183-0700 Goziip[61663:1937331] [MC] Lazy loading NSBundle MobileCoreServices.framework 2018-10-23 10:21:42.589415-0700 Goziip[61663:1937331] [MC] Loaded MobileCoreServices.framework 2018-10-23 10:21:42.629973-0700 Goziip[61663:1937331] CDVWKWebViewEngine will reload WKWebView if required on resume 2018-10-23 10:21:42.630243-0700 Goziip[61663:1937331] Using Ionic WKWebView 2018-10-23 10:21:42.631501-0700 Goziip[61663:1937331] [CDVTimer][handleopenurl] 0.123978ms 2018-10-23 10:21:42.633980-0700 Goziip[61663:1937331] [CDVTimer][intentandnavigationfilter] 2.274036ms 2018-10-23 10:21:42.634297-0700 Goziip[61663:1937331] [CDVTimer][gesturehandler] 0.100017ms 2018-10-23 10:21:42.634570-0700 Goziip[61663:1937331] [CDVTimer][freshchatplugin] 0.082970ms 2018-10-23 10:21:42.634884-0700 Goziip[61663:1937331] CDVIonicKeyboard: resize mode 1 2018-10-23 10:21:42.636122-0700 Goziip[61663:1937331] [CDVTimer][keyboard] 1.327991ms 2018-10-23 10:21:42.682974-0700 Goziip[61663:1937331] [CDVTimer][splashscreen] 46.617985ms 2018-10-23 10:21:42.683160-0700 Goziip[61663:1937331] [CDVTimer][TotalPluginStartup] 51.841974ms 2018-10-23 10:21:52.242180-0700 Goziip[61663:1937331] Inside init appId:34231079-9b4b-4e96-868f-3da65cb30a5f appKey:5609cc1e-9dcb-4e08-9308-7f79afb744f5 domain:(null) 2018-10-23 10:21:52.258173-0700 Goziip[61663:1937331] [error] error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter CoreData: error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter 2018-10-23 10:21:52.273701-0700 Goziip[61663:1937331] HOTLINE:

Warning! Hotline SDK needs the following keys added to Info.plist for media access on iOS 10

Add key NSPhotoLibraryUsageDescription : To Enable access to Photo Library Add key NSCameraUsageDescription : To take Images from Camera 2018-10-23 10:21:52.323509-0700 Goziip[61663:1937331] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument' *** First throw call stack: ( 0 CoreFoundation 0x0000000111a5d12b exceptionPreprocess + 171 1 libobjc.A.dylib 0x00000001106ddf41 objc_exception_throw + 48 2 CoreFoundation 0x0000000111ad2245 +[NSException raise:format:] + 197 3 Foundation 0x000000010ee2bb38 -[NSBundle initWithURL:] + 87 4 Foundation 0x000000010ee2bace +[NSBundle bundleWithURL:] + 45 5 Goziip 0x000000010d7a676c -[FCTheme getHLResourceBundle] + 116 6 Goziip 0x000000010d7a6688 -[FCTheme getPathForTheme:] + 197 7 Goziip 0x000000010d7a6270 -[FCTheme setThemeName:] + 48 8 Goziip 0x000000010d7a6169 -[FCTheme init] + 85 9 Goziip 0x000000010d7a60ee 25+[FCTheme sharedInstance]_block_invoke + 38 10 libdispatch.dylib 0x0000000116b4233d _dispatch_client_callout + 8 11 libdispatch.dylib 0x0000000116b438c8 dispatch_once_f + 297 12 Goziip 0x000000010d7a60c6 +[FCTheme sharedInstance] + 102 13 Goziip 0x000000010d813b63 -[Freshchat updateConfig:andRegisterUser:] + 685 14 Goziip 0x000000010d813668 -[Freshchat initWithConfig:completion:] + 309 15 Goziip 0x000000010d813482 -[Freshchat initWithConfig:] + 53 16 Goziip 0x000000010d749913 -[FreshchatPlugin init:] + 1459 17 Goziip 0x000000010d832c36 -[CDVCommandQueue execute:] + 870 18 Goziip 0x000000010d752a37 -[CDVWKWebViewEngine handleCordovaMessage:] + 199 19 Goziip 0x000000010d7528b7 -[CDVWKWebViewEngine userContentController:didReceiveScriptMessage:] + 183 20 Goziip 0x000000010d75427c -[CDVWKWeakScriptMessageHandler userContentController:didReceiveScriptMessage:] + 124 21 WebKit 0x00000001101ea042 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyERKNS0_13FrameInfoDataERN7WebCore21SerializedScriptValueE + 190 22 WebKit 0x0000000110180a65 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageERN3IPC10ConnectionEyRKNS_13FrameInfoDataEyRKNS1_13DataReferenceE + 193 23 WebKit 0x0000000110182b2d _ZN3IPC13handleMessageIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyEMS5_FvRNS_10ConnectionEyRKNS4_13FrameInfoDataEyRKNS_13DataReferenceEEEEvS7_RNS_7DecoderEPT0T1 + 227 24 WebKit 0x000000010ff79801 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 127 25 WebKit 0x000000011014c2da _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 24 26 WebKit 0x000000010ff3c909 _ZN3IPC10Connection15dispatchMessageENSt3110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 119 27 WebKit 0x000000010ff3f17c _ZN3IPC10Connection18dispatchOneMessageEv + 176 28 JavaScriptCore 0x000000011f489299 _ZN3WTF7RunLoop11performWorkEv + 169 29 JavaScriptCore 0x000000011f489552 _ZN3WTF7RunLoop11performWorkEPv + 34 30 CoreFoundation 0x0000000111a00101 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 31 CoreFoundation 0x0000000111a9ff71 CFRunLoopDoSource0 + 81 32 CoreFoundation 0x00000001119e4a19 CFRunLoopDoSources0 + 185 33 CoreFoundation 0x00000001119e3fff CFRunLoopRun + 1279 34 CoreFoundation 0x00000001119e3889 CFRunLoopRunSpecific + 409 35 GraphicsServices 0x0000000115fc79c6 GSEventRunModal + 62 36 UIKit 0x0000000112dc75d6 UIApplicationMain + 159 37 Goziip 0x000000010d747d31 main + 65 38 libdyld.dylib 0x0000000116bbed81 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

techaffinity commented 5 years ago

Thanks for notifying us, we are checking on this now and will give you an update ASAP.

techaffinity commented 5 years ago

New update is available with the fix for this issue.Kindly check and let us know.

techaffinity commented 5 years ago

We are not getting any feedback and we are closing this issue