userID not saved in DB
-
I found something else that is not working quite as expected…
The userID from WP is not saved into the DB on the push server…
I tracked back and can see that the userID is set properly in the SafariPushParams
But on the server side
$userid = ""; foreach(apache_request_headers() as $header=>$value) { // this is the authorization key we packaged in the website.json pushPackage if($header == "Authorization") { $value = explode("_", $value); if(isset($value[1]) && $value[1] >0) $userid = filter_var($value[1], FILTER_SANITIZE_NUMBER_INT); break; } }
There is no header named “Authorization”…
I’m not exactly sure if the userID should be in there and the issue is coming from the plugin side not sending the info or the script on the push server not looking in the right place…
Any idea what’s going on there?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘userID not saved in DB’ is closed to new replies.