# App crashes when calling updatedMetaData delegate function

**URL:** <https://community.sendbird.com/t/app-crashes-when-calling-updatedmetadata-delegate-function/2041>\
**Category:** iOS\
**Tags:** group-channel, chatsdk\
**Created:** [April 12, 2021, 10:24am UTC](https://community.sendbird.com/t/app-crashes-when-calling-updatedmetadata-delegate-function/2041 "2021-04-12T10:24:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11113](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/11113/32/1158_2.png) [@11113](https://community.sendbird.com/u/11113)\
**Post date:** [April 12, 2021, 10:24am UTC](https://community.sendbird.com/t/app-crashes-when-calling-updatedmetadata-delegate-function/2041/1 "2021-04-12T10:24:24Z")

</div>

![스크린샷 2021-04-12 오후 7.13.51](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/2/2223b662b6c0bb1d9d5a9dc22fcfc74997f72c46.jpeg)

The didReceive message function works, but the updatedMetaData function is not called and the app crashed.  
Commenting out the updatedMetaData function all works fine.  
The SDK version is 3.0.221

---

<div class="post-metadata">

**Author:** ![Woo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/woo/32/125_2.png) [@Woo](https://community.sendbird.com/u/Woo)\
**Post date:** [April 14, 2021, 12:32am UTC](https://community.sendbird.com/t/app-crashes-when-calling-updatedmetadata-delegate-function/2041/2 "2021-04-14T00:32:00Z")

</div>

Hello @11113 would you be able to share some crash log if possible? that would help me to debug the problem you have faced. Thanks!

---

<div class="post-metadata">

**Author:** ![fante](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@fante](https://community.sendbird.com/u/fante)\
**Post date:** [April 13, 2022, 8:49am UTC](https://community.sendbird.com/t/app-crashes-when-calling-updatedmetadata-delegate-function/2041/3 "2022-04-13T08:49:35Z")

</div>

Hello @Woo  
Our app also experience immediate crash, crash happens even before enter the updatedMetaData delegate function.  
Our updated meta data contains only String value and valid JSON.

Crash log

```auto
Could not cast value of type '__NSCFNumber' (0x7f9b83814280) to 'NSString' (0x7f9b83813f98).
2022-04-13 13:32:17.745018+0700 mamikos[55097:1616925] Could not cast value of type '__NSCFNumber' (0x7f9b83814280) to 'NSString' (0x7f9b83813f98).

```
