HTTPS url in UIWebview is not working in iphone / ipad - iphone

Im new to iphone development . trying to make sample browser application where i have used HTTPS url in UIWebview is not working in iphone / ipad.(https.example.com).
when im tried in safari i gave me the following error message :
""CAN NOT VERIFY SERVER IDENTITY - SAFARI CANT VERIFY THE IDENTITY WOULD YOU LIKE TO CONTINUE ANY WAY"".. when i pressed continue.it was working
but in my browser app its not working can any one help me in this.
Thanks in advance

As far as I know, you need to download the web page manually and use loadData:MIMEType:textEncodingName:baseURL: - there's no way to adjust the trust settings of a UIWebView's internal requests.
I'm not sure how this will work for any https resources (images, css, etc) on the same domain though. Hopefully it will work fine.

Related

App Store/Play Store redirection if App is not installed on ionic App

I have implemented deeplink for my ionic v1 application and also implemented universal link for same. I also checked so many links to implement App store redirection functionality.
Most of the link suggest to implement javascript code which first check device and based on ios/adnroid/window it will redirect to particular store but let say I will create that javascript code look like below
const iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
if (iOS) {
window.location.href = "temp://itunes.apple.com/us/app/...";
}
but where should I put this file so when user click on deeplink it should redirect to particular this file and redirect to App Store/Play Store?
Let say I want to give my deeplink to some other server for which i don't have any access then what?
is there any other param or attribute we can set like fallback url by which when app is not installed it will automatically going to that particular link?
Any answer would be great help.
Thanks.
Usually it works that way:
You place a link on the website where you want to advertise your app. That link has a click tracking domain that points to your server. e.g. click.example.com/....
Upon clicking, if the app is installed, Universal Links would ensure that the app is opened. This is done by iOS (only if you configured Universal Links correctly, see https://developer.apple.com/ios/universal-links/). If the app is not installed, a redirect is done to your click tracking domain. This is where your Javascript logics should apply, so basically you need to reply to the request with a 302 redirect to an HTML file that contains the redirection logics (as in the example above). In that server response you can handle any fallback URL you want to use.
By the way, to make Universal Links work, anyway you had to host the AASA file, so you probably already created a server, so you can use it for the case where the app is not installed.

Facebook application (Static HTML)

I'm trying to create a landing page on facebook with the Static HTML application, but the image does not appear in IE8 show only at 9 and other browsers like Chrome and Firefox.
The application link is: https://www.facebook.com/hyundainic/app_128953167177144.
Yet another application that looks like:
https://www.facebook.com/SomosEskimo/app_367456286664440.
This if displayed in all browsers, except that technically I do not know if it's the same.
I'm editing the html / css and occupy absolute and relative positioning, I thought that this could affect and remove it, but the problem persists forever.
Can someone help me with this?
I think the issue is probably that you are using an absolute, non-SSL URL for the image source, and the links you posted to the app use SSL. If you leave the protocol off (example: "//whatever.com/myimage.jpg" instead of "http://whatever" or "https://whatever") the browser will use https when needed.
However, it looks like your image doesn't work over SSL:
https://hyundai.com.ni/img/quickservice-fb.jpg?id=3
You can try viewing your app using http:// and confirm it displays ok in all targeted browsers to see if this is really your issue.

How to make my iOS application handle web links

I have to make my application handel web like (juste like a web browser).
I add CFBundleURLTypes to my plist file and then in CFBundleURLSchemes I put http and CFBundleURLName com.mydomaine.myapp.
Then I tried to send a SMS with a web link : It's stil open Safari when I clicked the received link !
This work great with a custom schema : myapp://mylink.com ! but the problem is : I have to send SMS with links to my app users and then they can click those links and open myapp who do stuff flowing links contente ! the Message app dont recognize cutome url schema as a clickable link ! So the only solution I found is to make this operation using http link !
(I know that my problem can be solved using APN! but for some reasons I cant use it !)
Thank you for your help !
You can't override http links to redirect to your app; that would break a lot of other pieces of the system.
You should send them a http link which goes to a server you set up. That server can then redirect the users to your custom link scheme, or offer to let them download the app, etc.

Facebook tab not showing when using HTTPS even though SSL certificate is installed

For some reason my application has decided to stop loading page tabs when using HTTPS. I do use SSL certificate on my server, the Facebook canvas page even loads using HTTPS;
https://apps.facebook.com/myflashstore
But the Page tab only loads using HTTP even though for a long time it was working with HTTPS just fine.
http://www.facebook.com/trubeats/app_79482449955
https://www.facebook.com/trubeats/app_79482449955
In the app settings, the Secure Page Tab URL is the same as the Page Tab URL so there shouldn't be an issue. Anyone have any ideas? Help is much appreciated
I found the solution. The Secure Page Tab URL was a relative URL, relative to my Canvas URL - while it worked fine ever since I made the app, and worked fine for HTTP requests, for some reason the Secure Page Tab URL now wanted a full URL. Thanks Facebook for continually changing things...makes life much easier for us!

How do I embed openads (Openx) ads in an iPhone application

I have tried using iframe, javascript and image tag Ad tags in iPhone application, but none of them work. When a user clicks on an image, the browser is launched but then nothing happens (you get a blank page). Anyone know how to proceed?
To proceed: debug it. A standard OpenX click URL will do a redirect. What URL is the browser sticking at?
I don't know anything about iPhone applications, but I do know about interfacing to OpenX. You possible should consider using the OpenX API, which will allow you to pull all the information you need into the 'back end' of your application, then use it as you need.
Proplem in iphone must be active enable java in iphone safari settings