Support Topics Documentation Slack YouTube Blog

Problem with receive push in some devices with '0123456789ABCDEF' serial number.

(Reza Ahmadi) #1

I have a problem with some devices that have “0123456789ABCDEF” Serial Number. This is my code for register device:

Backendless.Messaging.registerDevice(GCMSenderId, channels, date, new AsyncCallback<Void>() {
    public void handleResponse(Void arg0) {
        Log.i("GCM", "OK");

    public void handleFault(BackendlessFault arg0) {
        Log.i("GCM", "=" + arg0.getMessage());

Registration work well but these device don’t receive push notifications. Although it’s work very well in other devices with real Serial Number.

(Vitaly Vengrov) #2

Hi Reza. Push notifications work only on real devices. Not virtual

(Reza Ahmadi) #3

I know that, but they are real devices. Most of them have Android 4. I have 10,000 users and 500 of them have this problem. I had a research and find their serial number is the same, and it’s “0123456789ABCDEF”

(Vitaly Vengrov) #4

In order to receive push notification, device serial should be unique.Try to set a unique value to Backendless.Messaging.DEVICE_ID before registering the device :

private static final String DEFAULT_SERIAL = "0123456789ABCDEF";
if (Backendless.Messaging.DEVICE_ID.equals(DEFAULT_SERIAL) {
  Backendless.Messaging.DEVICE_ID = UUID.randomUUID().toString();

Hope it helps

(Reza Ahmadi) #5

Thank you very much Vitaly. It was the answer that i was looking for.