User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22

Thread: Help with WEBVIEW 2 Object. Permissions not Activating?

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Downloaded. Testing now. Thank you, I will report back.

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Fernando
    Now I can't even build the app anymore. I get this error.
    Camera Permission is checked.


    > Configure project :app
    WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
    The current default is 'false'.




    > Task :app:preBuild UP-TO-DATE
    > Task :app:preReleaseBuild
    > Task :app:compileReleaseAidl NO-SOURCE
    > Task :app:compileReleaseRenderscript
    > Task :app:checkReleaseManifest
    > Task :app:generateReleaseBuildConfig
    > Task :app:prepareLintJar
    > Task :app:generateReleaseSources
    > Task :app:javaPreCompileRelease
    > Task :app:mainApkListPersistenceRelease
    > Task :app:generateReleaseResValues
    > Task :app:generateReleaseResources
    > Task :app:mergeReleaseResources
    > Task :app:createReleaseCompatibleScreenManifests
    > Task :app:processReleaseManifest
    > Task :app:processReleaseResources


    > Task :app:compileReleaseJavaWithJavac
    C:\Users\Toshiba\AppData\Local\Temp\And3B37.tmp\ap p\src\main\java\Extensions\CRunWebView2.java:894: error: cannot find symbol
    enabled_geolocation = MMFRuntime.inst.checkForManifestPermissions(Manife st.permission.ACCESS_FINE_LOCATION); // Include in version 292.15
    ^
    symbol: method checkForManifestPermissions(String)
    location: variable inst of type MMFRuntime
    C:\Users\Toshiba\AppData\Local\Temp\And3B37.tmp\ap p\src\main\java\Extensions\CRunWebView2.java:895: error: cannot find symbol
    enabled_camera = MMFRuntime.inst.checkForManifestPermissions(Manife st.permission.CAMERA); // Include in version 292.15
    ^
    symbol: method checkForManifestPermissions(String)
    location: variable inst of type MMFRuntime
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors


    > Task :app:compileReleaseJavaWithJavac FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:compileReleaseJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.


    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


    * Get more help at https://help.gradle.org


    Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/5.1.1/usergu..._line_warnings


    BUILD FAILED in 11s
    13 actionable tasks: 13 executed

  3. #13
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,187
    Mentioned
    167 Post(s)
    Tagged
    3 Thread(s)
    Answered in the PM
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That was the Cure for the web page activation of the permission. Thank you!

    Screenshot_2019-10-09-17-33-54.jpg

    However, running the exact code as the page on an internal String, still does not work properly.

    Screenshot_2019-10-06-10-03-02.jpg

    Any suggestions?
    @Fernando

    This is the internal string

    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
    <meta name="description" content="Smart Device Camera Template for HTML, CSS, JS and WebRTC">
    <meta name="keywords" content="HTML,CSS,JavaScript, WebRTC, Camera">
    <meta name="author" content="Kasper Kamperman">
    <title>Mobile First Camera Template</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
    <div id="container">
    <div id="vid_container">
    <video id="video" autoplay playsinline></video>
    <div id="video_overlay"></div>
    </div>
    <div id="gui_controls">
    <button id="switchCameraButton" name="switch Camera" type="button" aria-pressed="false"></button>
    <button id="takePhotoButton" name="take Photo" type="button"></button>
    <button id="toggleFullScreenButton" name="toggle FullScreen" type="button" aria-pressed="false"></button>
    </div>
    </div>
    <script src="js/DetectRTC.min.js"></script>
    <script src="js/adapter.min.js"></script>
    <script src="js/screenfull.min.js"></script>
    <script src="js/howler.core.min.js"></script>
    <script src="js/main.js"></script>
    </body>
    </html>

  5. #15
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,187
    Mentioned
    167 Post(s)
    Tagged
    3 Thread(s)
    check that is running with https and not http, check teh log for sure something is mentioned
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    check that is running with https and not http, check teh log for sure something is mentioned
    I'm using the internal HTML input feature, LOAD HTML and directed to the String object via LOAD HTML=string$("abc")

    String equals:

    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
    <meta name="description" content="Smart Device Camera Template for HTML, CSS, JS and WebRTC">
    <meta name="keywords" content="HTML,CSS,JavaScript, WebRTC, Camera">
    <meta name="author" content="Kasper Kamperman">
    <title>Mobile First Camera Template</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
    <div id="container">
    <div id="vid_container">
    <video id="video" autoplay playsinline></video>
    <div id="video_overlay"></div>
    </div>
    <div id="gui_controls">
    <button id="switchCameraButton" name="switch Camera" type="button" aria-pressed="false"></button>
    <button id="takePhotoButton" name="take Photo" type="button"></button>
    <button id="toggleFullScreenButton" name="toggle FullScreen" type="button" aria-pressed="false"></button>
    </div>
    </div>
    <script src="js/DetectRTC.min.js"></script>
    <script src="js/adapter.min.js"></script>
    <script src="js/screenfull.min.js"></script>
    <script src="js/howler.core.min.js"></script>
    <script src="js/main.js"></script>
    </body>
    </html>

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @Fernando ^^^^

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    99
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    SO I figured it out to being that running internal will not allow external JavaScript to run.

    I found this and tested it.
    Again, no luck on the Java side of things running internal.

    Code:
    <!DOCTYPE html><html>
      <head>
      </head>
      <body onload="init();">
        <h1>Take a snapshot of the current video stream</h1>
       Click on the Start WebCam button.
         <p>
        <button onclick="startWebcam();">Start WebCam</button>
        <button onclick="stopWebcam();">Stop WebCam</button> 
           <button onclick="snapshot();">Take Snapshot</button> 
        </p>
        <video onclick="snapshot(this);" width=400 height=400 id="video" controls autoplay></video>
      <p>
    
    
            Screenshots : <p>
          <canvas  id="myCanvas" width="400" height="350"></canvas>  
      </body>
      <script>
          //--------------------
          // GET USER MEDIA CODE
          //--------------------
              navigator.getUserMedia = ( navigator.getUserMedia ||
                                 navigator.webkitGetUserMedia ||
                                 navigator.mozGetUserMedia ||
                                 navigator.msGetUserMedia);
    
    
          var video;
          var webcamStream;
    
    
          function startWebcam() {
            if (navigator.getUserMedia) {
               navigator.getUserMedia (
    
    
                  // constraints
                  {
                     video: true,
                     audio: false
                  },
    
    
                  // successCallback
                  function(localMediaStream) {
                      video = document.querySelector('video');
                     video.src = window.URL.createObjectURL(localMediaStream);
                     webcamStream = localMediaStream;
                  },
    
    
                  // errorCallback
                  function(err) {
                     console.log("The following error occured: " + err);
                  }
               );
            } else {
               console.log("getUserMedia not supported");
            }  
          }
    
    
          function stopWebcam() {
              webcamStream.stop();
          }
          //---------------------
          // TAKE A SNAPSHOT CODE
          //---------------------
          var canvas, ctx;
    
    
          function init() {
            // Get the canvas and obtain a context for
            // drawing in it
            canvas = document.getElementById("myCanvas");
            ctx = canvas.getContext('2d');
          }
    
    
          function snapshot() {
             // Draws current image from the video element into the canvas
            ctx.drawImage(video, 0,0, canvas.width, canvas.height);
          }
    
    
      </script>
    </html>

  9. #19
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    StingRay's Avatar
    Join Date
    Nov 2006
    Location
    Austria
    Posts
    1,028
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    i guess you have to integrate the .js file contents within the HTML string?!

  10. #20
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,187
    Mentioned
    167 Post(s)
    Tagged
    3 Thread(s)
    what i am telling you is that for security reason your pages must be https, not sure if you can run now a local html block, and everything must be supported with a certificate for security reason.

    check the log, I will review after finish some other tasks now.

    ================================================== ====

    JavaScript runs in local and remote mode
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Webview object
    By Lecherbault in forum Android Export Module 2.5
    Replies: 37
    Last Post: 27th August 2019, 09:36 AM
  2. Replies: 1
    Last Post: 25th April 2017, 01:46 AM
  3. What permissions for 'Quick Save' Object?
    By Yos in forum Android Export Module 2.5
    Replies: 0
    Last Post: 8th December 2016, 07:28 AM
  4. WebView Object is here!
    By Fernando in forum Android Export Module Version 2.0
    Replies: 57
    Last Post: 3rd August 2015, 07:41 PM
  5. Activating 1 object out of many identical objects?
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th November 2008, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •