App working fine until i try to add more than 2 packs/directories to my app, no errors in "contents.json" are noticeable. If i remove 3 pack, everything working fine again. Also i tried to change stickers, in this 3 pack, but without success,.. i checked already all trey icons, and Sticker file aswell, everything correspond the ruls. I m not a senior developer in Android enviroment, may you can give me some tips how to, change limit for adding packs.
Thx!
Scrennshot with contents.json i do attach it here may it can help.
Reproduction Steps
{
"android_play_store_link": "",
"ios_app_store_link": "",
"sticker_packs": [
{
"identifier": "1",
"name": "Volodya",
"publisher": "Sersch Codex",
"tray_image_file": "volodya.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "1.webp",
"emojis": [ "โ","๐" ]
},
{
"image_file": "2.webp",
"emojis": [ "๐", "๐" ]
},
{
"image_file": "3.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "4.webp",
"emojis": ["๐ฉ", "๐ฐ"]
},
{
"image_file": "5.webp",
"emojis": ["๐ญ","๐ง"]
},
{
"image_file": "6.webp",
"emojis": ["๐", "โฅ" ]
},
{
"image_file": "7.webp",
"emojis": [ "๐","๐" ]
},
{
"image_file": "8.webp",
"emojis": [ "๐", "๐" ]
},
{
"image_file": "9.webp",
"emojis": ["๐", "๐ช" ]
},
{
"image_file": "10.webp",
"emojis": [ "๐ค", "๐"]
},
{
"image_file": "11.webp",
"emojis": [ "๐ฑ","๐ต" ]
},
{
"image_file": "12.webp",
"emojis": [ "๐ก","๐ "]
},
{
"image_file": "13.webp",
"emojis": ["โ", "๐ค" ]
},
{
"image_file": "14.webp",
"emojis": [ "๐","๐"]
},
{
"image_file": "15.webp",
"emojis": ["๐ป", "๐ฉ"]
}
]
},
{
"identifier": "2",
"name": "borodach",
"publisher": "Sersch Codex",
"tray_image_file": "boroda.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "boroda_1.webp",
"emojis": ["โ", "๐"]
},
{
"image_file": "boroda_2.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_3.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_4.webp",
"emojis": ["๐ฉ","๐ฐ"]
},
{
"image_file": "boroda_5.webp",
"emojis": [ "๐ญ", "๐ง"]
},
{
"image_file": "boroda_6.webp",
"emojis": ["๐","โฅ"]
},
{
"image_file": "boroda_7.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_8.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_9.webp",
"emojis": ["๐","๐ช"]
},
{
"image_file": "boroda_10.webp",
"emojis": ["๐ค", "๐"]
},
{
"image_file": "boroda_11.webp",
"emojis": ["๐ฑ", "๐ต"]
},
{
"identifier": "3",
"name": "kacha",
"publisher": "Sersch Codex",
"tray_image_file": "kacha.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "sochy_1.webp",
"emojis": ["โ","๐"]
}
]
}
]
}
]
}
You are missing the last } in your code snippit, might be caused when copying though.
You can use this tool to check if there are errors in your json code: http://jsoneditoronline.org/
Try this:
{
"android_play_store_link": "",
"ios_app_store_link": "",
"sticker_packs": [
{
"identifier": "1",
"name": "Volodya",
"publisher": "Sersch Codex",
"tray_image_file": "volodya.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "1.webp",
"emojis": [ "โ","๐" ]
},
{
"image_file": "2.webp",
"emojis": [ "๐", "๐" ]
},
{
"image_file": "3.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "4.webp",
"emojis": ["๐ฉ", "๐ฐ"]
},
{
"image_file": "5.webp",
"emojis": ["๐ญ","๐ง"]
},
{
"image_file": "6.webp",
"emojis": ["๐", "โฅ" ]
},
{
"image_file": "7.webp",
"emojis": [ "๐","๐" ]
},
{
"image_file": "8.webp",
"emojis": [ "๐", "๐" ]
},
{
"image_file": "9.webp",
"emojis": ["๐", "๐ช" ]
},
{
"image_file": "10.webp",
"emojis": [ "๐ค", "๐"]
},
{
"image_file": "11.webp",
"emojis": [ "๐ฑ","๐ต" ]
},
{
"image_file": "12.webp",
"emojis": [ "๐ก","๐ "]
},
{
"image_file": "13.webp",
"emojis": ["โ", "๐ค" ]
},
{
"image_file": "14.webp",
"emojis": [ "๐","๐"]
},
{
"image_file": "15.webp",
"emojis": ["๐ป", "๐ฉ"]
}
]
},
{
"identifier": "2",
"name": "borodach",
"publisher": "Sersch Codex",
"tray_image_file": "boroda.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "boroda_1.webp",
"emojis": ["โ", "๐"]
},
{
"image_file": "boroda_2.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_3.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_4.webp",
"emojis": ["๐ฉ","๐ฐ"]
},
{
"image_file": "boroda_5.webp",
"emojis": [ "๐ญ", "๐ง"]
},
{
"image_file": "boroda_6.webp",
"emojis": ["๐","โฅ"]
},
{
"image_file": "boroda_7.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_8.webp",
"emojis": ["๐","๐"]
},
{
"image_file": "boroda_9.webp",
"emojis": ["๐","๐ช"]
},
{
"image_file": "boroda_10.webp",
"emojis": ["๐ค", "๐"]
},
{
"image_file": "boroda_11.webp",
"emojis": ["๐ฑ", "๐ต"]
},
{
"identifier": "3",
"name": "kacha",
"publisher": "Sersch Codex",
"tray_image_file": "kacha.png",
"image_data_version": "1",
"avoid_cache": false,
"publisher_email": "",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "sochy_1.webp",
"emojis": ["โ","๐"]
}
]
}
]
}
]
}
Every sticker pack must have minimum 3 stickers in it. Your last sticker pack has only 1. maybe its not working because of that
Yeah, please check your JSON.
Every sticker pack must have minimum 3 stickers in it. Your last sticker pack has only 1. maybe its not working because of that
Thx everybody for help! :)
Most helpful comment
You are missing the last
}in your code snippit, might be caused when copying though.You can use this tool to check if there are errors in your json code: http://jsoneditoronline.org/
Try this: