kandi background
Explore Kits

Android-SmartWebView | simple use webview integrated w/ native features

 by   mgks Java Version: p_0.1 License: MIT

 by   mgks Java Version: p_0.1 License: MIT

Download this library from

kandi X-RAY | Android-SmartWebView Summary

Android-SmartWebView is a Java library. Android-SmartWebView has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.
A simple use webview integrated w/ native features to help create most advanced hybrid applications.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • Android-SmartWebView has a low active ecosystem.
  • It has 371 star(s) with 199 fork(s). There are 41 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 80 open issues and 122 have been closed. On average issues are closed in 86 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of Android-SmartWebView is p_0.1
Android-SmartWebView Support
Best in #Java
Average in #Java
Android-SmartWebView Support
Best in #Java
Average in #Java

quality kandi Quality

  • Android-SmartWebView has 0 bugs and 0 code smells.
Android-SmartWebView Quality
Best in #Java
Average in #Java
Android-SmartWebView Quality
Best in #Java
Average in #Java

securitySecurity

  • Android-SmartWebView has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • Android-SmartWebView code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
Android-SmartWebView Security
Best in #Java
Average in #Java
Android-SmartWebView Security
Best in #Java
Average in #Java

license License

  • Android-SmartWebView is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
Android-SmartWebView License
Best in #Java
Average in #Java
Android-SmartWebView License
Best in #Java
Average in #Java

buildReuse

  • Android-SmartWebView releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • Android-SmartWebView saves you 989 person hours of effort in developing the same functionality from scratch.
  • It has 2249 lines of code, 151 functions and 36 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
Android-SmartWebView Reuse
Best in #Java
Average in #Java
Android-SmartWebView Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed Android-SmartWebView and discovered the below as its top functions. This is intended to give you an instant insight into Android-SmartWebView implemented functionality, and help decide if they suit your requirements.

  • Launch the action on the URL
    • Create a new Dialog with options .
      • Show Settings alert
        • Send a notification
          • Initializes the intent .
            • Pull information about the build .
              • Checks if the network is available .
                • Start app rate .
                  • Checks if a package exists in the context
                    • Creates an intent to launch the google app for the device .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      Android-SmartWebView Key Features

                      A simple use webview integrated w/ native features to help create most advanced hybrid applications.

                      Android-SmartWebView Examples and Code Snippets

                      See all related Code Snippets

                      Device Permissions

                      copy iconCopydownload iconDownload
                      INTERNET
                      ACCESS_NETWORK_STATE
                      ACCESS_WIFI_STATE
                      WRITE_EXTERNAL_STORAGE
                      READ_EXTERNAL_STORAGE
                      CAMERA
                      ACCESS_FINE_LOCATION
                      VIBRATE
                      

                      Config Variables

                      copy iconCopydownload iconDownload
                      ASWV_URL   = "https://github.com/mgks"   // domain or directory or address to any root file
                      

                      Permission Variables

                      copy iconCopydownload iconDownload
                      ASWP_JSCRIPT     = true     // enable JavaScript for webview
                      ASWP_FUPLOAD     = true     // upload files from local device
                      ASWP_MULFILE     = true     // upload multiple files
                      ASWP_CAMUPLOAD   = true     // enable camera file upload
                      ASWP_ONLYCAM     = false    // incase you want only camera for input files
                      
                      ASWP_LOCATION    = true     // track GPS locations
                      
                      ASWP_RATINGS     = true     // show ratings dialog; auto configured, edit method get_rating() for customizations
                      ASWP_PULLFRESH   = true     // pull to refresh feature
                      ASWP_PBAR        = true     // show progress bar
                      ASWP_ZOOM        = false    // zoom control for webpages
                      ASWP_SFORM       = false    // save form data and auto-fill information
                      ASWP_OFFLINE     = false    // whether the loading webpages are offline or online
                      ASWP_EXTURL      = true     // open external url with default browser instead of app webview
                      
                      ASWP_TAB         = true;    // instead of default browser, open external URLs in chrome tab
                      ASWP_ADMOB       = false;   // enabled Google AdMob
                      

                      Security Variables

                      copy iconCopydownload iconDownload
                      ASWP_CERT_VERIFICATION   = true   // verify whether HTTPS port needs certificate verification
                      

                      Other Variables

                      copy iconCopydownload iconDownload
                      ASWV_LAYOUT      = 0;   // default=0; for clear fullscreen layout and 1 to add drawer and navigation bar
                      
                      // custom settings if layout `1` with search bar is set.
                      ASWV_SEARCH      = "https://www.google.com/search?q=";   // search query will start by the end of the present string
                      
                      ASWV_SHARE_URL   = ASWV_URL+"?share=";   // URL where you process external content shared with the app
                      ASWV_EXC_LIST    = "";                   // domains allowed to be opened inside webview, separate domains with a comma (,)
                      
                      ASWV_ADMOB       = "ca-app-pub-9276682923792397~7957851075";   // your unique publishers ID; this one is temporary
                      
                      ASWV_F_TYPE      = "*/*"   // use `image/*` for image files only; check file type references for custom file type
                      
                      POSTFIX_USER_AGENT      = true;     // set to true to append USER_AGENT_POSTFIX to user agent
                      OVERRIDE_USER_AGENT     = false;    // set to true to use USER_AGENT instead of default one
                      USER_AGENT_POSTFIX      = "SWVAndroid";    // useful for identifying traffic, e.g. in Google Analytics
                      CUSTOM_USER_AGENT       = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Mobile Safari/537.36";    // custom user-agent
                      

                      GPS Location

                      copy iconCopydownload iconDownload
                      COOKIE "lat" for latitude
                      COOKIE "long" for longitude
                      

                      Firebase Messaging

                      copy iconCopydownload iconDownload
                      content-type:application/json
                      authorization:key=____server_key_here___ (Firebase > Settings > Cloud Messaging)
                      

                      Rating System

                      copy iconCopydownload iconDownload
                      ASWR_DAYS            = 3;           // after how many days of usage would you like to show the dialog
                      ASWR_TIMES           = 10;          // overall request launch times being ignored
                      ASWR_INTERVAL        = 2;           // reminding users to rate after days interval
                      

                      Know Bugs

                      copy iconCopydownload iconDownload
                      22/09/19 - Camcorder not working in API 25, 26
                      22/09/19 - Camera not working in API 29
                      

                      FCM Android - On click Notification - Open webview

                      copy iconCopydownload iconDownload
                      Intent intent = getIntent();
                      String url = getIntent().getString("link", null)
                      if (url != null) {
                          if (!url.startsWith("http")) {
                              url = "http://" + url;
                          }
                          aswm_view(url, false);          
                      } else {
                          //Rendering the default URL
                          aswm_view(ASWV_URL, false);
                      }
                      

                      See all related Code Snippets

                      Community Discussions

                      Trending Discussions on Android-SmartWebView
                      • FCM Android - On click Notification - Open webview
                      Trending Discussions on Android-SmartWebView

                      QUESTION

                      FCM Android - On click Notification - Open webview

                      Asked 2018-Nov-04 at 07:26

                      Template which I was using : https://github.com/mgks/Android-SmartWebView Actually, the template has no fcm feature. I added it manually. I referred here so as you look into mainactivity file.

                      I want to open specific link when user clicks my notification.

                      My notification Builder is:

                      // pending implicit intent to view url
                              Intent intent = new Intent(this, MainActivity.class);
                              intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                              intent.putExtra("LINK",link);
                              PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,
                                      PendingIntent.FLAG_ONE_SHOT);
                      
                              NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, ADMIN_CHANNEL_ID)
                                      .setLargeIcon(BitmapFactory.decodeResource(getBaseContext().getResources(), R.mipmap.ic_launcher))  //set it in the notification
                                      .setSmallIcon(R.mipmap.ic_launcher)  //a resource for your custom small icon
                                      .setContentTitle(title) //the "title" value you sent in your notification
                                      .setContentText(message) //ditto
                                      .setContentIntent(pendingIntent)
                                      .setAutoCancel(true)  //dismisses the notification on click
                                      .setSound(defaultSoundUri)
                                      .setStyle(new NotificationCompat.BigPictureStyle()
                                              .setSummaryText(message)
                                              .bigPicture(bitmap)
                                              .setBigContentTitle(title));
                      

                      I tried this in MainActivity:

                      Intent intent = getIntent();
                              if (getIntent().getExtras() != null && getIntent().getExtras().getString("link", null) != null && !getIntent().getExtras().getString("link", null).equals("")) {
                                  String url = null;
                                  if (getIntent().getExtras().getString("link").contains("http")) {
                                      url = getIntent().getExtras().getString("link");
                                  } else {
                                      url = "http://" + getIntent().getExtras().getString("link");
                                  }
                                  aswm_view(url, false);          
                              } else {
                                  //Rendering the default URL
                                  aswm_view(ASWV_URL, false);
                              }
                              (near lines 250)
                      

                      But, Nothing is working. Can anyone please help me?

                      Thankyou.

                      ANSWER

                      Answered 2018-Nov-04 at 07:26

                      intent.putExtra("LINK",link);

                      String url = getIntent().getString("link", null)

                      This is my mistake. (LINK & link are different.

                      I spend near 1 weeks for this silly mistake.

                      Source https://stackoverflow.com/questions/53125678

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install Android-SmartWebView

                      These instructions will help you get your Smart WebView copy up and running on your local machine for development and testing purposes. Watch Explainer Video for Getting Started w/ SWV created by Nate Harris.
                      Download repo or clone the project. Download google-services.json file from Firebase (setup). Load project in Android Studio. Let Android Studio process the project and download support libraries and dependencies. Just to make sure, try cleaning and rebuilding project before run. Build > Clean Project then Build > Rebuild Project. Got any error? You better fasten you seatbelt. It's going be a bumpy night.
                      Download repo or clone the project git clone https://github.com/mgks/Android-SmartWebView
                      Download google-services.json file from Firebase (setup)
                      Load project in Android Studio File > Open > Browse to Project and Select
                      Let Android Studio process the project and download support libraries and dependencies
                      Just to make sure, try cleaning and rebuilding project before run Build > Clean Project then Build > Rebuild Project
                      Got any error? You better fasten you seatbelt. It's going be a bumpy night.

                      Support

                      If you want to contribute to the project, you're most welcome to do so. Just:.

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Share this Page

                      share link
                      Reuse Pre-built Kits with Android-SmartWebView
                      Consider Popular Java Libraries
                      Try Top Libraries by mgks
                      Compare Java Libraries with Highest Support
                      Compare Java Libraries with Highest Quality
                      Compare Java Libraries with Highest Security
                      Compare Java Libraries with Permissive License
                      Compare Java Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.