I think there’s something wrong with PublishOptions in sending messages.
I sent a message using PublishOptions like this but it didn’t work:
PublishOptions *publishOptions = [PublishOptions new];
[publishOptions addHeader:@“publisher_name” value:name];
[backendless.messagingService
publish:“default” message:message publishOptions:publishOptions
response:^(MessageStatus *messageStatus) {
NSLog(@“MessageStatus = %@ <%@>”, messageStatus.messageId, messageStatus.status);
}
error:^(Fault *fault) {
NSLog(@“FAULT = %@”, fault);
}
];
It worked many times before without any error but now it doesn’t.
Please check this service.
Thank you !