To block web content I need to create an iOS background app. Which will get the URL address from any browser on the device, before loading the URL content check that URL by HTTP web service. Is there any way to get URL address from any browser on the device?
There is an app in app store Shield, which can filter any safari URL before loading content. How does this app acquire the safari web URL to filter the content? Is it possible to acquire web URL of any browser from another app in iOS?
Please let me how to achieve that.
Related
I have a PWA deployed on Firebase (which has a unique identifier at the end of the URL) that is working in web browsers mobile/web. When I download this PWA (via Add to Home Screen in Safari on iOS) the unique identifier disappears. It's working fine on Mac and Android but doesn't know why the URL gets truncated (on iOS only).
https://localhost:8080/#/brand/71wh212972g (URL in browser while downloading PWA)
https://localhost:8080/#/brand/ (URL in download PWA on iOS)
I'm not sure what to add or remove from manifest.json to make it work for iOS.
start_url is used to define the launch url after the app is added to the home screen.
{
...
"start_url": "https://<your domain>/#/brand/71wh212972g"
...
}
The start_url member is a string that represents the start URL of the web application — the preferred URL that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
See start_url for details.
[iOS] I'd like to make facebook messenger bot that sends a URL. Once the URL is tapped, I want it to open the URL in native safari.app instead of an in-app browser in Messenger.app. I tried Safari-search URL scheme, but it doesn't work. Is there any way to open native safari by modifying URL without modifying iOS native source code because, you know, I can't make any change for FB messenger native app?
Typical scenario:
I am managing bot and send FB message with amazon product URL, let's say, https://www.amazon.com/gp/product/B00T85PMWY/.
The receiver tap the url.
Safari will open and show the page.
Open Facebook url in Safari instead of native app go get your answer
I'm using an iPhone App that has some important information on it, but I also figured out that it uses a webview. And I'm not sure if it's safe; like; is it over https? What URL is being called?
Is there a way you can find out what Website is being called in the webview? Like you can do inspect element when using Safari from OSX with usb-connected iPhone.
UIWebview works for any url you call it with. If your site is https, the communication will be encrypted. Not all requests on UIWebView are not https. You can't inspect element from iPhone/iPad/Simulator. You can do it in web in the mobile view (by using useragent).
My app shows an information page loaded from amazon s3 (a public html file). An user is experiencing this when using 3G data connection:
when loading this page, an advertising banner is being loaded over the official html code or the web view redirects to another web page.
How could this happen?
What is the proper way to prevent this unwanted situation?
Is there a way to intercept URLs on iOS (iphone/iPad) such that a URL from a specific host is always opened by my app and not by the browser?
Example: http://myapp.com/ref/123 -> gets opened by my app and I parse out the 123
Update
I find it really weird that this isn't allowed on iOS (iphone/ipad). On Android I've been able to intercept a url and whenever it begins with http://myapp... it gets opened in my app.
How does the community solve the issue of: Say a user who has my app installed on their iphone gets a link from a friend in an email. When they click it, if the link can't be opened in my app...how else am I suppose to do anything good with the shared url? OR should I not be passing http:// links but myapp:// instead??
The scheme name (or protocol) of a URL is the first part of a URL - e.g. schemename://. For web pages, the scheme is usually http (or https). The iPhone supports these URL schemes:
http, https, ftp Web links* (Safari)
mailto E-mail links (launches the Mail app)
tel Telephone Numbers (launches the phone app)
sms Text Messages (launches the SMS app)
iPhone apps can specify their own custom URL scheme (for example, myapp://doStuff). But it's not possible to redirect a specific http host to be opened by your app.
To add a custom URL scheme to your app follow this guide,
Custom URL schemes