Skip to content

rtmClient.publish with storeInHistory=true returns error -15005 #228

@saina211

Description

@saina211

Version of the agora_rtm

When using Agora-Flutter-RTM-SDK version 2.2.5, publishing a message with storeInHistory=true fails with error code -15005 (historyNotAvailable).
Console RTM Storage permission is already enabled.

If storeInHistory=false, the publish works normally.

To Reproduce

Image

Platforms affected

  • Android
  • iOS
  • macOS
  • Windows
  • Web

Steps to reproduce

1.Download Agora-Flutter-RTM-SDK-2.2.5
2.Run example

Expected results

[2025-09-15 12:01:08.738][63375774][I][iris_rtm_api_engine.cc:149] api name RtmClient_publish_2d36e93 result {"requestId":9,"result":0}
[2025-09-15 12:01:08.738][63375781][D][iris_macro.h:28] event RtmEventHandler_onPublishResult_4f46899, data: {"errorCode":-15005,"requestId":9,"requestId_str":"9"}

Actual results

[2025-09-15 12:01:08.738][63375774][I][iris_rtm_api_engine.cc:149] api name RtmClient_publish_2d36e93 result {"requestId":9,"result":0}
[2025-09-15 12:01:08.738][63375781][D][iris_macro.h:28] event RtmEventHandler_onPublishResult_4f46899, data: {"errorCode":-15005,"requestId":9,"requestId_str":"9"}

Code sample

[2025-09-15 12:01:08.738][63375774][I][iris_rtm_api_engine.cc:149] api name RtmClient_publish_2d36e93 result {"requestId":9,"result":0}
[2025-09-15 12:01:08.738][63375781][D][iris_macro.h:28] event RtmEventHandler_onPublishResult_4f46899, data: {"errorCode":-15005,"requestId":9,"requestId_str":"9"}

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions