iPhone app just showing website - iphone

Is it possible to make an iphone app which just shows a website?
So I make the website example.com and the app opens example.com.
Whenever I click a link it should just follow all links in the app and not in safari.
Is this possible and how?
Thanks.

This is known as "Add to Home Screen", you can program your website to support adding as an "HTML app". However, there are some limitations including the inability to save which page you are on.

Have a look at ui webview it can render HTML, PDF and can be used as a web browser.
It allows for displaying images and links and can be stored in your app bundle or online,

Related

What happens when you click on a URL link and the link opens the app instead in flutter?

I have a link to a website but I want when the user clicks on the link, they are taken to the app instead of the browser.
You can achieve this using device_apps Flutter_device_apps (not supported for IOS).
firebase_dynamic_links package can help you in this regards.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.

Facebook mobile iframe apps

Quick question. I've created a number of iframe apps for Facebook which work fine on PC, Mac etc. But not on mobile devices. The icon just doesn't show when you visit the page. I assumed this was because I'd not defined a mobile site URL. I've now done this, but I'm still not seeing an icon. Am I missing the point?
Thanks.
what icon do you mean? if you defined your mobile site url correctly, your app shows up in the search field. if you're talking about a page tab, it's not possible at all. the mobile native apps don't support this. but you can always link to your mobile site url in newsfeed!

can I open a website/webapp within iphone app as part of one of the tabs

I have an iPhone application with Tabbar. One of the tabs is UIWebView which opens a link to a website in which you can login and do some tasks.
So the question is,
Is it legal to have an iPhone application which allows you to login into website as part of application? I am not quitting the iphone application while visiting the website.
Thanks
DPatel
As far as you don't do any money transactions (i.e. eBay) in the website it is legal. If your intention is to use eBay or something like that inside the webview just open it externally in safari.
Yes. However, if the website allows unfiltered access to the web - ie has a google search, or external links, or a URL bar, note that your app will have to be rated 17+ due to the ability to find adult content on the web. As long as the website only has internal links, you should be fine.
However, Apple does sometimes have a cow about web interfaces not following Apple's UI Design guidelines, so make sure the buttons in your web page are big enough to be finger-touchable.

Is it possible to show a Facebook app as a Page Tab on mobile devices?

For example, the following URL shows the app in a tab:
https://www.facebook.com/just.to.get.a.rep?sk=app_203403406338325
But when on a mobile device it redirects to the mobile site and does not show the tab or even have a link to it:
https://m.facebook.com/just.to.get.a.rep?sk=app_203403406338325
I even have the application tab set as the Default Landing Tab for this page, but cannot get the pap to show for the page. Is there another format we need to develop for the App to support mobile? Ideally we would like to show the tab on iPhone app and other mobile viewing.
If you're in control of the link the user clicks on to reach your fanpage/pagetab-combination, then try adding a GET parameter ref=ts
h++ps://www.facebook.com/just.to.get.a.rep?sk=app_203403406338325&ref=ts
Apparently this prevents the redirect to the mobile version of facebook.
There's not currently any way to see App-provided Page tabs on the m.facebook.com site
Mobile web apps are supported, but they're not tied to the Page and need to be manually linked-to or bookmarked, the tab functionality simply doesn't exist now.
Currently you can develop application functions such as app authorisation but sadly no, you can't display standard iFramed tab apps, I suspect this is because of slow 3G data speeds and the fact that Facebook wouldn't want the mobile experience being any slower than it already is (dependent on external hosting etc).
Many of my larger clients are begging for it. The only workaround I use is to build an external page with the same content used in the iFrame - then you can direct users to the tab or mobile users to an external link.
https://www.facebook.com/pagename/app_000000000000000?ref=page_internal
as of now ref=page_internal is working as a work around.
You can redirect Mobile users to a specific mobile website, and have desktop users redirected to your page tab app.
Detailed instructions for doing this are available here:
https://stackoverflow.com/a/15860533/121285

Can an iPhone app generate web clips?

The safari browser lets you add an icon to the home screen as a bookmark to whatever webpage you happen to be on. I would want to do that same thing, but in an app I develop. So basically, the user would launch the app, do a bunch of stuff and somewhere along the way, a web clip would be created and pushed to their home screen (with their consent of course). Is this possible, or is it a feature exclusive to the Safari browser? It seems like this sort of thing could be done, but it also seems like it could be viewed as spam and therefore a reason for Apple to reject the app outright. Is this sort of thing feasible? If so, I would be very thankful for a link on where I could read up on how to go about it.
It seems unlikely that the iOS app security sandbox would allow an app to directly add web pages to the home screen.
Best bet might be to upload the webpage to some site, and then launch Safari with a URL to the webpage on that site, after requesting that the user manually "clip" that site using Safari.