snapchat clone using Backendless

For learning purpose I want to develop snapchat clone. I’ve looked at chat demo app that used pub/sub messaging for text messaging.
what is the best route to implement self destructing multimedia messaging app like snapchat in Backendless? could be
implemented by pub/sub messages that send object messaged which can be Backendless data?

Messages sent with the pub/sub API will be removed after 1 minute regardless whether user received them or not. This will not work for the scenario when users are offline. You would need to come up with a mechanism to destruct the message after user has seen it. I believe storing messages in a data table would give you the result you want.

Regards,
Mark

Thanks a lot Mark.
Is pub/sub API suitable to send data objects like images and videos?

How should I delete the files or messages when all the recipients saw messages? In parse dashboard there is a button to clean up unused files which in this case is the messages not referenced by any recipient.
So I am planning to implement and maybe I will ask more specific questions in future

Regards
Mousa

Take a look at the pub/sub API to see what you can send.

To delete files/objects once user has seen them, you can use API to do that.

Regards,
Mark

A decent approach could be:

Client A:
Upload Image/Video -> retrieve URL
Creates object Message
Relate Message to URL
Add recipient User to Message Object
(Message now contains URL of Image/Video+recipient)
Save Message object to Backendless

CustomServerCode:
@Event(AfterCreateObjectMessage)->
Retrieve recipient
Send push message to recipient (payload: “Hey there, you have new inbox object”)

Recipient:
Gets push message
Retrieves newly created object (pull)
(Your backend now knows that data was retrieved, {via custom event code}, therefore you can set this object to state delivered/delete it/whatever)
Message contains URL to Image
Show image -> destroy after x time

If you’d like to make this more efficient:
The @AfterObjectCreated Event code could save the message to the cache.
Client B could then retrieve the object from cache, not from data store. (clear cached object after data was retrieved)

This should give you a good overview on how to build a snapchat clone.

Cheers,
Jens

Thanks Jens. I am new to Backendless and specially doesn’t know about custom code yet.

This project seems complicated to me. I have to start from simpler project
I am thinking to build chat app without using messaging API at all because of the above complexity. and use just

Data service. which route is better and easier?
some questions about your scenario:
I’d like to send message regardless of recipient connection state . and when he get online the app should check for available messages. how this can be implemented?
How to save message to cache?
sorry for newbie questions

Regards
Mousa

You should start by going through all of the blog posts here on the backendless page made by Mark.

They’ll give you all the information you need.

You’ll then have enough experience to build your snapchat clone with ease.

Besides:
There are no newbie questions. Curiousity is best!

Happy learning, the curve is steep!

Cheers,
Jens

Thanks for persuading me Jens

Cheers
Mousa