• Resolved ejnewstv

    (@ejnewstv)


    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 8 replies - 1 through 8 (of 8 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 1 year, 3 months 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’?

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    We sincerely apologize for the delayed response. We were looking into the issue but somehow missed updating you.

    Could you please confirm if you are still experiencing the same problem? If so, kindly update the plugin to the latest version 1.41, clear the cache, and recheck.

    Once again, we apologize for the delay and will strive to respond more promptly in the future.

    Thread Starter ejnewstv

    (@ejnewstv)

    i still got error like this on my debug.log

    PHP Warning: Invalid argument supplied for foreach() in /home/***/wp-content/plugins/push-notification/push-notification.php on line 188 ($audience_token_id got no return)
    PHP Notice: Undefined variable: response in /home/***/wp-content/plugins/push-notification/push-notification.php on line 207 ($response)

    i tried to print_r for variable $auth_settings = push_notification_auth_settings(); and got return.
    but
    $audience_token_id = get_user_meta($user_id, ‘pnwoo_notification_token’,true); is nothing

    any suggest?

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    We apologize for the delayed response. We have raised a GitHub ticket regarding this concern and it will be addressed in the upcoming update. We kindly request your patience in the meantime.

    You can monitor the progress of the GitHub ticket here .

    • This reply was modified 1 year, 2 months ago by Akshay A.
    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Hope you’re doing well.

    We have released an update version 1.43 that addresses this concern. Kindly update the plugin to the latest version, clear your cache, and give it a try.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘pn_send_push_notificatioin_filter’ is closed to new replies.