HomeiOS Developmentios - Notification faucet redirection : Flutter

ios – Notification faucet redirection : Flutter


I need to redirect to a selected web page on distant push notification faucet in my flutter app. So I fireplace the next JSON payload from the backend,

{
    "to": "cMXdSK_ud0LpqMoju85FvT:APA91bFMke92QR1IvcLeLhG5XrvwcE0OfSLGpJW1ds9-FFDornoeorMlKOn6IEtDYsuvwlRrwJnHJy0BPl_udcbqac39WF---------------------",
    "notification": {
        "title": "Krunal Right here",
        "physique": "Take a look at notification Krunal",
        "product_id" : "124",
        "content_available": true,
    },
    "knowledge": {
        "title": "Krunal Right here",
        "physique": "Take a look at notification Krunal",
        "product_id" : "124",
        "content_available": true,
    },
    "precedence" : "excessive"
}

Notifion acquired on each Android and iOS units. However I face 3 issues,

  1. Android telephone acquired 2 notifications, I feel one native notification generate robotically as a result of I used "notification" key phrase within the payload.

    (I eliminated "notification" object from the payload and move solely "knowledge" it really works high-quality within the android app however did not obtain any notification on the iOS machine. So will need to have used "notification" key phrase that I discovered, Occasion I attempted to make use of "aps" key phrase however iPhone didn’t obtain any notification.)

  2. iOS App redirection just isn’t working as a result of I did not get product_id from the payload.

  3. If I exploit each "notification" & "knowledge" notifications acquired on each apps. (Android acquired 2 notifications as I point out above) However redirection just isn’t working in any app.

What’s the right payload format for the flutter app? Are you able to please assist me to seek out this resolution?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments