├── .gitignore ├── Android ├── admob.md ├── chrome.md ├── fcm.md ├── gps.md ├── layout.md └── share.md ├── LICENSE ├── README.md └── docs ├── dot.png ├── favicon.png ├── index.html ├── logo.png ├── main.css ├── main.js └── return.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # IntelliJ 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/assetWizardSettings.xml 41 | .idea/dictionaries 42 | .idea/libraries 43 | .idea/caches 44 | 45 | # Keystore files 46 | # Uncomment the following line if you do not want to check your keystore files in. 47 | #*.jks 48 | 49 | # External native build folder generated in Android Studio 2.2 and later 50 | .externalNativeBuild 51 | 52 | # Google Services (e.g. APIs or Firebase) 53 | google-services.json 54 | 55 | # Freeline 56 | freeline.py 57 | freeline/ 58 | freeline_project_description.json 59 | 60 | # fastlane 61 | fastlane/report.xml 62 | fastlane/Preview.html 63 | fastlane/screenshots 64 | fastlane/test_output 65 | fastlane/readme.md 66 | -------------------------------------------------------------------------------- /Android/admob.md: -------------------------------------------------------------------------------- 1 | # Google AdMob 2 | 3 | Find more about AdMob implemented in the project and instructions to set-up admob for your app. 4 | 5 | ## Setting up admob 6 | * Signup for AdMob account 7 | * Add app and fill required information 8 | * Open `Settings > Publisher ID` copy it 9 | * Edit `SmartWebView.java` and set `ASWV_ADMOB` to your Publisher ID 10 | -------------------------------------------------------------------------------- /Android/chrome.md: -------------------------------------------------------------------------------- 1 | # Chrome Tab for External URLs 2 | 3 | Configure Chrome tab to render external links with chrome engine within your app, instead of using native webview or web browser. 4 | 5 | ## Setting up firebase 6 | * First enable `ASWP_EXTURL` to open URL externally instead of native webview 7 | * Now set `ASWP_TAB` to `true` to let links to be handled by default chrome browser engine 8 | -------------------------------------------------------------------------------- /Android/fcm.md: -------------------------------------------------------------------------------- 1 | # Firebase Cloud Messaging 2 | 3 | Find more about FCM implemented in the project and instructions to set-up firebase for your server. 4 | 5 | ## Files in use 6 | 7 | **FBInstanceIDService** 8 | ``` 9 | Updates User Token/ID and logs fresh tokens 10 | ``` 11 | 12 | **FBMessagingService** 13 | ``` 14 | Receives data and builds notifications 15 | ``` 16 | 17 | ## Setting up firebase 18 | * Signup for Firebase account 19 | * Add project and fill required information 20 | * Open `Settings > Project settings > Add firebase to your Android app` 21 | * Enter package name you're using currently 22 | * Download config file `google-services.json` and save it to `\app` directory 23 | 24 | ## Sending notifications from your server 25 | *Create a POST request with headers* 26 | URL `https://fcm.googleapis.com/fcm/send` 27 | content-type: `application/json` 28 | authorization: `key=____your_server_key_here___` (Firebase > Settings > Cloud Messaging > Server key) 29 | 30 | *Required JSON Data* 31 | ``` 32 | { "notification": { 33 | "title": "___title_string___", 34 | "text": "___text_string___", 35 | "click_action": "Open_URI" 36 | }, 37 | "data": { 38 | "uri": "___the_URL_where_you_want_users_to_send__" 39 | }, 40 | "to" : "___user_token___" 41 | } 42 | ``` 43 | 44 | ## How to acquire fresh User Token 45 | SWV creates a cookie `FCM_TOKEN` with latest token eveytime app opened that can be saved to your server. 46 | 47 | Token is also saved as Log.d `FCM_TOKEN` for testing. 48 | -------------------------------------------------------------------------------- /Android/gps.md: -------------------------------------------------------------------------------- 1 | # GPS Live Location Tracking 2 | 3 | Here's how you can use SWV to get current or live location of your users, useful for geo mapping and location based services. 4 | 5 | ## Files in use 6 | 7 | **GPSTrack** 8 | ``` 9 | Updates User location on every 1 metre distance and 5 seconds 10 | ``` 11 | 12 | ## Getting GPS location 13 | * Enable `ASWP_LOCATION` for updates 14 | * Look for `lat` and `long` cookies set for `ASWV_URL` 15 | 16 | ## For Offline Files 17 | Make a url (hyperlink) request starting with `offloc:refresh`, that reloads the page with additional query `?loc=lattitude,longitude` that can be broken with javascript to get lattitude and longitude separately in an array. 18 | -------------------------------------------------------------------------------- /Android/layout.md: -------------------------------------------------------------------------------- 1 | # Switching Between App Layouts 2 | 3 | You can change default layout of SWV with accordance to your need. 4 | 5 | ## Files in use 6 | 7 | **res/activity_main** 8 | ``` 9 | Default activity layout with clean fullscreen view without any banner or button 10 | ``` 11 | 12 | **res/drawer_main** 13 | ``` 14 | Drawer activity layout with drawer menu and header and search view 15 | ``` 16 | 17 | ## Setting up a default layout 18 | * Change `ASWV_LAYOUT` to change default layout 19 | * Set `0` for default full screen 20 | * Set `1` for drawer layout 21 | 22 | ## Note 23 | More layout will be added as newer update rollouts. 24 | -------------------------------------------------------------------------------- /Android/share.md: -------------------------------------------------------------------------------- 1 | # Sharing external data with the app 2 | 3 | Learn how to share external links and data with your app/server. 4 | 5 | ## Files in use 6 | 7 | **ShareActivity** 8 | ``` 9 | Handles content received from other apps as intent 10 | ``` 11 | 12 | ## Setting up share intent 13 | * Change `ASWV_SHAREURL` as needed 14 | * By deafault `ASWV_SHAREURL` is set to `ASWV_URL/share` 15 | * Complete redirection URL is `ASWV_SHAREURL+"?text="+share+"&link="+urlStr` where `share` is complete intent data received and `urlStr` is a strip from intent data to look for any URLs available. 16 | * If you don't want to use redirection, these variables can also be set as cookies 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | # VOINSOURCE PUBLIC LICENSE 2 | 3 | > Version 1.0, December 2018 4 | 5 | > Copyright (C) 2018 voinsource 6 | 7 | > VOINSOURCE PUBLIC LICENSE 8 | > TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 9 | 10 | 1. This is a commercial license for the original work, which is applicable for a single entity to use or modify. 11 | 12 | 2. Redistribution of the original or modified copy of the work is not allowed, which is obviously not a nice thing to do. 13 | 14 | 3. Changes in original work is completely dependent on the licensed owner, until and unless they intent to sell it further, which is definitely not suggested. 15 | 16 | 4. Single license purchased will work for lifetime, meeting following criteria; 17 | 4a. Used/Reused/Modified by/for a single entity. 18 | 4b. With regards to the specific version of the original work bought. 19 | 20 | 5. Customer support is not included with the license, which makes it totally dependent on the original work owners to provide exclusive support or not. 21 | 22 | 6. Original work may/maynot contain some open source work, that may come with its own license which won't conflicted this license anyhow. 23 | 24 | 7. License owner is completely independent to raise an issue with the original work owner incase of any unexpected problem. 25 | 26 | 8. Guarantee/Warranty varies from work to work, this license doesn't holds any promises on those grounds. 27 | 28 | 9. Work owner are too bound to be responsible of their original work and its flaws. 29 | 30 | 10. This license can be updated anytime without any warning but will keep record of updates via Git. 31 | 32 | 11. License owner is also suggested to enjoy their time, while we are on this beautiful planet and not nuked by any nuclear blob. 33 | 34 | 12. License creators are really chill with the voinsource terms and license feedback, and open to add/improve these conditions if needed. So feel free to send in your feedbacks to connect@infeeds.com with subject "voinsource license feedback". 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Smart WebView Pro (Bundle Pack) 2 | SWV Pro is a framework built on Java/Kotlin to develop advanced hybrid webview applications with ease. 3 | 4 | A small build with features working out of the box: Live GPS Location, Google Login, Vision API, Notifications with FCM, AdMob, Chrome Tabs, Process Camera Input, QR/Barcode Reader, PQL, S2S, Upload/Download Files, Custom Rating System, Multiple User Interfaces and more. 5 | 6 | **[Get the source code (moved to mgks/Android-SmartWebView)](https://github.com/mgks/Android-SmartWebView)** 7 | 8 | For **instructions** (getting started, config etc) look into the repo documentation. 9 | 10 | ## Plugins 11 | 12 | **Google Login** - Let users Sign in/Sign up on your server with native Google login feature. 13 | 14 | **PQL** - Store/fetch/delete micro data on local storage, process information on client end instead of server for faster response. 15 | 16 | **S2S** - Send information to server seamlessly without reaload via different REST methods. 17 | 18 | **Background Services** - Run app/music services in background. 19 | 20 | **Google Vision API** - Derive insights from your images in the cloud or at the edge with AutoML. 21 | 22 | **Advanced Notifications** - Send images, bundle notifications and tag update message alerts. 23 | 24 | **Multiple Drawer Layouts** - Not just fullscreen, add native search, drawer and swipe features to the app. 25 | 26 | **QR/Barcode Reader** - Read any QR/Barcode image and even generate your own unique code with personalized data. 27 | 28 | **[Visit Plugins Page for more](https://github.com/mgks/Android-SmartWebView#plugins)** 29 | 30 | ## Change Log 31 | ```bash 32 | December 23, 2021 33 | - Smart Webview Pro v2 under development 34 | - Web resources moved to new location (https://mgks.dev) 35 | - Android 12 support 36 | - Enhanced variant over p_0.x series 37 | - voinsource resources archived (last release with [vs]) 38 | 39 | November 15, 2020 40 | - Smart WebView p_0.2 release 41 | - Pro variant new update 42 | - Added plugin support 43 | - Android 11 support 44 | - New build 45 | - Minor bug fixes 46 | 47 | September 15, 2019 48 | - Smart WebView p_0.1 released as Open Source 49 | - Pro variant dissolved 50 | - Project moved to main source (mgks/Android-SmartWebView) 51 | - Added extra feature plugins 52 | - Android 10 support 53 | - Updated build 54 | - Major bug fixes 55 | 56 | February 25, 2019 57 | - Smart WebView v1.2.2 released 58 | - Pull refresh 59 | - Minor bug fixes 60 | 61 | February 2, 2019 62 | - Smart WebView v1.2.1 released 63 | - Fixed minor bugs 64 | 65 | January 12, 2019 66 | - Smart WebView Pro v1.1 released 67 | - Updated image preview 68 | - Disabled text selection and haptic feedback 69 | - Notification title fixed 70 | 71 | December 1, 2018 72 | - Smart WebView Pro v1.0 released 73 | ``` 74 | 75 | #### Have an awesome day :) 76 | -------------------------------------------------------------------------------- /docs/dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voinsource/SmartWebView-Pro/bd02c6f180e1ff56fc77d0f734d2cba01afac85b/docs/dot.png -------------------------------------------------------------------------------- /docs/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voinsource/SmartWebView-Pro/bd02c6f180e1ff56fc77d0f734d2cba01afac85b/docs/favicon.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 |Smart WebView is hybrid project designed to develop advanced android applications using basic web technologies. It works as a pipeline between webpages and android native features, creating and fetching requests on behalf of both technologies.
Base features
| v2.x/Plugins
|
$59 / INR 4,500tax+paypal fee included. for India, use UPI address - mgks@ybl
23 |− Lifetime free license of SWV Pro v1.x
− Includes all base features
− Public forum support on github
− Get future beta project previews
$99 / INR 7,500tax+paypal fee included. for India, use UPI address - mgks@ybl
42 |− Lifetime free license of SWV Pro v2.x
− Includes all base features and paid plugins
− Receive regular bug fixes/updates
− Public forum support on github
− Get future beta project previews
THIS ORDER WILL BE MADE AVAILABLE TO YOU AROUND THE MONTH OF AUGUST, 2021. (apologies for the delay in release)
$399 / INR 28,000tax+paypal fee included. for India, use UPI address - mgks@ybl
61 |− Lifetime free license of current and future SWV Pro updates
− Includes all base features, paid and preview plugins
− We help you setup your first app built on SWV
− Receive regular bug fixes/updates
− Free direct email support for a limited time
− Get future beta project previews
− And more
When will I receive the source code?
Once payment successfully received, you'll get the requested products source code archive within 24 hours on the email address you provided during transaction/reference.
What if product is late or I need it urgently?
Incase, you are in hurry, missed or not received any response from our end in time, feel free to drop an email to hello@mgks.dev and we'll look into the matter ASAP.
Is there a refund policy?
Sorry we don't have any refund policy as source codes can't be provided for tests, instead you can check the demo apps provided with the release package to decide what product/service you want.
How long is the direct email support period?
It is for first 2 months of purchase, but you can always ask a question or two via email or our github issues forum.
Help us understand you better by filling out this little survey form :)
Thank You!
15 |Your payment is under process and a response email will be delivered to your email address with the source code within 24 hours.
Incase, you missed or not received any response from our end in time, feel free to drop an email to getmgks@gmail.com
Meanwhile, you can go through Smart WebView Pro's Documentation to learn more.
16 |