As the title says I’ve run into a bit of a problem, from what I can see I’m unable to send messages from my business logic due to permissions.
I’m not sure what would be the best way to resolve this short of just creating an account to represent the server and giving it extra permissions and logging in with credentials in the bootstrap.
Is what I stated the best way to go about this or am I missing a key factor?
Put all the code inside of the event handler into a try/catch block, make sure to do exception.printStackTrace() in the catch block and run the handler with CodeRunner debugger.
Also, make sure to check the permissions screen for the Messaging service. This is what it looks like in my app: http://monosnap.com/image/WFjvhJT6w1HPEta2fTHVh8Orjw9tlW
Regards,
Mark
The way I have my roles setup is fairly restricted as this is a private application, is the server considered a non authenticated user? Would it be viable to login the server as it’s own user in the bootstrap? Or assign the server as it’s own role somehow?
By default the server is acting as a non-authenticated user. You can add the login call into the bootstap class (the one where Backendless.initApp is called) and then assign special permissions to the user whose account you use on the server-side.