Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS - Error: an unknown error occured for whats app stickers #53

Open
ibrahim5511 opened this issue Jul 15, 2020 · 1 comment
Open

IOS - Error: an unknown error occured for whats app stickers #53

ibrahim5511 opened this issue Jul 15, 2020 · 1 comment

Comments

@ibrahim5511
Copy link

This is my code:
sendPack () {
if(this.state.isAvailable == false){
return Alert.alert('whatsapp is not available');
}
const { stickers, ...packConfig } = stickerConfig;
if (Platform.OS === 'ios') {
return RNWhatsAppStickers.createStickerPack(packConfig)
.then(() => {
const promises = stickers.map(item =>
RNWhatsAppStickers.addSticker(item.fileName, item.emojis)
)
Promise.all(promises).then(() => RNWhatsAppStickers.send())
})
.catch(e => console.log(e))
}

stickerConfig.js:
export const stickerConfig = {
identifier: 'myprojectstickers',
name: 'myprojectstickers',
publisher: "info@company.com", // i'm adding my real email
trayImageFileName: 'tray.png',
publisher_email: "info@company.com", // i'm adding my real email
publisherWebsite: 'https://website.com/', // i'm adding my real website
stickers: [
{
fileName: "sticker1.webp",
emojis: ['😎'],
},
{
fileName: "sticker2.webp",
emojis: ['😎'],
},
{
fileName: "sticker3.webp",
emojis: ['😎'],
},
]
}

I'm placing my folder containing the stickers(myprojectstickers) in the same directory of my stickerConfig file, and I drag it to Xcode as mentioned to do.
I'm getting the following error only on IOS: Error: an unknown error occured for whats app stickers
Error is occurring when creating the sticker pack.
Knowing that I'm following IOS stickers guidelines.
Any help please? Thank you in advance.

@tommyt4a
Copy link

Did you solve the problem?
I am facing the same problem now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants