ejnewstv
Forum Replies Created
-
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?thanks…
fyi, i use that function for schedule post.. any other suggest besides use ‘pn_send_push_notificatioin_filter’?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));