Hello again, I am trying to achieve similar solution I’ve created for v3.0 but I am struggling.
Please find attached project to illustrate the issue:
Basic send:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12f1b}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #ba2da2}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #4f8187}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #000000}
span.s5 {font-variant-ligatures: no-common-ligatures; color: #31595d}
span.s6 {font-variant-ligatures: no-common-ligatures; color: #d12f1b}
span.s7 {font-variant-ligatures: no-common-ligatures; color: #3e1e81}
let publishOptions = PublishOptions()
publishOptions.publisherId = "5DF302D1-CBFC-9D3A-FF64-71D1B84CEC00"
let deliveryOption:DeliveryOptions = DeliveryOptions()
//deliveryOption.pushPolicy(PUSH_ALSO)
Backendless.sharedInstance().messaging.publish("CHN-626EC44A-5DAA-3B34-FFB0-A733BB011A00", message: message, publishOptions: publishOptions, deliveryOptions: deliveryOption, response: { (msgStatus:MessageStatus?) in
print(msgStatus)
}) { (err:Fault?) in
print(err?.message != nil ? err!.message : "")
}
Basic subscribe:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures; color: #000000}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #ba2da2}
span.s3 {font-variant-ligatures: no-common-ligatures}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #4f8187}
span.s5 {font-variant-ligatures: no-common-ligatures; color: #31595d}
span.s6 {font-variant-ligatures: no-common-ligatures; color: #d12f1b}
span.s7 {font-variant-ligatures: no-common-ligatures; color: #3e1e81}
let subOptions:SubscriptionOptions = SubscriptionOptions()
//subOptions.deliveryMethod(DELIVERY_POLL)
Backendless.sharedInstance().messaging.subscribe("CHN-626EC44A-5DAA-3B34-FFB0-A733BB011A00", subscriptionResponse: { (messages:[Message]?) in
print(messages)
}, subscriptionError: { (error:Fault?) in
print(error?.message != nil ? error!.message : "")
}, subscriptionOptions: subOptions, response: { (sub:BESubscription?) in
print(sub)
}, error: { (error:Fault?) in
print(error?.message != nil ? error!.message : "")
})
This I’ve done only for purposes of illustrating issue, but I tried using custom logic (using JS) with same result. App seems to be properly registered with channel, device token is registered too. But every time I publish message, it receives proper status - scheduled. But no message is received.