Setting up your website/web app
Create a website, for example, using jQuery Mobile and upload your site to your webspace. WebViewGold supports all kinds of web apps/websites (including HTML, PHP, WordPress, Progressive Web Apps, HTML 5 Games, WiX, bubble.is, …). Please make sure to optimize your website to feel like a macOS app. For example, may disallow user zooming:
<meta name="viewport" content="width=device-width, user-scalable=no" />
Setting up WebViewGold for macOS Desktop appsIn the first step, download WebViewGold for macOS in order to create macOS desktop apps. Afterward, open the Xcode project file:
Choose the public folder and configure the config.json file:
Open index.html file to edit the URL:
If you want to use local HTML content (instead of a remote URL), just replace the index.html file with your own content.
Change the app icon
Just replace the included image files with your own resized image files. Alternatively, use this helpful tool: Asset Catalog Creator - App Icon, Image Set & Launch Screen Generator for iOS & OS X by Bridge Technologies Limited (we are not affiliated with the developer company).
Change the application name
Optional) Change the Offline Screen text
Optional) Change the First Run Dialog text
Optional) Change the Splash Screen text/ duration
Open the SplashScreen.xib file in Interface Builder subfolder. Afterward, double click on the text to edit the text:
If you want to modify the maximum duration of the splash screen, open the Preferences.m file in Generic subfolder to change the timeout value (in seconds):
In-App Purchase & In-App Subscription API
Within some macOS/Mac apps, you can buy additional content or services. These kinds of purchases are called "in-app purchases". They can be an attractive source of revenue for developers and are very convenient for customers as they use existing accounts and payment sources for settlement. WebViewGold allows triggering Mac App Store In-App Purchases. Just add your In-App Purchase Product ID (obtained from App Store Connect) in the Constants.h file:
Afterward, just link to this kind of URL:
<a href="inapppurchase://?successful_url=https://www.google.com">Buy In-App Purchase</a>
Alternatively, use this kind of URL for subscription products:
<a href="inappsubscription://?successful_url=https://www.google.com&expired_url=https://www.yahoo.com">Start In-App Subscription</a>
In this URL example, https://www.google.com should be called after the successful subscription activation, and https://www.yahoo.com should be called as soon as the subscription is expired.
<a href="get-uuid://">Get UDID</a> <a href="#" onClick="alert(uuid);">Show UDID</a>
Credits / License
All rights (e.g. of images) belong to their respective owners. The provider of this source code is OnlineAppCreator.com c/o jocapps GmbH - registered in Germany - and is not affiliated with Apple. IOS is a registered trademark of Cisco and used under license by Apple Inc. iPad, iPhone, iPod, Xcode, and Xcode logo are registered trademarks of Apple Inc. WebViewGold for Mac is based on MacGap (licensed under MIT license).
Please take a look for license info of your CodeCanyon purchase: https://codecanyon.net/licenses/terms/tools
If you have 10 seconds, please rate WebViewGold (it's a great motivation for future updates ^^):
1. Go to CodeCanyon.net and sign in
2. Navigate to https://www.codecanyon.net/downloads
3. Click the stars, as shown in this picture:
Thank you very much!