Monday, February 19, 2024
HomeiOS Developmentiphone - Flutter iOS Push Notification

iphone – Flutter iOS Push Notification


in my Mission, I wish to show customized notifications to the person with Superior Notification awesome_notifications

I’ve configured my Firebase and Sure, I do obtain Push Notifications on my iPhone, I’ve examined it working.

My challenge is with the Payload request used to ship the push notification

once I set my message with the notification object within the payload, the message might be delivered and show on the iPhone however as soon as I take away the notification object, no message is been displayed on the iPhone however sure the message was delivered,

Instance A

{
    "registration_ids":[
        "XXXEW23232332323232332oES-xeLNriKi_kds19eB6p9liZfl7pkJ8WWHh45G8VwJLH6-DK3bd7lRCGWQ_"
    ],
    "notification":{
        "title":"Title Push 2",
        "physique":"check message physique",
        "android_channel_id":"push_notification_demo",
        "sound":true,
        "":""
    },
    "knowledge":{
       "fromName": "Nosa",
        "messageType": "VOICE_CALL",
        "message":  "What do you assume",
        "fromUserId":  "09034286339"
    }
}

Instance B

{
    "registration_ids":[
         "XXXEW23232332323232332oES-xeLNriKi_kds19eB6p9liZfl7pkJ8WWHh45G8VwJLH6-DK3bd7lRCGWQ_"
    ],
   
    "knowledge":{
       "fromName": "Nosa",
        "messageType": "VOICE_CALL",
        "message":  "What do you assume",
        "fromUserId":  "09034286339"
    }
}

From the Two pattern codes, Instance A might be delivered and displayed
on the iPhone however Instance B will solely be delivered however doesn’t
displayed on the iPhone

I am utilizing Superior notification to deal with the Notification, I am solely within the knowledge object despatched as a result of, in my undertaking, I am dealing with incoming telephone calls so I do not desire a default Notification, and sure, I’ve additionally added the aps object to my code, but no message is displaying on the iPhone system.

please, how can I resolve this?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments