Support Topics Documentation Slack YouTube Blog

Dissappear some devices on devices list messaging


(AnthonyDonkeez) #21

Do u know what code to add to put no expiration date ? (or larger like 10000 days)


(Mirko) #22

Hi,
i can set in the registerDevice a long expiration date? For example between more years?

This is my code:
Calendar cal = Calendar.getInstance();
cal.set(2100, Calendar.DECEMBER, 31);
Date expiration = cal.getTime();
Backendless.Messaging.registerDevice(getResources().getString(R.string.SENDER_ID),
channels,
expiration,
new AsyncCallback<Void>() {
@Override
public void handleResponse(Void aVoid) {
System.out.println(“registerDevice: OK”);
}

@Override
public void handleFault(BackendlessFault backendlessFault) {
System.out.println(“registerDevice: ERRORE”);
}
});

But have always the same problem that after 2 days there isn’t the device in the list.
Thanks for your support!


(Ilya Veklenko) #23

Hi Mirko,

I’ve created the internal ticket to investigate this issue (BKNDLSS-13734)
We will let you know about results here.
Regards, Ilya