Closed Mixtery closed 6 years ago
@Mixtery Did you drag your sticker assets into the sample app and run it without any code modifications? If so, the sample app should crash and show an error if there is a problem with any of the stickers.
I have changed everything, and compiling works fine. App runs, but when clicking "add to whatsapp" this error pops up...
@Mixtery Can you clarify what you mean by "changed everything"?
Sure. I followed this guide:
In Xcode, you must also modify the 'sticker_packs.wasticker' file. Replace the values of the metadata with your own. A few notes:
name: the sticker pack's name (128 characters max) identifier: The identifier should be unique and can be alphanumeric: a-z, A-Z, 0-9, and the following characters are also allowed "_", "-", "." and " ". The identifier should be less than 128 characters. Replace the image_file value with the file name of your sticker image. It must have both the file name and extension. The ordering of the files in the JSON will dictate the ordering of your stickers in your pack. ios_app_store_link and android_play_store_link (optional fields): here you can put the URL to your sticker app in the App Store as well as a URL to your sticker app in the Google Play Store (if you have an Android version of your sticker app). If you provide these URLs, users who receive a sticker from your app in WhatsApp can tap on it to view your sticker app in the respective App Stores. To get your App Store link before you publish your app, refer to the instructions here: https://stackoverflow.com/questions/4137426/get-itunes-link-for-app-before-submitting. emoji (optional): add up to a maximum of three emoji for each sticker file. Select emoji that best describe or represent that sticker file. For example, if the sticker is portraying love, you may choose to add a heart emoji like 💕. If your sticker portrays pizza, you may want to add the pizza slice emoji 🍕. In the future, WhatsApp will support a search function for stickers and tagging your sticker files with emoji will enable that. The sticker picker/tray in WhatsApp today already categorizes stickers into emotion categories (love, happy, sad, and angry) and it does this based on the emoji you tag your stickers with.
The README should tell you all you need to know to import stickers (please read all of the paragraphs before "Advanced development" if you use the sample app as is). Also make sure to not change any part of the code outside of the .wasticker
file: they show you errors if the requirements are not met even before the stickers are imported into WhatsApp.
i did everything correct.. or so it seems... no errors on the simulator. But error when clicking add to whatsapp on a real phone.
OK, if this is the case, then it's a WhatsApp issue and needs to be reported to WhatsApp support (WhatsApp->Settings->Help->Contact Us). Please report it soon after you are able to reproduce this bug.
I had this error and it was because some images were bigger than 100KB.
Translation: "There is a problem with this stickerpack and it cannot be added to whatsapp".
There are no other errors in the debug window... please advice...