• I want to use the push notification feature from the pn_send_push_notificatioin_filter function, but I am getting the following response. Is there any solution?

    my post data :
    $response = pn_send_push_notificatioin_filter($user_id, $title, $message, $link_url, $icon_url, $image_url);

    result i got :
    PHP Warning: Invalid argument supplied for foreach() in /home/***/public_html/***/wp-content/plugins/push-notification/push-notification.php on line 188

    PHP Notice: Undefined variable: response in /home/***/public_html/***/wp-content/plugins/push-notification/push-notification.php on line 207

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us. Could you please share a video showing the steps you are taking and the error occurring on your end so we can check accordingly?

    • This reply was modified 2 weeks, 2 days ago by Akshay A.
    Thread Starter ejnewstv

    (@ejnewstv)

    i used from function.php

    $user_id = *****;
    $title = “Title”;
    $message = “Message”;
    $link_url = home_url();
    $icon_url = ‘img’;
    $image_url = ‘img’;


    $response = pn_send_push_notificatioin_filter($user_id, $title, $message, $link_url, $icon_url, $image_url);

    error_log(“Hasil tes push notification: ” . json_encode($response));

    Plugin Support Akshay A

    (@akshaycode1)

    Hi, we apologize for the delayed response. We are currently checking this and will provide you with an update shortly.

    Thread Starter ejnewstv

    (@ejnewstv)

    thanks…
    fyi, i use that function for schedule post.. any other suggest besides use ‘pn_send_push_notificatioin_filter’?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.