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

3

File attachment API is causing error

Hi, I am using the following API. const message = { type: 5, message: '', to: userId, metadata: {}, source: 1 }; Applozic.ALApiService.sendAttachment({ data: { file: file, messagePxy: message }, success: function (result) { }, error: function () { } }); And I am getting following error in we console: core.js:9110 ERROR ReferenceError: USER_DEVICE_KEY is not defined 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-evergreen.js:1191) at ZoneDelegate.invokeTask (zone-evergreen.js:391) at Object.onInvokeTask (core.js:34176) at ZoneDelegate.invokeTask (zone-evergreen.js:390) at Zone.runTask (zone-evergreen.js:168) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:465) at invokeTask (zone-evergreen.js:1603) at XMLHttpRequest.globalZoneAwareCallback (zone-evergreen.js:1629) It is calling following API internally: https://applozic.appspot.com/rest/ws/aws/file/url?data=1579675013955 And getting response as follows: https://applozic.appspot.com/_ah/upload/AMmfu6ZfIeluOiULcdnNxzXC9F-dla0GzT4BQFLfo29AFf5MwbDFvucX1DSkKyyz4vMTzyoWpPfkWaL2LxH4WWP8qhj-V-gmyHg-UxRV2pij4vz6pX2bCjMK4j3PBBzgBfk05OTZETFBd3abUe89wTbqtaiwV3W9iElVZZFFK5CaCBNPx2-XTDjJlvPFWBmEtp9bqI8Eat6BLfrk72HxaQvy7F55C-v5HQ/ALBNUaYAAAAAXifv36lI-1fNYsrnTqx3Yhz3xabeY1FH/ After that it is throwing the error. Can you help me here as soon as possible.

Posted by Bhagyashree 2 months ago