Dissappear some devices on devices list messaging

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

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!

Hi Mirko,

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