I developed an app with ionic v1. I use below codes in my authorization Service to send user token to the server.
$http.defaults.headers.common['X-Auth-Token'] = user.token;
and I get it in my PHP with this codes:
$token=( isset(apache_request_headers()['X-Auth-Token']) ) ? apache_request_headers()['X-Auth-Token'] : NULL;
In android & web
serve, it works true and token sent.
Then I run
ionic build ios in the mac and it builds
.xcodeproj app and I open it in xcode and run it in the simulator.
But token didn’t send in ios and I get
NULL in my PHP.