WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.73k stars 1.7k forks source link

[iOS] Error: There's a problem with this sticker pack and it can't be added to WhatsApp #127

Closed ameralzarouni closed 5 years ago

ameralzarouni commented 5 years ago

I have a problem, the app launches and works, the Add to WhatsApp button works, but WhatsApp gives the following error on iPhone X: There's a problem with this sticker pack and it can't be added to WhatsApp. I've checked and all the stickers are less than 50 kb. The tray icon is 11 kb.

alex193a commented 5 years ago

Have you checked that all stickers are 512x512px and the tray icon is 96x96px?

ameralzarouni commented 5 years ago

Yes, and they are all below 50 kB even though the requirement is under 100 kb

lonesnipers commented 5 years ago

Is there a solution to this problem? Anyone? I don't think it's complicated problem. We just need to know what could be the problem...

amrit-1901 commented 5 years ago

What version of iOS are you using?

ameralzarouni commented 5 years ago

I am using iOS 11.x

ameralzarouni commented 5 years ago

My device is not jailbroken. Just checked again, the WebP framework is in the project. I am still getting this error for both of my sticker packs. If it helps, I am using WebP images. I am on iOS and using Xcode.

ameralzarouni commented 5 years ago

I tried it on an iPhone 6S running iOS 10.x and I have the same problem.

ameralzarouni commented 5 years ago

To all that say theWebP framework not being imported is the problem, it is not the problem for us, nor is the file or image sizes The WebP framework has already been loaded and the images are under 100 kB.

chr0m1ng commented 5 years ago

same problem here

ameralzarouni commented 5 years ago

@WhatsApp This is taking too long to solve!

lonesnipers commented 5 years ago

Seriously! Does anybody have a clue what might be the problem?

wsimf commented 5 years ago

This happened when running the provided pack without any modifications (apart from changing the bundle identifier) iOS 12.1.1 - Whatsapp - 2.18.101

amrit-1901 commented 5 years ago

To anyone having this issue, we need logs to debug this:

lonesnipers commented 5 years ago

@amrit-1901 yeah done. Hopefully this gets resolved at the earliest. Thank you.

ameralzarouni commented 5 years ago

@amrit-1901 Done

amrit-1901 commented 5 years ago

@ameralzarouni Your WEBP image fails our integrity check. Did you use a PNG image and let the app do the conversion or did you use a straight WEBP image?

amrit-1901 commented 5 years ago

The other ticket I've got is about the stickers count being more than 30 (31 to be exact). I'm not sure if it was @lonesnipers since the names were different.

lonesnipers commented 5 years ago

@amrit-1901 I've sent a screenshot for a football club sticker app. What is the issue with mine? I've used png images and converted them to webp in Android sdk. There are 11 stickers in total.

amrit-1901 commented 5 years ago

I have not received your ticket. Can you try send it again (with the word "github" in the description)? In the meantime, can you try using your original PNG images and let the app do the conversion?

lonesnipers commented 5 years ago

Hi, I've sent it again with the word github specified twice. The description starts with:

[Android]Error: There's a problem with this sticker pack and it can't be added to WhatsApp

email: dsouzasanford@hotmail.com

I tried using the original png images, but the app doesn't get installed. It gives an error: App not installed.

guharakesh commented 5 years ago

@amrit-1901 I sent my logs as well, hope you can help. The description is Getting the "problem with this sticker pack" error as noted in GitHub. Trying to package stickers with our native app. Would love some guidance, thanks!

email: rakesh@startincle.com

ameralzarouni commented 5 years ago

@amrit-1901 I am using Paint.Net to edit the images with a plugin to save as WebP.

ameralzarouni commented 5 years ago

Update: I managed to get the stickers working by uploading them as png in Xcode and not as WebP.

chr0m1ng commented 5 years ago

PNG is working fine, the problem only appears when using webp. Still waiting fixes for that...

amrit-1901 commented 5 years ago

PNG images are eventually converted into WEBP when sent to WhatsApp, so either our validation is missing something or the converters produce a faulty WEBP image. Can you attach the problematic WEBP images? We can figure out what's wrong with them.

guharakesh commented 5 years ago

@ameralzarouni or @chr0m1ng was this on Android? How were you able to avoid getting this error: contents.json file has some issues: image file for stickers should be webp files, image file is: 01.png? The app failed to start after that error.

amrit-1901 commented 5 years ago

Also, I noticed that some of you are complaining about Android instead of iOS. @simonzhexu can take care of that issue. However, please for anyone new having this issue, please create a separate issue for Android: it makes it much easier to manage.

lonesnipers commented 5 years ago

There is a separate one for Android, but nobody is replying there. So, we are writing about it here.

simonzhexu commented 5 years ago

For Android, follow this, https://github.com/WhatsApp/stickers/issues/104#issuecomment-437459131 and comment in https://github.com/WhatsApp/stickers/issues/104

simonzhexu commented 5 years ago

@ameralzarouni or @chr0m1ng was this on Android? How were you able to avoid getting this error: contents.json file has some issues: image file for stickers should be webp files, image file is: 01.png? The app failed to start after that error.

your sticker files need to be in webp. Follow the read me to convert png to webp please.

ameralzarouni commented 5 years ago

@simonzhexu I tried using WebP images in the app but they give the error this issue is about. When I used PNG images without converting them, they worked perfectly well and I didn’t get any error.

seddiq commented 5 years ago

I am developing for iOS and using PNG, and still getting this error :(

Zandor300 commented 5 years ago

Also having this problem, just sent logs. I have 2 own stickers in webp using the suggested Photoshop plugin. Both are under 100 kb and are exactly 512x512. Then I also have one of the sample stickers added to the pack in png as the artist isn't done with the rest yet.

Edit: If I export to 8-bit png it works just fine.

seddiq commented 5 years ago

Also having this problem, just sent logs. I have 2 own stickers in webp using the suggested Photoshop plugin. Both are under 100 kb and are exactly 512x512. Then I also have one of the sample stickers added to the pack in png as the artist isn't done with the rest yet.

Edit: If I export to 8-bit png it works just fine.

Had to use fresh download and now it is working with the same images I tried earlier!!!!

ameralzarouni commented 5 years ago

I used 8-bit PNG and it worked perfectly

simonzhexu commented 5 years ago

@simonzhexu I tried using WebP images in the app but they give the error this issue is about. When I used PNG images without converting them, they worked perfectly well and I didn’t get any error.

Your content.json should reference the file in .webp not .png, if those are sticker files.

lackern commented 5 years ago

Seems like the import statement at YYImageCoder.m is case sensitive.

Changing from webp to WebP for all the imports in this class works for me.

aal89 commented 5 years ago

I also had this problem and fixed it by changing the bundle identifier to something completely different. Apparently they are doing a contains(), so simply adding one character (like I did before) won't help.

ameralzarouni commented 5 years ago

@simonhexu By using PNG images and referencing them as .png worked perfectly on iOS, when I used webp, it didn’t work.

sanestani commented 5 years ago

My problem was uploading the app to the itunes connect. Do this happened to you?

alex193a commented 5 years ago

@sanestani Apple has started removing all WhatsApp stickers apps from the App Store because they violate their guidelines.

sanestani commented 5 years ago

@Alex193a Yes, I know, but is there any way to fix this?

alex193a commented 5 years ago

@sanestani I don't think, WhatsApp will have to create a universal app, probably. The current method of adding stickers is totally wrong, it surprises me that they have not figured it out yet.

BhaktiKarva commented 5 years ago

I am facing the same error. I am opening what's app from my iMessage extension. I am following the advanced development tutorial and successfully created a sticker pack. It opens what's app, I get the message, importing sticker pack and then it says "There's a problem importing this sticker pack." I am using png images and all images are less than 50kb and are 512x512. I know there is no problem in images because the same work for android. But I am not able to get them to work on ios.

thyagotosin commented 5 years ago

same problem with me, @BhaktiKarva and the others. Waiting WhatsApp's Team.

Zandor300 commented 5 years ago

If you build a debug version of sticker app, and try to add to WhatsApp. When the add fails, you will get a dialog that tells you what was wrong. In order to build a debug version, change your build variants in Android studio, and click run.

https://github.com/WhatsApp/stickers/issues/104#issuecomment-437459131

@amrit-1901 Is it possible to also get this on the iOS version of WhatsApp?

BhaktiKarva commented 5 years ago

To anyone having this issue, we need logs to debug this:

  • Right after you see the "There's a problem with this sticker pack and it can't be added to WhatsApp" alert, tap OK
  • While still remaining in WhatsApp, go to Settings->Help->Contact Us
  • Describe this issue and make sure to write the word "GitHub" somewhere in your description (this will make sure we can prioritize your support tickets)

I did what you asked and it generated a log file, attached it in the mail and was sent. I went trough the generated log file and found this :

2018-11-20 11:57:14.709 [ 370559] [mms (QOS:…TED)] [F] LL_A  mms-session//conn-info/route-request/response/endpoints: 2 duration: 0.317987
2018-11-20 11:57:14.818 [ 363501] [main-thread   ] [F] LL_E* wamediaimgops/verify-webp-file/failed 214
2018-11-20 11:57:14.818 [ 363501] [main-thread   ] [F] LL_A* third-party-sticker-validating//failed to verify sticker image webp file
2018-11-20 11:57:14.854 [ 363501] [main-thread   ] [F] LL_A* app/open-url/third-party-sticker: invalid sticker pack
2018-11-20 11:57:14.856 [ 363501] [main-thread   ] [F] LL_A* alert: [‎There's a problem with this sticker pack and it can't be added to ‎WhatsApp.] [(null)]

I am not sure as to what is this error, but one or more of my stickers is not proper, that is why I think I am facing error. What do you think?

BhaktiKarva commented 5 years ago

I was finally able to solve my problem! This is what I did

  1. Removed all files that I had added. Download the project from GitHub again.
  2. Added all the required files in my project again.
  3. After running the app for the first time, I got the same error. I clicked on "ok", while still remaining in Whats App, went to Setting->Help->Contact Us. Typed anything until the "next" button got enabled, clicked next->This does not solve my issue. It opened mail, and attached my logs in that mail. I just saved the mail in drafts and accessed the logs from there.
  4. I went through the logs and found out that my tray image was not being rendered properly into webp format. Modified my tray image and it worked for me.

Note : I am opening this from my iMessage extension and not from a container app and it still works for me. You may be getting different errors, but this helps in getting the logs and identifying why it is not importing packs.

Hope this helps!

ameralzarouni commented 5 years ago

@BhaktiKarva Using 8-bit PNG images instead of webp should work.

thyagotosin commented 5 years ago

I tried with 8-bit PNG, doesn't worked.