I got a problem with sending the token with the authhttp/http request.
Only on iOS my http requests are failing. The server (API) always responds with a 401 Unauthorized: “A token is required”.
This is my flow: user logs in > gets token from API > stores token in NativeStorage (normal storage broken in iOS) > redirect to profile page > does a [login to view URL] GET request for the user info with a token in the header > receives requested user info from API
=> the GET requests always errors.
I’ve tried using http request with a header, options, etc. I’ve tried to use [login to view URL] (was original request in my app, works on Android & browser) and I’ve tried to use the native advanced HTTP requests. But none of these methods work, because there is no token sent with the request, although I include a header.
Tried (almost) every solution I’ve found, but none works.
It is not a CORS problem, because the login request ([login to view URL]([login to view URL] + ’/get_token, creds) returns a token from that same API.
So in general: there is a problem with sending the token in a header with the request, because the API doesn’t receive one.
1/ you have to have a Bitbucket account
2/ you have to be able to test the solution yourself on an iPhone (not simulator etc) — we use Ionic pro for quick deploys
3/ A team member is able to provide more info and support on Skype
8 pekerja bebas membida secara purata €157 untuk pekerjaan ini
hello i am very interested in your post project i am sure i can give you good result in time. i have rich experience on it. please call me Dmitrii. looking forward your reply. best regards
Hi As a professional ionic developer, I can fix your http issue. I can start this project right now Please contact with me to discuss more details. Thanks, Zheng. D
Hello, I have experience with debugging HTTP requests in iOS apps, I can help you fix the problem. I also have a real iPhone device and a Bitbucket account. I worked as iOS app developer for 2 years.