Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Problem using "ledColor" and "VibrationPattern" #229

Closed
gregory-vorbe opened this issue Oct 14, 2015 · 2 comments
Closed

Problem using "ledColor" and "VibrationPattern" #229

gregory-vorbe opened this issue Oct 14, 2015 · 2 comments

Comments

@gregory-vorbe
Copy link

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.

@gregory-vorbe
Copy link
Author

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.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant