Add safari bookmark from iPhone app - iphone

I'd like to have my application be able to add bookmarks to safari programmatically, is this possible?

Not really possible : there's no API for that (and you can understand it from user perspective....).
An answer here confirms it :
Add bookmark to Safari on iPhone when an application is installed?

You can't add a bookmark in Safari itself, but you can add an icon on the user's Home screen that bookmarks an arbitrary URL:
User Experience Coding How-To's for Safari on iPhone

Related

Include own App to share sheet options of other Apps (e.g. Safari) using SwiftUI

I want to share the URL of the current Safari page with my app from within Safari.
Unfortunately, somehow all SO posts or tutorials deal with how to share URLS, texts, ... from your own app to other apps and not the other way around.
Can anyone give me some keywords/WebSite/Documentations/... on how to display my own app in the share sheet options of other apps (e.g. Safari).
Thanks
For those who are also just starting with iOS development and are asking the same question:
https://developer.apple.com/documentation/foundation/app_extension_support/supporting_suggestions_in_your_app_s_share_extension
You have to add a share extension to your project. There you can make all the other settings, such as the number and type of objects you can receive (image, text, link, ...) and the view that is displayed when you call your own app.

iPhone web app icon: Force native Safari to load (like Grooveshark)

Our iPhone web app has a homescreen icon users can save. It's an audio specific application.
When users save it to their homescreen and then click homescreen icon, the iPhone doesn't open regular Safari. Rather it opens some sort of quasi Safari, one where there is no URL bar to be seen. Actually it's really cool and makes our web app feel a lot like a native app. Unfortunately this version of Safari doesn't play audio when user has their phone sounds off. Regular Safari will play sounds either way.
Thus and like Grooveshark has done we want when user clicks our web app icon to open regular Safari.
Can anyone provide any guidance on this?
If it's opening a standalone application you have to remove the web-app-capable from your meta tags.
<meta name="apple-mobile-web-app-capable" content="yes" />
More informations

How to Link to a Website or Safari within my iOS app

I am using Xcode to develop an iOS app and I need to know how to link a website to a button to open with in the app. I want o have a drop down bar that has buttons to return to a separate screen and a button to save the link to another place. Is there a way to open a website or a link to safari with my app?
You can open a website directly by using a UIWebView object in your app.
You can get Safari to open a web site by invoking something like [[UIApplication sharedApplication] openURL:myURL].

Is there a way to open a YoutTube Link on a mobile website (iPhone) without opening the YouTube App

I think the answer to this is probably no, as I have been searching for days and have not run across the answer. I have a mobile site that has links to youtube videos in http://www.youtube.com/watch?v=XXXXXXXXX format. The links open in the iPhone Youtube app which takes the user out of Safari and is a suboptimal experience, as the user then has to re-open safari. Is there any type of parameter to pass that would allow these video links to open in the same view that say an embedded video opens in, or a direct MP4 would open in(which allows the user to simply click done, and boom they are back on Safari)? It sucks that only iframe or embedded videos seem to allow this functionality and not links.
From messing around with the mobile Youtube site itself, it looks like you can link to the mobile page for a particular video with this URL format: http://m.youtube.com/#/watch?v=XXXXXXXXX. Visiting that URL will show the video page in Safari without launching the Youtube app.
For me this solution is pretty simple but elegant and it did work perfectly
https://github.com/hellozimi/HCYoutubeParser

How can I get the facebook user-agent string when click a link in Facebook app?

I have created a facebook application that is used for posting a message to the wall. The application works fine. In the message I post there is a link. When I use the iphone facebook app and click this link instead of having Safari open immediately, the url opens in an internal frame of the facebook app and by click the small arrow it has the on the right bottom I can choose 'Open in safari'. This happenes only in iphone.
Is there a way to make my links open directly yo Safari?
Or is there a way yo get at least the facebook user-agent string so as to have a special treatment for this case?
Thanks in advance