Hi,
I’m calling (iOS, Swift):
var userIdStrings = [String]()
for follow in follows {
userIdStrings.append("u\(follow.followUser?.objectId)")
}
Backendless.sharedInstance().messagingService.unregisterDevice()
if userIdStrings.count > 0{
Types.tryblock({ () -> Void in
let string = Backendless.sharedInstance().messagingService.registerDevice(userIdStrings)
print(string)
},
catchblock: { (exception) -> Void in
print("(FAULT): \(exception as! Fault)")
})
}
I get:
(FAULT): FAULT = '5010' [Can't find message channel with such name for the given application] <Can't find message channel with such name for the given application>
In the documentation is says:
If no channels are specified in the device registration call, Backendless registers the device with the default channel. If the device registration call references a non-existing channel, Backendless creates the channel and registers the device with it.
I’m trying to message followers of a user, so I create a channel for each user as suggested by Stanislav:
http://support.backendless.com/t/targeted-mass-push-notifications-query-limit-when-fetching-users
It worked for me (created new channels) just minutes ago.