Chat APIs and In-app Messaging SDKs for Developers

Applozic provides Chat APIs and In-app Messaging SDKs for Android, iOS and Web apps to power cross-device, multi-platform rich messaging.
Find comprehensive guides and platform-specific Chat API documentation to get started with In-app Messaging.

Get Started    
Ask A Question

Questions

1

Group Update API not working

I have used applozic web chat . but when i update the group it does not update the group and i have used following api function: $applozic.fn.applozic('updateGroupInfo', {'groupId' : groupId 'clientGroupId' : clientGroupId, //use either groupId or clientGroupId, 'name' : groupName, // optional 'imageUrl' : '', //optional 'users': [ // required only if want to update user role { userId:userIdToUpdate, // required role:3, // (required) USER(0), ADMIN(1), MODERATOR(2), MEMBER(3) }], 'callback' : function(response){console.log(response);}}); *************But got following error:************************************ core.js?09c9:14576 ERROR TypeError: Cannot set property 'innerHTML' of null at Object.MckGroupLayout._this.onUpdateGroupInfo [as apzCallback] (applozic.plugin-1.0.js:6969) at Object.success (applozic.plugin-1.0.js:13) at Object.success (applozic.plugin-1.0.js:13) at XMLHttpRequest.aq.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (applozic.plugin-1.0.js:13) at XMLHttpRequest.wrapFn (zone.js?d135:1188) at ZoneDelegate.invokeTask (zone.js?d135:421) at Object.onInvokeTask (core.js?09c9:16126) at ZoneDelegate.invokeTask (zone.js?d135:420) at Zone.runTask (zone.js?d135:188) at ZoneTask.invokeTask [as invoke] (zone.js?d135:496) defaultErrorLogger @ core.js?09c9:14576 ErrorHandler.handleError @ core.js?09c9:14624 next @ core.js?09c9:16607 schedulerFn @ core.js?09c9:12588 SafeSubscriber.__tryOrUnsub @ Subscriber.js?1453:196 SafeSubscriber.next @ Subscriber.js?1453:134 Subscriber._next @ Subscriber.js?1453:77 Subscriber.next @ Subscriber.js?1453:54 Subject.next @ Subject.js?2bd2:47 EventEmitter.emit @ core.js?09c9:12572 (anonymous) @ core.js?09c9:16157 ZoneDelegate.invoke @ zone.js?d135:388 Zone.run @ zone.js?d135:138 NgZone.runOutsideAngular @ core.js?09c9:16094 onHandleError @ core.js?09c9:16157 ZoneDelegate.handleError @ zone.js?d135:392 Zone.runTask @ zone.js?d135:191 ZoneTask.invokeTask @ zone.js?d135:496 invokeTask @ zone.js?d135:1540 globalZoneAwareCallback @ zone.js?d135:1566 XMLHttpRequest.send (async) scheduleTask @ zone.js?d135:2969 ZoneDelegate.scheduleTask @ zone.js?d135:407 onScheduleTask @ zone.js?d135:297 ZoneDelegate.scheduleTask @ zone.js?d135:401 Zone.scheduleTask @ zone.js?d135:232 Zone.scheduleMacroTask @ zone.js?d135:255 scheduleMacroTaskWithCurrentZone @ zone.js?d135:1114 (anonymous) @ zone.js?d135:3001 proto.<computed> @ zone.js?d135:1394 U.ajax @ applozic.plugin-1.0.js:13 U.groupUpdate @ applozic.plugin-1.0.js:13 MckGroupService.j.updateGroupInfo @ applozic.plugin-1.0.js:13 Applozic._this.updateGroupInfo @ applozic.plugin-1.0.js:1563 $applozic.fn.applozic @ applozic.plugin-1.0.js:272 (anonymous) @ applozicChat.service.ts?fadd:93 ApplozicChatService.updateGropChat @ applozicChat.service.ts?fadd:103 success @ applozicChat.service.ts?fadd:27 success @ applozic.plugin-1.0.js:13 aq.onreadystatechange @ applozic.plugin-1.0.js:13 wrapFn @ zone.js?d135:1188 ZoneDelegate.invokeTask @ zone.js?d135:421 onInvokeTask @ core.js?09c9:16126 ZoneDelegate.invokeTask @ zone.js?d135:420 Zone.runTask @ zone.js?d135:188 ZoneTask.invokeTask @ zone.js?d135:496 invokeTask @ zone.js?d135:1540 globalZoneAwareCallback @ zone.js?d135:1566 XMLHttpRequest.send (async) scheduleTask @ zone.js?d135:2969 ZoneDelegate.scheduleTask @ zone.js?d135:407 onScheduleTask @ zone.js?d135:297 ZoneDelegate.scheduleTask @ zone.js?d135:401 Zone.scheduleTask @ zone.js?d135:232 Zone.scheduleMacroTask @ zone.js?d135:255 scheduleMacroTaskWithCurrentZone @ zone.js?d135:1114 (anonymous) @ zone.js?d135:3001 proto.<computed> @ zone.js?d135:1394 U.ajax @ applozic.plugin-1.0.js:13 U.getGroupInfo @ applozic.plugin-1.0.js:13 (anonymous) @ applozicChat.service.ts?fadd:21 ApplozicChatService.openGroupChat @ applozicChat.service.ts?fadd:36 ClientProfileComponent.openGroupChat @ client-profile.compenent.ts?ed1c:193 (anonymous) @ ClientProfileComponent.html:1 handleEvent @ core.js?09c9:21652 callWithDebugContext @ core.js?09c9:22746 debugHandleEvent @ core.js?09c9:22449 dispatchEvent @ core.js?09c9:19101 (anonymous) @ core.js?09c9:19548 (anonymous) @ platform-browser.js?6588:993 ZoneDelegate.invokeTask @ zone.js?d135:421 onInvokeTask @ core.js?09c9:16126 ZoneDelegate.invokeTask @ zone.js?d135:420 Zone.runTask @ zone.js?d135:188 ZoneTask.invokeTask @ zone.js?d135:496 invokeTask @ zone.js?d135:1540 globalZoneAwareCallback @ zone.js?d135:1566

Posted by sp 10 months ago

1
ANSWERED

Bug on react native android sdk com.google.android.material.tabs.TabLayout

I'm using Applozic SDK on the fresh nativescript 0.59.10 project. The conversation list screen opens perfectly but when I try to start a new conversation using plus button it throws the following error. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.freightsapp, PID: 13297 java.lang.NoSuchMethodError: No virtual method addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V in class Lcom/google/android/material/tabs/TabLayout; or its super classes (declaration of 'com.google.android.material.tabs.TabLayout' appears in /data/app/com.freightsapp-RXFAuNx3BghtZYx3ytktDA==/split_lib_dependencies_apk.apk) at com.applozic.mobicomkit.uiwidgets.people.activity.MobiComKitPeopleActivity.onCreate(MobiComKitPeopleActivity.java:167) at android.app.Activity.performCreate(Activity.java:7136) at android.app.Activity.performCreate(Activity.java:7127) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Posted by Aris Karagiannis 11 months ago