-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Android action button callback not triggered #298
Comments
@stewartmegaw can you post the payload you are sending from GCM to the device so I can test? |
{ This is the json my php script is sending to GCM via the following curl commands: curl_setopt($ch, CURLOPT_URL, $url); These commands do send the notification. And I can't see a problem with the json above (fyi i logged it as a string using json_encode function). And function proa is declared globally in my index.html. |
hi @macdonst here is my php payload
here is my javascript
|
solve in |
hi bau720123, |
This thread has been automatically locked. |
Firstly, great plugin. Much improved over the last.
When receiving a push notification with one action button:
The icon and title both display in the notification but when I click the action button (not main body of notification) two unexpected results occur:
The action callback is ignored and the regular notification callback is triggered.
The notification remains in the shade even though the app is now in the foreground.
I have clearly defined my callback function so can't see any problems there.
The notification in shade eventually disappears if I either place the app in background or click the notification again.
Tested using latest plugin 1.4.1
Android 5.0 ZenPhone 2
The text was updated successfully, but these errors were encountered: