presspana.blogg.se

How to create whatsapp stickers
How to create whatsapp stickers











While the native iOS and Android projects provided by whatsapp are nice as a starting point for native apps, i found them not that well integrateable quickly into Unity projects, so i used a plugin for the webp conversion and do the base64 encoding and whole json generation on unity side and then push the whole json to native side where i push it to pasteboard/whatsapp. (on android some aspects are the same, some others again quite different) So you need to do the transcoding to webp and base64 on unity or native side and then the push to pasteboard and whatsapp on native side.

how to create whatsapp stickers

Now this json string contains the whole stickerpack data, including the tray image which is a png encoded in base64 and a sticker image for each sticker in webp format encoded as base64, next to all the other meta data for the stickers and sticker pack. a json string is passed to the system pasteboard and whatsapp triggered via url scheme to use it. I'll give an overview for iOS for whatsapp: you will need some native side code no matter how you do it (as there aren't apis for all of the aspects in Unity api). I implemented this before, some pointers: It's just setting up all the auth, packaging it right, blasting it over the net, etc. I didn't see anything directly for this on the Unity Asset Store, but looking at the sendToWhatsApp function in their code, it's pretty straightforward. However, you would certainly learn a lot if you tried it!Īlternatively, you might actually have some luck looking for someone who might have already done this. Anything networking is always a bit tricky when you've not done it.

how to create whatsapp stickers

I would not classify it as a beginner programming task however. But if you had a texture in Unity, it seems like the rest is just networking. It does NOT look like you need any native code, except if you wanted to get at your local camera photo roll, for instance. It appears like it would just be a series of network calls to establish authentication, package up the sticker along with some metadata and send it. I just glanced over this now and it looks like you could use their iOS and / or Android examples as a guideline to do it yourself.













How to create whatsapp stickers