How to use deep link to city airship using PHP

I am trying to send a push notification using deep link options, but unfortunately it does not work for me. I use PHP and curl, and my code is:

$params = array("audience"=> "all", "notification" => array("alert" => "Push notification from PHP", "actions" => array("app_defined" => array("^+t" => "sec:147", "content" => "http://www.url.com"))), "device_types" => array("android"));
$x = executeCurl('/push/', 'POST', $params);
    print_r($x);

Actually, I want to parse these parameters in my PHP code.

enter image description here

Can someone tell me what I'm doing wrong with these parameters? I want to use all pic parameters in my PHP code.

0
source share
1 answer

Finally, and viewing the parameters is as follows:

$params = array(
    "audience"=> "all", 
    "notification" => array(
        "alert" => "Test msg from PHP with deep linking",
        "actions" => array(
            "open" => array(
                "type" => "deep_link",
                "content" => "your-schema://deeplink/sec/147/det/1245-15454-dfkjd-45554",
            )
        )
    ), 
    "device_types" => array(
            "android", "ios")
);

$x = executeCurl('/push/', 'POST', $params);
print_r($x);
0
source

All Articles