Hi, I’m running through the iOS PubSubChat sample app at the moment. I’m seeing the following logs being printed out every second. I wonder if the SDK is doing a pulling to get new messages? Are new messages pushed to subscribers when they become available?
2014-04-23 10:17:07.279 PubSubChat[26215:70b] ChatViewController -> responseHandler: RESPONSE = (
) <__NSArrayM>
2014-04-23 10:17:08.283 PubSubChat[26215:70b] ChatViewController -> responseHandler: RESPONSE = (
) <__NSArrayM>
…
Thanks!
Derek
Hi Derek,
Currently the polling interval is hardcoded. We’re adding a method right now to make it configurable. It is also on our roadmap to allow pub/sub messages to be distributed via push notifications, I assume this is what you’re asking about.
Regards,
Mark
Hi Derek,
The library has been updated on our site. There is now a property in Backendless messaging:
@property (nonatomic) float pollingFrequency;
The default value is 1.0f, but you can change it to any other value (number of seconds between polls).
//
// MessagingService.h
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/
This file has been truncated. show original
Regards,
Mark