English 中文(简体)
挥霍式SOS Push通知
原标题:Flutter iOS Push Notification

in my Project, I want to display custom notifications to the user with Awesome Notification awesome_notifications

我已经配置了我的消防基地,我确实收到了我的Piich的普什通知,我测试了它的工作。

My issue is with the Payload request used to send the push notification

when I set my message with the notification object in the payload, the message will be delivered and display on the iPhone but once I remove the notification object, no message is been displayed on the iPhone but yes the message was delivered,

www.un.org/Depts/DGACM/index_spanish.htm 例A

{
    "registration_ids":[
        "XXXEW23232332323232332oES-xeLNriKi_kds19eB6p9liZfl7pkJ8WWHh45G8VwJLH6-DK3bd7lRCGWQ_"
    ],
    "notification":{
        "title":"Title Push 2",
        "body":"test message body",
        "android_channel_id":"push_notification_demo",
        "sound":true,
        "":""
    },
    "data":{
       "fromName": "Nosa",
        "messageType": "VOICE_CALL",
        "message":  "What do you think",
        "fromUserId":  "09034286339"
    }
}

www.un.org/Depts/DGACM/index_spanish.htm 例B

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

From the Two sample codes, Example A will be delivered and displayed on the iPhone but Example B will only be delivered but does not displayed on the iPhone

I m using Awesome notification to handle the Notification, I m only interested in the data object sent because, in my project, I m handling incoming phone calls so I don t want a default Notification, and yes, I have also added the aps object to my code, yet no message is displaying on the iPhone device.

please, how can I resolve this?

问题回答

Iphonr is very emazing in world And iphone featcer is very good ios 17 very good. Iphone s softwear is ossam iphone is best in word





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签