Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49082

Sending push notifications from backend server returns (422) UNPROCESSABLE ENTITY

$
0
0

@Aaronwmorse wrote:

Hi there,

Any help in the following respect would be hugely appreciated...

I have updated my app to use Ionic Push Beta and I am now getting the response (422) UNPROCESSABLE_ENTITY I never had any problems sending push to the old api location. I am sending the following request as per the documentation:

API-Endpoint = https://api.ionic.io/push/notifications
With the following headers:
Content-Type: application/json
Authorization: Bearer 'my-authentication-token'

Json =

{
  "user_ids":["my-user-ids"],
  "profile":"my-profile",
  "notification":
  {
    "title":"New Message",
    "message":"Hello World",
    "ios":
    {
      "priority":10,
      "badge":1,
      }
  }
}

I have no idea what I could be missing. As I said this all worked before the update to Push Beta.
Thanks in advance

Aaron

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>