AgoraIO-Extensions / AgoraIO-Extensions/Agora-Flutter-RTM-SDK

rtmClient.publish with storeInHistory=true returns error -15005

Aperta
#228 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
107
Fork
99
Merge medio
1m
PR unite (30g)
1

Descrizione

### 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

```console
[Paste your logs here]
```

### Flutter Doctor output

Doctor output

```console
[Paste your output here]
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.