stickers icon indicating copy to clipboard operation
stickers copied to clipboard

Third party pack cannot be found likely because the corresponding app is restricted

Open vincekruger opened this issue 4 years ago • 28 comments

I'm reporting a new issue here because I think this is a new problem.

Third-party pack cannot be found likely because the corresponding app is restricted

I've managed to consistently replicate the issue. I will add the first sticker pack to WhatsApp successfully, however, when adding the second pack it fails with the above error, however, when I kill the app and re-open it and try to add the second pack again it passes. If I then try to add a third sticker pack it fails again with the same error. Kill the app, works and so forth. Is this a problem with WhatsApp trying to restrict the number of sticker packs being added in a certain time frame or is this something else?

My issue has nothing to do with the power-saving mode. I've tried these steps too. https://github.com/WhatsApp/stickers/issues/468

Please see my implementation for WhatsApp Stickers: https://pub.dev/packages/flutter_whatsapp_stickers

It's driving me crazy and I cannot figure out what the problem is.

vincekruger avatar Dec 14 '19 10:12 vincekruger

Hi @vincekruger, thank you for reporting this!

Could you please tell us:

  • The WhatsApp version you are using
  • Your Android version
  • Your mobile phone vendor and model
  • Do you have multiple or modified versions of WhatsApp installed on your phone?

Thanks 👍

MarvinJWendt avatar Dec 14 '19 15:12 MarvinJWendt

Same here I have the same problem. When I add a new pack I need to remove the application from the background threads and reopen it to add a new pack. WhatsApp version: 2.19.360 Android Version: 7.1.1 Mobile phone vendor and model: Samsung A7 2016 I don't have multiple versions of WhatsApp.

Please give me a solution.

marwanzak avatar Dec 25 '19 23:12 marwanzak

Hi @MarvinJWendt , I have the same problem.Can you please tell me the cause of this issue. Thanks you

UbAndroidDev avatar Jan 03 '20 06:01 UbAndroidDev

Hi @marwanzak and @ubutt9dtech,

If you have the same problem please open a new Issue and provide every information that is asked for. Also, please include if you have multiple or modified versions of WhatsApp installed. Thanks :)

MarvinJWendt avatar Jan 05 '20 03:01 MarvinJWendt

This also happens to me with this flutter sticker implementation

sidoruvigo avatar Jan 08 '20 15:01 sidoruvigo

@sidoruvigo yes I am also facing same issue :disappointed:

Zeeshan0201 avatar Jan 09 '20 06:01 Zeeshan0201

@MarvinJWendt

Super delayed response to my original post. Sorry about that.

WhatsApp version: Latest Android version: 8.0.0 Mobile phone vendor and model: Huawei PRA-LX1 Do you have multiple or modified versions of WhatsApp installed on your phone? Single Version. Consumer (Beta)

vincekruger avatar Jan 09 '20 08:01 vincekruger

I have this problem too. =( WhatsApp version: Latest Android version 8.1.0 Mobile phone vendor and model: Moto G5S Plus I don't have any another whatsapp version in my cellphone

thisisddzin avatar Jan 16 '20 20:01 thisisddzin

I will mark this as a bug, as it seems to occur often.

/cc @simonzhexu

MarvinJWendt avatar Jan 17 '20 00:01 MarvinJWendt

Thanks, @MarvinJWendt.

Do we have a general timeline on bugs like this?

vincekruger avatar Jan 21 '20 10:01 vincekruger

@vincekruger I am sorry, I cannot tell you how long this will take. Simon has to look into it and as it seems he's busy at the moment. If there's an update I'll post it here :)

MarvinJWendt avatar Jan 21 '20 17:01 MarvinJWendt

Hey Guys, sorry, have been busy with internal development stuff, I will take a look and let you know.

simonzhexu avatar Jan 24 '20 17:01 simonzhexu

@simonzhexu Thank! Appreciate it.

vincekruger avatar Jan 24 '20 17:01 vincekruger

Same issue.

WhatsApp version: Latest Android version: 9.0.0 Mobile phone vendor and model: Redmi Note 7 Pro Do you have multiple or modified versions of WhatsApp installed on your phone? Single Version.

Purus avatar Jan 26 '20 11:01 Purus

@Purus any luck? I'm using the same phone model as you and facing the same issue

prabhashibuddhima avatar Feb 29 '20 07:02 prabhashibuddhima

@simonzhexu I've narrowed this issue down a little.

I load sticker packs remotely and store these in internal storage. I then update the main contents.json file.

It seems that this new file update is cached somewhere along the line. If I query this using adb shell I can see the updated version.

vincekruger avatar Mar 30 '20 15:03 vincekruger

Guys any progress at solving this? Im having the same issue.

adityaspt avatar May 15 '20 19:05 adityaspt

So I've managed to resolve this for my issue. I was getting this error because I was adding stickers packs to my config file dynamically after the content provider was created and not refreshing the content provider. There is a check in the content provider to serve was is already loaded, I simply removed that.

vincekruger avatar May 15 '20 19:05 vincekruger

So I've managed to resolve this for my issue. I was getting this error because I was adding stickers packs to my config file dynamically after the content provider was created and not refreshing the content provider. There is a check in the content provider to serve was is already loaded, I simply removed that.

where is the check happening exactly? Can you point me at the line in StickerContentProvider class

adityaspt avatar May 15 '20 20:05 adityaspt

@adityaspt https://github.com/WhatsApp/stickers/blob/bb12c5b1fc95506a199acb5903d224702be8a901/Android/app/src/main/java/com/example/samplestickerapp/StickerContentProvider.java#L157

vincekruger avatar May 15 '20 20:05 vincekruger

E/AddStickerPackActivity: Validation failed:Third party pack cannot be found likely because the corresponding app is restricted, sdk: 29 ,power saving mode: false Im still getting this in my log cat

What changes i have made in the original project is I have changed all the layout, I have just added a Button in my main activity and on the clicking the button

@Override public void onClick(View v) { addStickerPackToWhatsApp("1", "Adi"); } }); }

I just call the function to add my sticker pack giving the identifier and pack name. I have done this for testing purpose only. Actually I want to call this function from my unity project later, as I will be passing this native project as a plugin there. My current project was working two days before. But after then I have been constantly getting "There's a problem with this sticker pack and it cant be added to Whatsapp". Im very new to working on Android. Thanks for any help!

adityaspt avatar May 15 '20 20:05 adityaspt

E/AddStickerPackActivity: Validation failed:Third party pack cannot be found likely because the corresponding app is restricted, sdk: 29 ,power saving mode: false Im still getting this in my log cat

What changes i have made in the original project is I have changed all the layout, I have just added a Button in my main activity and on the clicking the button

@Override public void onClick(View v) { addStickerPackToWhatsApp("1", "Adi"); } }); }

I just call the function to add my sticker pack giving the identifier and pack name. I have done this for testing purpose only. Actually I want to call this function from my unity project later, as I will be passing this native project as a plugin there. My current project was working two days before. But after then I have been constantly getting "There's a problem with this sticker pack and it cant be added to Whatsapp". Im very new to working on Android. Thanks for any help!

I have to used same method as you say it working when i add sticker from assets it was working but when i have to create my custome stickerpack and add to it whatsapp then getting same issue "Third party pack cannot be found likely because the corresponding app is restricted, sdk: 29 ,power saving mode: false"

krunalpandav avatar Sep 22 '20 04:09 krunalpandav

That seems to be a constant issue. No solutions found yet. For custom made sticker packs on runtime

adityaspt avatar Sep 22 '20 12:09 adityaspt

So I've managed to resolve this for my issue. I was getting this error because I was adding stickers packs to my config file dynamically after the content provider was created and not refreshing the content provider. There is a check in the content provider to serve was is already loaded, I simply removed that.

This is the correct answer! I've managed to resolve it for my issue too.(And the reason is same) Thanks a lot!

jiao08 avatar May 03 '21 08:05 jiao08

More explicit error message could be nice.

JeremyR34 avatar May 03 '21 16:05 JeremyR34

I got the same issue on my project, please make sure your contents.json has the same structure (key naming) as this one -> contents.json.

viyyan avatar Jun 15 '21 10:06 viyyan

I already fixed this bug on build.gradle (app) like below:

build.gradle

You can try my app on playstore if you don't believe

rebelholic avatar Jul 30 '21 03:07 rebelholic

Any solution found? I also have same issue:

Validation failed:Third party pack cannot be found likely because the corresponding app is restricted, sdk: 30 ,power saving mode: false

khushbuvadi avatar Dec 01 '21 09:12 khushbuvadi

@adityaspt

https://github.com/WhatsApp/stickers/blob/bb12c5b1fc95506a199acb5903d224702be8a901/Android/app/src/main/java/com/example/samplestickerapp/StickerContentProvider.java#L157

This works! Thanks

symphony701 avatar Nov 04 '22 08:11 symphony701

Third party pack cannot be found likely because the corresponding app is restricted, sdk: 33 ,power saving mode: false

Getting this error is there any solution for this?

Some times stickers are adding sometimes not adding, please help me.

Thanks in advance

parthpatel1029 avatar Jun 26 '23 13:06 parthpatel1029