Category: iOS

HOW TO: Change the Status Bar Text Color on your iOS WebView app

It’s easy to change the background color on your iOS Status Bar while loading WebView content. This short YouTube video clip shows how to configure the required part in the Swift Xcode template by using an online RGB color picker service. Download the Xcode WebViewGold template for iOS here. Or book our full all-inclusive WeSetupYourWebViewApp service.

HOW TO: Change the Status Bar Text Color on your iOS WebView app

It’s easy to change the text color on your iOS Status Bar while loading WebView content. This short YouTube video clip shows how to configure the required part in the Swift Xcode template by using an online RGB color picker service. Download the Xcode WebViewGold template for iOS here. Or book our full all-inclusive WeSetupYourWebViewApp service.

[GUIDE] Downloading Image, PDF and Music files in iOS WebView

Want to use WebView to save PDF and image files to your user’s phone or tablet? This is the way to do it:   Download the Xcode WebViewGold template for iOS here. Or book our full all-inclusive WeSetupYourWebViewApp service. Save PDF files by calling links with .pdf suffix: <a href="http://www.example.org/file.pdf">Link</a> Save images to the camera roll of the

How to: AdMob banner and interstitial ads in iOS WebView apps

Want to monetize your iPhone/iPad WebView app with ads from AdMob? Yeah, this is how to do it: Download the Xcode WebViewGold template for iOS here. Or book our full all-inclusive WeSetupYourWebViewApp service. Extract the zip folder and open the project in Xcode. Open AppDelegate.swift file and set your AdMob global account ID: You can activate and deactivate

How to: OneSignal push notifications with URL deeplinking in iOS WebView apps

Want to use OneSignal SDK with URL deeplinking from your push notifications which will open the URL in your WebView after clicking on the push notification? Yeah, this is how to do it: Download the Xcode WebViewGold template for iOS here. Or book our full all-inclusive WeSetupYourWebViewApp service. Extract the zip folder and open the project in Xcode.

Support Universal Links in iOS WebView apps (open URL triggered by other apps)

“When you support universal links, iOS 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.” (Apple Documentation) The WebViewGold Xcode template allows you to configure a link scheme like webviewgold://

It’s here: The new WebViewGold for macOS

Do you want to convert your existing website or web app into native macOS desktop apps? Just use the new WebViewGold for macOS template and define your URL, choose your icon and customize your settings and it’s ready for the Mac App Store.   More info & download

WebView on iOS 12 and iPhone XS, iPhone XS Max and iPhone Xr

The new iOS 12 is here and the new iPhone lineup is here too. It changed everything, that’s what Apple promised. At least it changed anything in terms of the viewport, screen dimensions and interface building 😉 But here are the good news: If you use the WebViewGold Xcode templates (or the WeSetupYourWebViewApp service), you do

Change UserAgent in iOS WebView apps

Want to identify WebView client accesses? Makes sense, you can use it for tracking/analytics purposes and for separating web browser and WebView client accesses to optimize/modify the style or content. The default WebView UserAgent on iOS looks like this: Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile

JavaScript dialogs like alert(), confirm() and prompt() in iOS WebView apps

Want to use JavaScript dialogs like alert(), confirm() and prompt() in iOS WebView apps? They do not show up when using WKWebView element instead of UIWebView? Do not give up! Just implement this for alert(), confirm() and promt():   - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler { UIAlertController *alertController = [UIAlertController alertControllerWithTitle:message message:nil

iOS WebView URL Handling/open external links in Safari

Want to have a native feeling/UX in your iOS WebView app? Then you should handle external URLs differently than your regular WebView links, e.g. when clicking on a Facebook link we can open the site in Safari browser and stop loading it in WebView:   func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy)

How to build an Offline screen in iOS WebView apps

Of course, it would be great if your iOS app users would always have a 100% working WiFi or Cellular connection. But reality is different and we should know how to handle it 😉 So let’s make the best out of it and present a nice Offline screen for these annoying situations of being offline:  

WebView on iPhone X screen resolution

iPhone X is here and it changed everything. That’s what Apple promised. At least it changed anything in terms of the viewport, screen dimensions and interface building 😉 But here is the good news: If you use the WebViewGold Xcode template (or WeSetupYourWebViewApp 100% setup app agency), you do not need to worry about this. It just looks

How To: Save image from iOS WebView to the user’s Photos app

Sometimes it could be useful to save images to the iOS camera roll of your app user. Here is how to: Download the WebView Xcode template Define your URL (or your local HTML folder) Insert this HTML into your website: <a href="savethisimage://?url=http://www.example.org/example.png">Save this image</a> You are done! 🙂 If you want an automatic download (instead of a