Chat APIs and In-app Messaging SDKs for Developers, by Developers

Applozic powers multi-platform Chat APIs and in-app Messaging SDKs for Android, iOS and the Web that will enable you to build advanced in-app chat solutions your users will love.

Integrate chat in your application with completely customizable UI kits, powerful messaging APIs and SDKs, developed with exceptional security measures in mind.

Documentation    API Explorer

Questions

Ask A Question
2

One on one chat - message owners/senders

We are testing out the applozic chat for one on one conversation. On the mobile app side we arent able to differentiate who is sending or created the message. Ouir message data looks like this Message{createdAtTime=1595873870418, to='12345678', message='From Michael -1 ', key='5-01bfddaf-b245-4e48-9c58-e1ba2de50eb0-1595873864723', deviceKey='null', userKey='null', emailIds='null', shared=false, sent=false, delivered=true, type=5, storeOnDevice=false, contactIds='12345678', groupId=null, sendToDevice=false, scheduledAt=null, source=2, timeToLive=null, sentToServer=true, fileMetaKey='null', filePaths=null, pairedMessageKey='null', sentMessageTimeAtServer=0, canceled=false, clientGroupId='null', fileMeta=null, messageId=202, read=true, attDownloadInProgress=false, applicationId='null', conversationId=null, topicId='null', connected=false, contentType=0, metadata={}, status=4, hidden=false, replyMessage=0} Message{createdAtTime=1595889878043, to='12345678', message='test 4', key='5-5a72f5d7-4d68-4a35-968f-f89c966f6a51-1595889877749', deviceKey='null', userKey='null', emailIds='null', shared=false, sent=false, delivered=false, type=5, storeOnDevice=false, contactIds='12345678', groupId=null, sendToDevice=false, scheduledAt=null, source=2, timeToLive=null, sentToServer=true, fileMetaKey='null', filePaths=null, pairedMessageKey='null', sentMessageTimeAtServer=0, canceled=false, clientGroupId='null', fileMeta=null, messageId=206, read=true, attDownloadInProgress=false, applicationId='null', conversationId=null, topicId='null', connected=false, contentType=0, metadata={}, status=1, hidden=false, replyMessage=0}

Posted by Montfort Fernando about a year ago

1

Is it a must to include password when creating user with the Swift SDK code?

The android SDK states that password is optional when creating user: User user = new User(); user.setUserId(userId); user.setDisplayName(displayName); user.setEmail(email); user.setAuthenticationTypeId(User.AuthenticationType.APPLOZIC.getValue()); user.setPassword(""); user.setImageLink(""); The Objective-C SDK states that password is optional as well: // Except UserId all the other parameters are optional ALUser *alUser = [[ALUser alloc] init]; [alUser setUserId:@"testUser"]; //NOTE : +,*,? are not allowed chars in userId. [alUser setDisplayName:@"Applozic Test"]; // Display name of user [alUser setContactNumber:@""];// formatted contact no [alUser setImageLink:@"user_profile_image_link"];// User's profile image link. [alUser setPassowrd:@"testpassword"]; //Password for the user But for the Swift SDK code, it doesn't say that password could be optional: let alUser : ALUser = ALUser() alUser.applicationId = <PASS_YOUR_APP_ID_HERE> alUser.userId = "demoUserId" // NOTE : +,*,? are not allowed chars in userId. alUser.email = "[email protected]" alUser.imageLink = "" // User's profile image link. alUser.displayName = "DemoUserName" // User's Display Name alUser.password = "testpassword" //User password I tried leaving password as blank when creating user with Swift SDK code and the user was created successfully. However, it gives "Invalid Password" error when i tried to login the specific user with empty string for password like this: et user = ALUser() user.userId = "userid" //pass the login userId user.password = "" //pass the password user.imageLink = "" // User's profile image link. user.displayName = "DemoUserName" // User's Display Name I have experimented with a few users and all the results are the same giving "Invalid Password" error when registering the users with empty string as password and trying to login with empty string as password as well.

Posted by Tang about a year ago