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

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

WeSetupYourWebViewApp.com


Get WebViewGold for iOS




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 us on Facebook & Twitter for updates, coupons & more:
  • Instagram
  • Facebook
  • Twitter

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

     


    1) Setup your website/webapp

    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" />


    2) Setup Android Studio project

    Open Android Studio:



    Choose Open an existing Android Studio project:



    Open Config.java file to edit main configuration details (URL, URL Handling, UserAgent, dialogs, ...):



    Open strings.xml file to edit app name & text strings:



    Open dimens.xml file to edit text formatting:



    Change the package name if you plan to publish your app in Google Play Store:


    Watch on YouTube

    If your app does not need geolocation, you can delete askForPermission(); line in MainActivity.java file.


    3) Change icon


    Just replace the included image files with your own resized image files. Or just use this nice tool: Launcher Icon Generator (we are not affiliated with the developer company).


    Push Notifications via OneSignal & JavaScript API

    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 Confing.java (by switching the values from false to true):


    Please set your OneSignal App ID in build.gradle file afterwards:





    Setup the OneSignal service for your Android app. 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 „PUSH_ENHANCDE_WEBVIEW_URL" option in Confing.java (by switching the value from false to true) in order to append ?onesignal_push_id=XYZ to your WebView URL.


    Image 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>
    

    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 Google.

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



    Rate this project

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



    Thank you very much!



    Get WebViewGold for iOS

    Get WebViewGold for iOS

    Take a look here.


    Support & Custom Code Service


    Click here


    WeSetupYourWebViewApp.com




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