I am working with Backendless api in android for push notifications for my app.
I have configured delivery options as specified in the documentation.
When I run the code, push notification delivered only once.
I intend to deliver it for every one minute.
I am providing my code below.
I couldn’t figure out why my push notifications aren’t repeated
Please provide me with a solution
PublishOptions publishOptions = new PublishOptions();
publishOptions.putHeader( “android-ticker-text”, ticker.getText().toString().trim() );
publishOptions.putHeader( “android-content-title”, title.getText().toString().trim() );
publishOptions.putHeader( “android-content-text”, message.getText().toString().trim() );
DeliveryOptions deliveryOptions = new DeliveryOptions();
deliveryOptions.setRepeatEvery(60000);
Backendless.Messaging.publish(“admin”, “direct”, publishOptions, deliveryOptions, new AsyncCallback<MessageStatus>() {
@Override
public void handleResponse(MessageStatus messageStatus) {
pd.cancel();
Log.v(“messageSentadmin”,“Sucess”);
}
@Override
public void handleFault(BackendlessFault backendlessFault) {
pd.cancel();
Log.v(“messageSentadmin”,"fail "+backendlessFault.toString());
}
});