Sunday, September 25, 2022
HomeiOS Developmentios - how to parse data for WebEngage push notification payload in...

ios – how to parse data for WebEngage push notification payload in swift?

[ad_1]

How to access any AnyHashable data in swift i have my data below , below is the log when i click the notification .
I’m not able to fetch the value of the name under AnyHashable(“customData”).
How to fetch the value from WebEngage push notification payload in Swift?
I received payload under willPresent delegate method
can any one help me out how to fetch the payload of notification

Here is the sample of payload:

 **[AnyHashable("license_code"): ~99098b73, AnyHashable("customData"): <__NSArrayI 0x2828e4ds0>(
    {
        key = "ID ";
        value = 143;
    },
    {
        key = name;
        value = ram;
    }
    )
    , AnyHashable("source"): webengage, AnyHashable("aps"): {
        alert =     {
            body = "Demo";
            title = "Demoxx";
        };
        category = 12fsd1;
        "content-available" = 1;
        "mutable-content" = 1;
    }, AnyHashable("cta_list"): <__NSSingleObjectArrayI 0x2623492d0>(
    {
        1432 =     {
            ctaId = 1432;
            deeplink = "https://....";
        };
    }
    )
    , AnyHashable("experiment_id"): T_chd1oo||~167f64cjdgd190a_2ee87e29-9cd0-4555-b04d-0b1c2ff43c50#22:16595=075343021, AnyHashable("expandableDetails"): {
        category = 10ds52de;
        image = "https:_____  .png";
        message = "Demoss";
        ratingScale = 5;
        rm = "<!DOCTYPE html><html><head></head><body>Demo</body></html>";
        rt = "<!DOCTYPE html><html><head></head><body>Demoxx</body></html>";
    }, AnyHashable("notification_id"): ~3o390k8]**
    

[ad_2]

Source link

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments