How to get channel & custom object
Hello. I have extended the BackendlessPushService and handle my messages in
. So far so good, the method gets called and i can get the message if it is a String by calling
But what if I want to send something else that a String? The publishing API on Java (custom business logic) accepts an "Object" as the message, so that implies that I could send, say, a BackendlessUser. But how can I retrieve the message then? And what type/class would it have/be?
And the second question is: How can I get the channel I published the message in. I initialize my service with
. So one service is called "channel.new_match", for example. How can I get that String from the intent?