ionic-team / legacy-ionic-cloud

JavaScript Client for legacy Ionic Cloud services. See Ionic Pro for our new take on the ionic development lifecycle
Apache License 2.0
65 stars 26 forks source link

Problems with Push notifications on iOS Production - status UNKNOWN #204

Open davideserafini opened 7 years ago

davideserafini commented 7 years ago

App id: a8d50e2b

Notifications on Android app and iOS app installed with Xcode are working fine, but not on iOS installed with TestFlight.

I've already tried:

but I still receive "UNKNOWN" as reply.

Reply of POST /push/notifications

{
    "created": "2017-05-01T16:08:50.813614+00:00",
    "config": {
        "notification": {
            "message": "Questa è una notifica di test da POSTMAN",
            "title": "Notifica di test"
        },
        "profile": "prod",
        "tokens": [
            "81ffb59a9f8466a7b8564523c5bdf4390df570bc7296354913457d4d5366de60"
        ]
    },
    "uuid": "25047aef-9c24-49d5-bd9f-4112c3e51d9e",
    "app_id": "a8d50e2b",
    "status": "locked",
    "state": "enqueued"
}

Reply of GET /push/notifications/:notification id:/messages

{
  "data": [
    {
      "uuid": "93ae8913-dbcb-4915-9bbb-c9242ebf111c",
      "user_id": null,
      "notification": "25047aef-9c24-49d5-bd9f-4112c3e51d9e",
      "created": "2017-05-01T16:08:50.867027+00:00",
      "status": "error",
      "token": {
        "valid": true,
        "id": "3b72e19721b9e764899d94c588d593ea",
        "type": "ios",
        "invalidated": null,
        "token": "81ffb59a9f8466a7b8564523c5bdf4390df570bc7296354913457d4d5366de60",
        "app_id": "a8d50e2b",
        "created": "2017-05-01T16:01:16.099624+00:00"
      },
      "error": "UNKNOWN"
    }
  ],
  "meta": {
    "version": "2.0.0-beta.0",
    "request_id": "7422956b-458c-45c6-c558-353ecd8cb0f6",
    "status": 200
  }
}

What could be wrong? Thanks in advance

organismen commented 7 years ago

I'm having the exact same issue, it works fine with dev profile but get unknown error for TestFlight install

I'm puzzled at the moment...

organismen commented 7 years ago

duplicate of #120 where I also found a solution