You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
};
{code}
Item types expected from that query are {{ARTMessage}}s. And those {{ARTMessage}}s have unspecified type of data properties which are likely causing the issues. Our integration tests do not raise any issues about this.
The text was updated successfully, but these errors were encountered:
ikbalkaya
added
the
bug
Something isn't working. It's clear that this does need to be fixed.
label
Jan 17, 2022
When calling -[ARTRealtimeChannel setOptions:callback:], the passed
options are not used to update the options of this instance’s REST
channel. This means that, for example, if we update the realtime
channel’s cipher options, these options will not be used to decrypt
messages subsequently fetched using the -history:* methods.
I think this is something we missed when fixing #1207 (34d68ec).
This issue is causing ably/ably-flutter#296.
Closes#1265.
QuintinWillison
changed the title
Issue with parsing channel history on iOS platform
Updating Realtime channel options doesn’t update the options of its REST counterpart
Jan 20, 2022
Customer reports issues with channel history messages not being properly received
[Check internal discussion for details |https://ably-real-time.slack.com/archives/C8SPU4589/p1642403978004400]
The closest thing that points to that issue is in a log customer provided
{{AblyWriter}} class in our iOS side of plugin has this method that is encoding paginated results back to the Flutter side
{code}
static AblyCodecEncoder encodePaginatedResult = ^NSMutableDictionary*(ARTPaginatedResult *const result) {
NSMutableDictionary<NSString *, NSObject *> dictionary = [[NSMutableDictionary alloc] init];
NSArray items = [result items];
if([items count] > 0){
UInt8 type = [AblyFlutterWriter getType:items[0]];
if(type != 0){
AblyCodecEncoder encoder = [AblyFlutterWriter getEncoder: [NSString stringWithFormat:@"%d", type]];
NSMutableArray *result = [NSMutableArray arrayWithCapacity:[items count]];
[items enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[result addObject: encoder(obj)];
}];
WRITE_VALUE(dictionary, TxPaginatedResult_type, [NSNumber numberWithInt:type]);
WRITE_VALUE(dictionary, TxPaginatedResult_items, result);
}
}
WRITE_VALUE(dictionary, TxPaginatedResult_hasNext, @([result hasNext]));
};
{code}
Item types expected from that query are {{ARTMessage}}s. And those {{ARTMessage}}s have unspecified type of data properties which are likely causing the issues. Our integration tests do not raise any issues about this.
The text was updated successfully, but these errors were encountered: