0

I'm trying to send JSON Push to my iPhone from the Parse web interface and it doesn't work.

The web service tell me the status is Done and the notification is "No Alert" but I dont have any notification on my iPhone ...

This is what I get : https://i.sstatic.net/bCh2F.png

And this is the JSON that I send :

{ "data": { "alert": "A test notification from Parse!" } }

And yes a simple push with message (no JSON) works fine.

Thanks for your help

asked Sep 19, 2014 at 20:11

2 Answers 2

1

Try { "aps": { "alert": "A test notification from Parse!" } }

answered Sep 19, 2014 at 20:14
Sign up to request clarification or add additional context in comments.

Comments

0

I used the following JSON with a single level and it worked for me (showing correctly title and alert message):

{
 "title": "<the title goes here>",
 "alert": "<the message goes here>",
}

Also what i found out from code is, if you don't do any magic by overriding ParsePushBroadcastReceiver's onPushOpen, you can add an uri and an action. For example this one we use to send users to Play with an information about an available update (if there version is very outdated):

{
 "title": "<the title goes here>",
 "alert": "<the message goes here>",
 "uri": "https://play.google.com/store/apps/details?id=<package name>",
 "action": "android.intent.action.VIEW"
}
answered May 31, 2016 at 17:42

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.