Unable to open pkpass on an iOS device - ios

Unable to open pkpass when I try I get the error "The pass “pass.pkpass” could not be opened".
When I try to open it in a simulator it works so I don't have a way to debug it. Any ideas?

Your pass is failing to load because your web service URL is not being served over HTTPS.
error 21:40:19.322330 +0800 Pass Viewer scheme of webServiceURL 'http://xxx.yyy-qa.com:8091/api/' needs to be an https rather than http.
To fix, either serve your web service over HTTPS, or hook your phone up to Xcode, enable developer mode, then check the option to allow HTTP for passes.

Related

Can I use the Google Picker API in an electron app?

I'm trying to use the Google Picker API to display a picker for the user to select a file. I have this working great in a web app (in a normal browser), but when I run the same code in an electron app, I see a 400 message in the popup iframe, and get the following console errors:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('file://').
Failed to load resource: the server responded with a status of 400 ()
The core problem seems to be that the electron browser window has an origin of file://. This seems to cause two problems:
The (chromium) browser security blocks the cross-origin iframe communication
Google rejects the request as not coming from a valid origin (and you can't add file:// as an origin in the developer console)
I can't think of any way to overcome these problems, but I'm hoping that someone has an idea.
You could create an app and host it in something like following, and then point the electron BrowserWindow to the url.
https://app.yourdomain.name/gdrive/picker?token=access_token
That should work I believe.

Failed to load resource: The certificate for this server is invalid. - error when using my site in an iframe on IOS

my website is being used by a third party iframe, the page has a single form
the link for the iframe is as follows
https://MYWEBSITE.com:8443/en?token=eyJhbGciOiAiSFMyNTawfc%3D&token2=ABC
:8443 is there because I am using multiple sets of certificates, some only with port 8443, others only with port 443.
whenever using mobile IOS, the website first load fine within the iframe, but after I try to submit the form, I get the following error:
Failed to load resource: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “MYWEBSITE.com”, which could put your confidential information at risk.
I use aws with elastic beanstalk load balancer
Sorry my English, and thank you for your help :)
P.S. it works fine on chrome, only safari is the problem

Apple Wallet Pass local development with http url

I finished setting up the webservice routes according to Apple documentation and I am able to sign and provide passes. Unfortunately I am experiencing the following problem. When I define the webServiceUrl as "https://localhost:5000/wallet/" the signing of the pass works as expected. I am then using the pass in the iOS Simulator where I have enabled the "Allow Http Services" in the developer settings but I am still getting the "An SSL error has occurred and a secure connection to the server cannot be made" error. Trying then to use http instead of https directly in the definition of the webServiceUrl in the pass.json file produces a signing error. Do you know which steps have to be made to be able to test pass updates locally?
The warning is telling you everything you need to know.
Change your webServiceUrl to http://localhost:5000/wallet/. The developer option means that you don't have to use https and the pass should still install on any device with "Allow Http Services" set.

iOS8 Simulator: Proxy authentication pop up not being shown

The corporate network which I am using is having "proxy" set up to connect to internet. I made the necessary changes in Network settings in mac and I am able to see websites loading in Safari (I have entered the credentials and saved in KeyChain also), but when I try to access the sites via iOS simulator, the connection fails and asks for authentication but the problem is that no pop-up is being shown so that I can enter the username and pwd. I have seen the pop-ups in iOS6 simulator and it used to work. I would like to know whether I need to do some changes specifically to iOS simulator to get this working?
I tried turning on Settings -> Developer -> Allow HTTP services, this works when you are in an open network (home), but in corporate network auth error is being show in a plain html page and there is no pop-up to enter credentials. I also tried restarting the simulator none of this fixed the issue .
Below is the error
Error Code :407 Proxy Authentication Required. Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209).
Thanks in advance
-anoop
This is mentioned as a known issue in the Xcode 6.1 Release Notes:
iOS Simulator does not support the use of network proxy servers that
require authentication. (14889876)

UIWebView: 502 Bad Gateway response

I have been loading UIWebViews with a set of URL's for a long time while testing my app with no problem. Now I get 502 Bad Gateway Error message when I load my UIWebView.
The URL's I use all came from the same source and all start with:
http://www.gijon.es/eventos/show/
Some URLs are for example:
http://www.gijon.es/eventos/show/21514-ciclo-ciencia-x-cine
http://www.gijon.es/eventos/show/20611-mercado-ecologico-y-artesano
I have tested the URLs from my browser and they work Ok.
I have tested doing a Log that this are actually the URLs just before creating the request.
I have made a testApplication with just a UIWebView loading this URL's and it fails the she way my app does.
Any other URL like http://google.com loads nicely.
How can I debug this problem? Should it be a problem with the remote server? Can it be a problem in my configuration?
The website is configured to handle requests differentely according to the browsers user agent.
So when you access it with UIWebView you are sending as a user agent iPhone, which takes you to a different page on the site.
Due to miscofiguration from their webserver you are seeing a 502 Bad Gateway error (probably they are running NginX).
To verify this, open Firefox, download the User Agent Switcher addon, select as a user agent iPhone 3.0, then open http://www.gijon.es/eventos/show/21514-ciclo-ciencia-x-cine
You will see the 502 bad gateway error
If you want to solve this, you can modify the default UIWebView user agent (set it to safari something). The way to do this is here

Resources