In the docs about Messages in “Message Publishing” https://backendless.com/documentation/messaging/android/messaging_message_publishing.htm I think there is an error in the example for “Publishing a push notification and targeting specific devices”.
The example says:
deliveryOptions.setPushPolicy( PushPolicy.ONLY );
But "PushPolicy.ONLY " doesnt work, is red underlined instantly by the IDE, but “PushPolicyEnum.ONLY” does work as is indicated in the previous examples.
Actually I found about this cause I mistakenly wrote “PushPolicyEnum.ONLY.ONLY”, I dont know why that was sintax valid but since I was letting you know about the other issue Im telling you about this also.