Message publish fails with Persistent delivery mode due to 'Message Too Large' error

Bug Description

I am using a C-based library for iOS development. When I attempt to publish a message to a topic with the delivery mode set to Direct, it works successfully. However, when I try the same with the delivery mode set to Persistent, I encounter the following error:
Error: solClient_session_sendMsg() - ReturnCode="Fail", SubCode="SOLCLIENT_SUBCODE_MESSAGE_TOO_LARGE", ResponseCode=0, Info="Message size of 11 bytes exceeds maximum guaranteed message size of 0 bytes"
I am using the same code in both scenarios, only changing the delivery mode.

The failed scenario (Persistent delivery mode) uses the line:

solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_PERSISTENT);

The successful scenario (Direct delivery mode) uses the line:
solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_DIRECT);

Note: I want to publish the message with the delivery mode set to Persistent. Is there anything I might have missed or need to configure in order to publish the message with persistent delivery mode?

Expected Behavior

Message should be successfully published to the topic with Persistent delivery mode without exceeding the message size limit.

Steps to Reproduce

Just check with below line
solClient_msg_setDeliveryMode(msg_p, SOLCLIENT_DELIVERY_MODE_PERSISTENT)

Hello.

Thanks for your question. Unfortunately the C-based IOS API does not support guaranteed messaging.

See iOS API

Unfortunately in the C API release 7.32.0.3 this was inadvertently obfuscated by the error you are seeing. Earlier versions of the API would clearly have generated the diagnostic:

Attempt to call solClient_session_send for session ‘session description’ to send an assured message when service not supported on session

If you require Persistent delivery mode, you may consider using the java or javascript APIs on your iOS device.

Regards,
Ragnar