Stickers: [Android] Can't not add more than 2 Stickerpacks, otherwise App "keep stopping

Created on 28 Apr 2020  ยท  4Comments  ยท  Source: WhatsApp/stickers

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": ["โ˜•","๐Ÿ™‚"]
            }
      ]
        }
      ]
    }
  ]
}
Android

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:

{
  "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": ["โ˜•","๐Ÿ™‚"]
            }
          ]
        }
      ]
    }
  ]
}

All 4 comments

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! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noomanidrisi picture noomanidrisi  ยท  5Comments

Sadjiwo picture Sadjiwo  ยท  6Comments

livealmutaywia picture livealmutaywia  ยท  3Comments

diepox picture diepox  ยท  4Comments

sagarvekariyam picture sagarvekariyam  ยท  6Comments