Ionic api not works properly - ionic-framework

Can anyone tell why Api not working on real device? I am using .subscribe() or .pipe() to get or post api's
..
It works fine in browser, many people asking the same question on the internet but i dont find the best answer... Anyone? Knows the solution

Api's were not working on real device because of the CORS issue, when backend developer enable the CORS now i am getting Api response in all devices.

Related

Drupal REST in IOS failed with 403 forbidden access but success in browser

My app can interact with Drupal API in the browser but not in the simulator and device. (Currently testing in iOS).
How can I fix it?
Everything is working fine in the browser but in the simulator/device, I get 403 forbidden access.
The problem that might cause it
I think the issue is with cookies? In Drupal, I have ini_set(‘session.cookie_samesite’, ‘none’); and it works. If I removed that, I get 403 forbidden access in the browser, simulator & device.
If I add that, it works on the browser but not in simulator/device.
How can I fix this?
Can I use https://ionicframework.com/docs/native/http/ instead of angular http service? Does it support withCredentials?
Thanks
I think you should use a different authentication method if you want to access the site from different devices. By default, Drupal has "Samesite" to "Strict" I think. Setting the samesite to "None" means that other domains or devices can access the same cookies from your website.

IOS linkedin integration (Send Connection Request, Search People)

I'm using the linkedin OAuth sdk.
I have the oauth functionality working and my iPhone App is able to successfully logged in to LinkedIn.
i want to implement these two things.
I want to search people using the JSON protocol.
I want to send connection request people which i got from search.
Please provide me assistance asap. suggest me Sample codes if any.
thanks in advance.
I couldn't offer you specific answer for your question, but you should check on this open-source project.
LinkedIn Share for iOS

OAuth integration in iphone app

I have one problem regarding OAuth integration in iPhone App.
Can anyone help me how to integrate OAuth 2.0 with facebook in iPhone ?
I have referred so many sites about OAuth but I haven't got satisfied answer yet. I referred this question of stackoverflow. There is one good option about ShareKit. But my client wants only OAuth 2.0.
I downloaded framework from google code. I integrated it in my application. But How to use it ? Without guidance I can't implement it in proper way.
I have got stuck between my application and 0Auth 2.0 since last 3 days. Please can anyone give me idea or demo project or any another tutorial ?
Rather than implement OAuth for Facebook, make use of the Facebook iOS SDK which makes handling Facebook Auth and Requests much easier. You can read about it and download it here... http://developers.facebook.com/ios/
I just done a research
This post will really help you
Also please look at the below posts
iphone-facebook-oauth2-graph-api
OAuth and Facebook iPhone SDK
The framework you mentioned in your post is not for OAuth 2, but for OAuth 1.0a.
You can try the OAuth2Client we developed for talking to the SoundCloud API. It's build against draft 10 of the spec. I'm not sure which one is used by Facebook. Unfortunately the spec is not final yet and over the years different services adopted different drafts of the spec.
If you're able to argue with your client I'd try to convince him to let you go with the official iOS SDK. This gives you many benefits like automatic token refresh, single sign on via the official app & much more.

Unable to pass FB OAuth for my application

We faced with issue originally on the BB app. We stuck in browser whenever we use auth URL:
http://www.facebook.com/dialog/oauth?scope=publish_stream%2Coffline_access&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&response_type=token&display=touch&client_id=127229817336080
Interesting what is wrong with the response because even desktop browser stuck.
We submitted issue to FB but still are looking for workaround. Any thoughts/ideas are appreciated.
Nothing wrong here, I just authed your app without problems....
whats wrong ?
i just installed your app with 2 extra permissions (posting as me & offline access token)
(just remember offline access token will be not available try to use long time tokens )
Even we faced similar type of problems in authenticating our FB App. Authentication window use to hang up and nothing use to happen and symptoms were same as you are facing. Probably this may not be the answer to your problem but it might be worth knowing that FB SDK have such issues if your application runs on non-standard ports. The standard ports are 80 and 443. Once we started running our app on these ports the error was gone.

CrossDomain POST issue in Android Emulator using PhoneGap

I'm building a hybrid mobile application (PhoneGap+JQM). While testing in the Android emulator, I'm observing what must be a cross-domain POST issue against a SOAP web service. I can do a GET for the WSDL (thus proving I can indeed reach the domain in question). But if I change my request to a POST with a SOAP payload, I get an error. (LogCat shows "Internal Server Error" in the error callback function.)
I've seen posts and documentation on how cross-domain POSTs aren't prohibited using PhoneGap, but in my emulator it's not being allowed. Any thoughts on what I may be missing?
See my comment above. Hopefully others will learn from this if they get unknown web-service errors. (always use SoapUI to verify correct content, and use a sniffer to double-check your own POST)