Home > Back-end >  Why not get notification to IOS physical server with rest api in FCM?
Why not get notification to IOS physical server with rest api in FCM?

Time:06-22

I am able to send notification using FCM. To both "android" and "ios physical device". I do my submissions through the "Firebase Console". There is no problem here. When I send with a "json" request, I can receive notifications on the "android" side, but there is no response on the "ios physical device". I am sharing my json code below. I should point out that I'm posting via "postman".

{
  "registration_ids": [
    "cr5bpZ2BQoqTYKHm3UA4U7:APA91bGNu..."
  ],
  "priority": "high",
  "notification": {
    "topic": "weather",
    "title": "FCMasd",
    "body": "messagingsdf tutorial"
  },
  "data": {
    "msgId": "msg_12342"
  }
}

CodePudding user response:

1.check notification certification 2.enable remote notification option in Xcode

CodePudding user response:

  1. You need to setup a certificate file that enables a remote notification on Firebase Settings.
  2. and then you need to get a token value from Xcode.

If you need a code to get a token, I can provide it.

  • Related