caffeinalab / ti.goosh

GCM/FCM module for Titanium.
MIT License
52 stars 34 forks source link

Icon displays on Emulator but not on Device? #100

Open mark22 opened 6 years ago

mark22 commented 6 years ago

Has anyone noticed anything like this? I have the proper notification icon.png setup in all the drawable-* folders.

Using the Genymotion emulator the notifications come through with my custom small white icon beautifully. But on the device its still using the generic white circle

Has anyone seen anything like this and any ideas?

Thanks!

progress44 commented 6 years ago

Hey @mark22, are you still experiencing this issue?

mark22 commented 6 years ago

@progress44 Yup still happening...

Abdelalim-dev commented 5 years ago

I remember I had a similar issue on certain devices and it was related to the payload sent by the server. Check if you're sending data correctly. @mark22 This is the format that worked for me on Android:

"data" => [
    "data" => [
        "title" => $title["en"],
        "alert" => $body["en"],
        "big_text" => $body["en"],
        "sound" => "default",
        "color" => "#FF2A5A"
        "customField" => "cusom value"
        //...
    ]
]