Problem using "ledColor" and "VibrationPattern" #229

Closed
fluidz91 opened this Issue Oct 14, 2015 · 1 comment

Projects

None yet

1 participant

@fluidz91

Hi,

I have been successfully able to make push notifications work on my Nexus 5 Android M (6.0).
I am currently using "title", "message", "style" => picture, "picture" => url to image and "summaryText".
I wanted to use "ledColor" => [0,0,255,0] and "vibrationPattern" => [2000,1000,500,500] as stated in documentation, but nothing happens.
I tried to debug client-side ang get the following JSON on notification event:

{"summaryText":"custom text","picture":"http://mywebsite/myPicture.png","from":"XXXXXXX","style":"picture","vibrationPattern":[2000,1000,500,500],"ledColor":[0,0,255,0],"coldstart":false,"collapse_key":"1","foreground":false}

I am not the author of the Java code that sends the payload to GCM, but I have access to source code.

Can anyone tell me what I am doing wrong ?

Thanks.

@fluidz91

The problem has been fixed when I rebuilt the application through Phonegap Build CLI 5.1.1 with the new preference that uses gradle and setting min sdk version to 13 (was previously 10) in my config.xml file.

@fluidz91 fluidz91 closed this Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment