Provider: OnlineAppCreator.com
(distributed via CodeCanyon.net)

Get the source code: Download
FAQs: Click here
Support: Click here

WeSetupYourWebViewApp.com


Get WebViewGold for Android




Intro




Stay tuned

Please do not forget to rate this project on CodeCanyon. It only takes a few seconds.
Just navigate to the Downloads section of CodeCanyon:


We are looking forward receiving your feedback :)




Follow OnlineAppCreator on Facebook & Twitter and don't miss any updates, coupons & more:
  • Instagram
  • Facebook
  • Twitter

  • If you have any questions, please feel free to ask!

     


    Changelog

    see changelog here.


    1) Setup website/HTML files

    Option 1: Use URL (store files online):

    Create a mobile-optimized website, for example using jQuery Mobile and upload your site to your webspace, for example using a webspace package from 1&1. Please make sure to optimize your website to feel like an app. For example may disallow user zooming:

    <meta name="viewport" content="width=device-width, user-scalable=no" />


    Option 2: Use local HTML folder (store files within the app):

    This Xcode project supports local HTML folders within the project too: Just copy your html/css/js files to xcode and set uselocalhtmlfolder to true (see next step). IMPORTANT: Import every single file into Xcode by dragging them into Xcode. Placing all files to root folder might be important (so do not access "css/style.css" but "style.css").


    2) Setup Xcode project

    In the first step, please decide wether to use the Swift or the Objective-C edition of WebViewGold:



    Swift edition is recommended for most cases.
    Just unzip the folder of your choice:



    If you deciced to use Swift edition, open WebViewGold.xcworkspace (instead of WebView.xcodeproj) afterwards:

    Within Xcode, open WebViewController.swift (if you use Swift source code) or ViewController.m (if you use Objective-C source code) and you will see a document like this:



    Here you are able to setup your app easily.


    3) Change name & icon

    It's very easy to change the Display Name of your app:



    Just insert a new name which should be display on iOS home screen.
    Afterwards include your own App Icon and Launch Image:


    Just replace the included image files with your own resized image files. Or just use this nice 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).


    Push Notifications via OneSignal & JavaScript API

    If you do NOT want to use push notifications at all, open AppDelegate.swift (if you use Swift source code) or AppDelegate.m (if you use Objective-C source code) and set registerlocalpush to "false" in order to prevent asking the app user for notification permission.

    Option 1: Use Local Push Notification JavaScript API

    You can insert a piece of code (JavaScript) in your website, to define a push notification, which can be shown after your app was closed (while scheduling it during the app is open). This works without OneSignal configuration at all.

    <script>
    var seconds = 120; //seconds from now on
    var message = "It is Happy Hour now! Check it out!"; //the message
    var button = "Open App"; //the text of the button
    window.location.href = "sendlocalpushmsg://push.send?s="+ seconds +"=msg!"+ message +"&!#"+ button +"";
    </script>
    

    It could be used for different situations (countdowns, happy hours (like in the example code), reminders, ...).
    To cancel all scheduled local push notifcations run:
        <script>
        window.location.href = "sendlocalpushmsg://push.send.cancel";
        </script>
    

    Option 2: Use OneSignal Remote Push Notifications

    If you want to use OneSignal in your app, activate these options in Constant.swift (by switching the values from false to true):


    Please set your OneSignal App ID in AppDelegate.swift file afterwards:



    Generate an iOS Push Certificate and import it:



    Make sure to allow push notifications on global Xcode level for the project:


    Yay, you are done. You can send push notications now:


    You want to get each unique OneSignal user ID on your server for further processing and personalized push messages? Just activate the „kPushEnhanceUrl“ option in Constant.swift (by switching the value from false to true) in order to append ?onesignal_push_id=XYZ to your WebView URL.


    Activate HTML background audio

    Follow these steps to activate audio in iOS background mode:


    Image & PDF Downloader API

    Save images to the camera roll of the user by running this script on your website:

        <script>
        var imgurl = "https://www.example.org/example.png"; //Image URL
        window.location.href = "savethisimage://?url="+ imgurl +"";
        <script>
    

    Save PDF files using iOS "Open with..." app dialog by calling links with .pdf syntax:

        <a href="http://www.example.org/file.pdf">Link</a>
    

    Call this link to reset your app (by clearing all cookies and cache):

       <a href="reset_app://">Link</a>
    

    Image & PDF Downloader API

    Save images to the camera roll of the user by running this script on your website:

        <script>
        var imgurl = "https://www.example.org/example.png"; //Image URL
        window.location.href = "savethisimage://?url="+ imgurl +"";
        <script>
    

    Save PDF files using iOS "Open with..." app dialog by calling links with .pdf syntax:

        <a href="http://www.example.org/file.pdf">Link</a>
    

    Option 1: Open all external hosts in Safari

    If you want to open every URL, which is not on your host in Safari, please set your host in setup and set openallexternalurlsinsafaribydefault to true.


    Option 2: Open specific hosts in Safari

    Open WebViewController.swift (if you use Swift source code) or ViewController.m (if you use Objective-C source code) and scroll down until you see this code snippet:



    To add another domain, just copy this part and insert another host, which should be opened in Safari. Please enter the host exactly the way you link to it (with or without www, but always without HTTP/HTPPS/.. in Xcode).

    Build App

    To build your app click on Run:




    Publish App

    Want to publish your app in App Store?

    Use your Apple Developer Program Subscription to publish your app in App Store.



    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.

    Please take a look for license info of your CodeCanyon purchase: https://codecanyon.net/licenses/standard

    This template contains the framework MKAdditions - please read the license info:
    http://blog.mugunthkumar.com/coding/ios-code-block-based-uialertview-and-uiactionsheet

    This template contains the framework SVProgressHUD - please read the license info:
    https://github.com/SVProgressHUD/SVProgressHUD

    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.



    Rate this project

    If you have 10 seconds, please rate this project (it is 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, like shown in this picture:



    Thank you very much!



    Get WebViewGold for Android

    Get WebViewGold for Android

    Take a look here.


    Support & Custom Code Service


    Click here



    WeSetupYourWebViewApp.com




    © 2018 OnlineAppCreator.com [Privacy policy | Imprint]
    exclusive distribution by CodeCanyon.net