Search code examples
iosobjective-cmessageios-extensions

ios Message App extension insert sticker error code 6


We developed a Message App extension written in obj-c. Right now we are having problems when inserting a GIF image using the method insertSticker. The gif image is on a remote server and we first save it to local storage before inserting it to the active conversation.

We got this error description. Error Domain=com.apple.messages.stickers-error Code=6 "(null)"


Solution

  • We got this error due to memory limit for GIF file. It is given in the documentation for Messages framework.

    1. The image must be a PNG, APNG, GIF, or JPEG file.

    2. The file must be less than 500 KB.

    3. For the best results, the image should not be smaller than 100 x 100 points or larger than 206 x 206 points.