"unknown" displayed under Device ID in messaging under devices

Backendless.initApp(this, BackendSetting.APPLICATION_ID, BackendSetting.ANDROID_SECRET_KEY, BackendSetting.VERSION);
Backendless.Messaging.registerDevice(“574733309670”, “default”, new AsyncCallback<Void>() {
@Override
public void handleResponse(Void response) {
// Toast.makeText(InitialSplashScreen.this, “registered”, Toast.LENGTH_SHORT).show();

}

@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(InitialSplashScreen.this, “device regs error =” + fault.getMessage(), Toast.LENGTH_SHORT).show();

}
});this is the code used for registration

Hi karanveer,

It is difficult to say what went wrong looking only at the example of your code.
Please, provide us some simple run-files to reproduce your issue (email - support@backendless.com)
Regards, Ilya

i was running on emulator so device id wont work on emulator sorry …

@karanveer,
Please clarify your answer, can we mark the ticket “Solved”?
Artur

By default device ID is always “unknown” when app runs in emulator and registers device. You can assign device ID manually using the following code:

com.backendless.Messaging.DEVICE_ID = 'put any value here';

Make sure to do it before you call the registerDevice API.

got it mate …thanks