As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Phonegap Push Notification - Message displayed as raw json
S
StefK
started a topic
almost 8 years ago
Hello all,
I would like to know if other people have found a solution in order to display the phonegap push notification correctly with Kinvey.
When I use the push.sendPayload() method, the notification is sent in the form: message: "{...}"
So the message contains the string version of the json object we're passing.
The problem is, in the phonegap-plugin-push, the message is passed as-is to the notification code and displays the json as message in the notification center.
They fixed the problem for other providers by going through the extras, but since Kinvey send the payload as "message" in place of "data" or "alert" or something else, it doesn't work.
Is there a way to send the payload as a "data" notification in place of a "message" notification?
Does anyone have a working fork of phonegap-plugin-push compatible with Kinvey?
Preferably on npm that I can use in phonegap build.
StefK
Hello all,
I would like to know if other people have found a solution in order to display the phonegap push notification correctly with Kinvey.
When I use the push.sendPayload() method, the notification is sent in the form: message: "{...}"
So the message contains the string version of the json object we're passing.
The problem is, in the phonegap-plugin-push, the message is passed as-is to the notification code and displays the json as message in the notification center.
They fixed the problem for other providers by going through the extras, but since Kinvey send the payload as "message" in place of "data" or "alert" or something else, it doesn't work.
Is there a way to send the payload as a "data" notification in place of a "message" notification?
Does anyone have a working fork of phonegap-plugin-push compatible with Kinvey?
Preferably on npm that I can use in phonegap build.
Thanks in advance.
If you change to this plugin it fixes the problem https://github.com/KinveyApps/phonegap-plugin-push
I had the same issue as you and switching plugin (with out changing my code) fixed the issue
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstStefK
Thanks Aldan, I will try that and see how it goes from there!
Aidan Wardman
If you change to this plugin it fixes the problem https://github.com/KinveyApps/phonegap-plugin-push
I had the same issue as you and switching plugin (with out changing my code) fixed the issue
-
How do I use Kinvey in my web app?
-
Is it safe to include keys/secrets in my client-side JavaScript app?
-
Why is the activeUser null even though I am logged in?
-
Login does not work even though credentials are valid.
-
Social login doesn’t work.
-
Appending objects to an Array (HTML5 - JS)
-
New to node.js - need bootstrap to downloadfiles from Kinvey
-
Problem with Aggregation/Grouping
-
Internal Server Error using Twitter Sign Up
-
Data Store
See all 315 topics