Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. lammie1971
    L
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    lammie1971

    @lammie1971

    0
    Reputation
    6
    Posts
    695
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    lammie1971 Follow

    Posts made by lammie1971

    • RE: iPhone portrait mode detecting the notch.

      PS, I should have mention I only need portrait mode.

      posted in Developer Corner
      L
      lammie1971
    • iPhone portrait mode detecting the notch.

      Hi, is there a way I can detect the notch that is used on the newer versions of the iPhone?

      For example if the phone has the notch I will add some different CSS than if the phone doesn’t have it.

      Thanks in advance.

      posted in Developer Corner
      L
      lammie1971
    • Changing text in the inAppUpdater prepare and download alert boxes.

      Hi I am using the code below for the Monaca-in-App-Updater plugin:

      How can I change the the title and text in the two dialog boxes, “Preparing” & “Downloading”

      Thanks.

      function upDate() {
                              monaca.InAppUpdater.autoUpdate( {
                                connectDelay : 0000,
                                connectTimeout : 30000,
                                readTimeout: 300000,
                                nextTask : function(res) {
                                  
                                  if (res.requireRestart) {
                                    
                                    monaca.InAppUpdater.updateAndRestart().then(
                                      function(){ 
      
                                      },
                                      function(fail) { 
                                        alert(JSON.stringify(fail));
                                      },
                                      function( json ) {
      
                                        // alert( JSON.stringify(json));
                                        var s = json.count + "/" + json.total + " are done.";
                                        // console.log( s );
                                        document.getElementById("result").innerHTML = s;
                                      }
                                    );
                                  } else {
                                    /* alert("アプリスタート"); */
                                  }
                                },
                                failTask : function(res) {
                                  monaca.InAppUpdater.showAlertDialog(
                                    { title : "Error Code "+res.error.code ,
                                      message : res.error.message ,
                                      button : { label : "OK" , handler : function() { } }
                                    } ).then(
                                    function(json) {  },
                                    function(fail) { }
                                  );
                                }
                              });
      
                          }
      
      posted in Monaca Tools
      L
      lammie1971
    • In-App-Updater plugin, using in testing.

      Hi, I an in the process of making an app. I have been looking at the plug-ins and the In-App-Updater plugin looks good as I will have constantly updating JSON files.

      Obviously at this point I am only building the app and it may not come to fruition. What I want to know is what time I have to pay for the plugin.

      Is it during the build process or is it once the application has been accepted into the appstore?

      Thanks.

      posted in Developer Corner
      L
      lammie1971
    • jQuery Mobile App & Cordova-Plugin-Keyboard Problem.

      I am writing a small app with jQuery Mobile that I want to include CJPearson’s Cordova-Plugin-Keyboard https://www.npmjs.com/package/cordova-plugin-keyboard. I can install the plugin Ok but I do not know how to configure it correctly.

      For example, I want to stop disable scrolling in shrink view and but I do not know where to place it within my code.

      Thanks in advance.

      PS, I have attached the code (with dummy content) from my index file below, (apologies as I did not know how to attach and upload the file).

      <html>
      <head>
        <meta charset="utf-8">
        <meta name="viewport" viewport-fit="cover" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta http-equiv="Content-Security-Policy" content="default-src * data: gap: content: https://ssl.gstatic.com; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">
      
        <link rel="stylesheet" href="css/style.css">
        <link rel="stylesheet" href="lib/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.css">
        <script src="lib/jquery/jquery-1.12.4.min.js"></script>
        <script src="lib/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.js"></script>
      
        <script>
      
          document.addEventListener('deviceready', deviceReady, false);
      
      	function deviceReady(){
      
              alert("WE ARE READY!!");
      		
      		Keyboard.shrinkView(false);
      		Keyboard.disableScrollingInShrinkView(true);
          };
      
        </script>
      </head>
      	
      	
      
      <body class="ui-mobile-viewport ui-overlay-a">
      
        <div data-role="page" id="one" data-url="one" tabindex="0" class="ui-page ui-page-theme-a ui-page-active" style="">
          	<div data-role="header" role="banner" class="ui-header ui-bar-inherit" data-position="fixed">
      			<h1 class="ui-title" role="heading" aria-level="1">Multi-page</h1>
      	  	</div><!-- /header -->
      
      		 <div role="main" class="ui-content">
      			<h2>One</h2>
      			<input type="text" />
      			<p><a href="#two" class="ui-btn ui-shadow ui-corner-all">Show page "two"</a></p>
      
                	<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      			<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      			<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      			<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      			<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      			<br/><br/><br/><br/>Stop from scrolling when the keyboard is shown
      
          	</div><!-- /content -->
      
      	  	<div data-role="footer" data-theme="a" role="contentinfo" class="ui-footer ui-bar-a" data-position="fixed">
      			<h4 class="ui-title" role="heading" aria-level="1">Page Footer</h4>
      	  	</div><!-- /footer -->
      	</div><!-- /page one -->
      
      
      </body>
      </html>
      
      
      posted in Developer Corner
      L
      lammie1971
    • Monaca in-app-updater query?

      I am developing my first app with Monaca. I think if it comes to fruition I will purchase the Monaca in-app-updater.

      Do I have to pay for this during the development stage or when I package and publish the final app.

      As it seems a lot to fork out now without necessarily knowing that I will need it.

      Thanks in advance.

      posted in Monaca Tools
      L
      lammie1971