External Safari link or UIWebview? - ios

Im creating an App which needs to link to a PDF which is stored online (its far too big to bundle with the app). Ive submitted the app to the AppStore, but it got rejected when I loaded the pdf into a UIWebview. So I changed this to loading it into Safari, but this also got rejected!
Does anybody know of an acceptable way of linking to a PDF on the internet from an App?
Addition
The reason from Apple for the loading in Safari is:
We found the following issues with the user interface of your app:
When tapping on various tabs, it opens a web page in mobile Safari.

I guess this might be the reason (Not sure):
If you refer App Store Review Guidelines, in that 2.12 says:
Apps that are not very useful, unique, are simply web sites bundled as Apps, or do not provide any lasting entertainment value may be rejected.
So instead of opening that into Safari, try using a separate UIViewController with UIWebView in that. And open your pdf web link over there inside the application itself. Do not redirect user to Safari browser unnecessarily.
As per Apple report provided by you and Review Guidelines, I guess this might be the cause of rejection.
To make sure, you can comment over the mail which you have got with app rejection notification. And ask to Apple itself regarding the issue and solution as well. They normally do reply.

Related

Universal link doesn't open the app on iOS

I have an app with MagicLink authentication implemented using universal links. The app and the server are configured to handle universal links following Apple’s documentation (https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html).
The link successfully launches the app from Apple Mail + Safari. However when I try to open it from GoogleMail + Chrome, it redirect to the AppStore.
It is important to notice that the app isn’t on the AppStore yet and I’m trying to sort out the issue before publishing it.
I can reproduce the issue on the iPhone 6s with iOS 10
This is a known issue with a number of apps. Universal Links do not work in many situations, with the Gmail app being one of them. See a more detailed list here.
To work around this limitation, your Universal Link URL needs to lead to a page with a button/link on it the user can activate. At Branch.io, we offer a Deepviews feature for this purpose. You'll need to build something similar.

Branch.io redirects to app store only though app is already present in device

In my one of the apps I have implemented branch.io.
I have read each and everything and settled my account accordingly.
Now what I want from branch.io
1) If app is present in device it should open on the click of
marketing url.
2) If app is not present in device then it should redirect to app
store application page.**
What is not working
1> Though app is present but it is not opening my app. From same url
schema I can open my app from safari browser "appname://" but not able
to open from link of branch.io. It always opens app store page.
Please help me.
Thank you
Alex from Branch.io here. What you want from Branch is exactly what we do, so let's figure out what is going wrong!
This sounds like a Universal Links configuration issue. If you did not get Universal Links set up fully, then Branch links will redirect to the App Store. If you haven't yet set up Universal Links, go ahead and complete this guide to get started. If you have set up Universal Links, we have a troubleshooting guide you can run through to catch most issues.

when my app is not intalled, iOS universal link in UIWebView will launch Safari?

From Apple's guide in Support Universal Links:
When you support universal links, iOS 9 users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari. If your app isn’t installed, tapping a link to your website opens your website in Safari.
But i'm confused that if my app is not installed,and I tap a universal link of my app in another app's UIWebView,will the system launch Safari app to load my website,or still load it in the UIWebView?
I test some app's universal links when the app is not installed,and they never launch Safari to load the next page ,they still load it in the UIWebView.
I want to konw if it's possible to launch Safari,but not stay in UIWebView.Do I need any configuration in apple-app-site-association file?
Actually I want to trace where my app was installed from by using cookie.I can store a cookie in Safari with informations of the download page,and get the cookie with SFSafariViewController when my app is installed and opened,and present different views according to the cookie.
What you are trying to build is called 'deferred deep linking'. This (plus a lot more) is exactly what we provide at Branch.io. If you want to avoid the headache of configuring it all yourself, give this a look. Apps like Pinterest, Airbnb, and Tinder all use us for this reason.
Apple's documentation is referring to the default behavior with the standalone Safari browser. Handling links inside an app with UIWebView supersedes this, and there is no way to automatically bounce out of the origin app into the main Safari app.
The workaround is to store data on your own backend. As you've discovered, relying on a cookie pass-through on the device itself won't work in many cases.

App-Store Review Guideline: Responsive website in web-view

I have a responsive blogging website which works pretty well across all iOS and Android browsers. Now I want to create a native App for my website.
I don't have the resources to design my App from scratch and create mobile-APIs to be consumed by my App. So I am thinking about opening my website in a web-view. This would not be it though, I will be implementing the features like 'take a blog offline for reading later', notifications etc.
So, what are the chances that it would not get rejected by the App-Store®?
From Apple Guidelines:
Apps that are not very useful, unique, are simply web sites bundled as Apps, or do not provide any lasting entertainment value may be rejected.
Despite the fact, your app will provide "offline content" (which can be accessed by default Safari browser) I think you app will be rejected.
Safari will save the link and the webpage so you can read it, even when you're offline.

How to use UIWebView to display a website in an iPhone app?

I am using UIWebView to open a link in my app and I submitted it to the AppStore which resulted in the rejection with reason of 2.12 of review guidline which says
2.12: Apps that are not very useful, are simply web sites bundled as apps, or do not provide any lasting entertainment value may be rejected
Is it because I used UIWebView to open a web site.
UIWebView are used to open the websites. But your application must have certain more features.
The application containing only a UIWebView to open a website is of no use as instead you can open the website directly in the Safari and in that open the Actionsheet from the bottom bar and tap on Add to Home Screen option. It will be same as the application you have tried to upload on Appstore.
It is not because you open a website with UIWebView, but it might be because your app does only that. Your app must do more that just that.
As far as my knowledge you are not providing any useful information i.e nothing is special in your app

Resources