Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. emccorson
    3. Posts
    E
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by emccorson

    • RE: Missing app icon on IOS build

      Actually it appears you also need this line:

      <icon src="/res/ios/icon/icon-1024.png" width="1024" height="1024" />
      
      posted in Monaca Tools
      E
      emccorson
    • RE: IOS build faild 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 1

      What version of the plugin are you using? I was able to get it to install properly with the latest release version.

      posted in Monaca Tools
      E
      emccorson
    • RE: cordova ios 5.1.0 required to eliminate ITMS-90809: Deprecated API Usage UIWebView issue

      Monaca now uses cordova-ios@6 which has WKWebView by default so you don’t need the plugin. To get around the XHR problem, see https://github.com/OnsenUI/OnsenUI/issues/2629#issuecomment-732533174

      ryanjanderson created this issue in OnsenUI/OnsenUI

      closed Cordova and tabbar and separate HTML files #2629

      posted in Monaca Tools
      E
      emccorson
    • RE: Blank bottom space on iPhone XS after Cordova 10 update

      If you rotate the screen to landscape and then back to portrait, does the screen display correctly once back in portrait?

      Also, were you using WKWebView before the Cordova 10 upgrade? It is used by default in Cordova 10, but before that you had to use a plugin if you wanted to use WKWebView.

      This may be related, I’m not sure: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/53

      mwargan created this issue in apache/cordova-plugin-wkwebview-engine

      closed iPhone X initial height issue #53

      posted in Monaca Tools
      E
      emccorson
    • RE: Listen to Cordova events from VueJS

      You should be able to just use v-on:batterystatus, right? I think that’s the case but I haven’t checked.

      https://vuejs.org/v2/guide/events.html#Listening-to-Events

      posted in Developer Corner
      E
      emccorson
    • RE: ons-input and datalist

      @geraldineak How about this?

      You can copy and paste it into the playground to try it:
      https://onsen.io/playground/

      HTML

      <ons-page>
        <p style="text-align: center; margin-top: 10px;">
          <ons-search-input
            placeholder="Search"
            oninput="input()"
            id="search"
          ></ons-search-input>
        </p>
        
        <ons-list>
          <ons-lazy-repeat id="infinite-list"></ons-lazy-repeat>
        </ons-list>
      </ons-page>
      

      JS

      const allItems = ['hey', 'there', 'here', 'are', 'some', 'options'];
      let shownItems = [];
      
      ons.ready(function() {
        const infiniteList = document.getElementById('infinite-list');
      
        infiniteList.delegate = {
          createItemContent: function(i) {
            const element = ons.createElement('<ons-list-item>' + shownItems[i] + '</ons-list-item>');
            element.onclick = () => fill(shownItems[i]);
            return element;
          },
          countItems: function() {
            return shownItems.length;
          }
        };
      
        infiniteList.refresh();
      });
      
      // updates list of options on input
      function input() {
        const inputValue = document.getElementById('search').value;
        
        if (inputValue === '') {
          shownItems = [];
        } else {
          shownItems = allItems.filter(item => item.startsWith(inputValue));
        }
        
        document.getElementById('infinite-list').refresh();
      }
      
      // sets input value to clicked option
      function fill(clickedOption) {
        document.getElementById('search').value = clickedOption;
        shownItems = [];
        document.getElementById('infinite-list').refresh();
      }
      
      posted in Onsen UI
      E
      emccorson
    • RE: Does Onsen UI no longer support using multiple html files as pages?

      Glad it’s working now.

      By the way, you can save from the playground by clicking the Export to Codepen button (or if it’s to report an Onsen UI bug, click Report an Issue).

      posted in Onsen UI
      E
      emccorson
    • RE: Does Onsen UI no longer support using multiple html files as pages?

      In that case, can you recreate the problem here and link it?
      https://onsen.io/playground/

      WKWebView is just for iOS. I assumed that was the problem since that was a common problem with using multiple files recently.

      posted in Onsen UI
      E
      emccorson
    • RE: Why is Start Build button disabled? How do I build?

      In that case, if you contact Monaca Support Team, they can check your project to see if there are any problems with it.

      posted in Monaca Tools
      E
      emccorson
    • RE: Why is Start Build button disabled? How do I build?

      Sometimes the Start button can take a little time to load. If you click between the build types and come back to the Debug build option, it will usually be enabled.

      posted in Monaca Tools
      E
      emccorson
    • RE: Does Onsen UI no longer support using multiple html files as pages?

      It does still support this but if you are using WkWebView, there may be a problem with using it.

      The solution is here: https://github.com/OnsenUI/OnsenUI/issues/2629#issuecomment-732533174

      ryanjanderson created this issue in OnsenUI/OnsenUI

      closed Cordova and tabbar and separate HTML files #2629

      posted in Onsen UI
      E
      emccorson
    • RE: Missing dev provisioning file

      If you haven’t built your application before, you have to build it once using Monaca Cloud IDE to link the provisioning profile to your project. After the first time, you can build with Monaca CLI.

      posted in Monaca Tools
      E
      emccorson
    • RE: Android APK when uploaded show no devices supported

      @gwclubexpress
      It might be caused by this line:

       <uses-feature android:name=“android.hardware.CAMERA”/>
      

      https://stackoverflow.com/a/29058377

      posted in Monaca Tools
      E
      emccorson
    • RE: Android APK when uploaded show no devices supported

      Where do you see the message that no devices are supported? Is it a build error? If so, please send the full error.

      posted in Monaca Tools
      E
      emccorson
    • RE: Push notifications ?

      Using Firebase with cordova-plugin-firebasex works well.

      posted in Monaca Tools
      E
      emccorson
    • RE: External URL's 'replacing' app

      This might be obvious, but are you sure you are using the inappbrowser open method? (you need to replace window.open with cordova.InAppBrowser.open)

      https://github.com/apache/cordova-plugin-inappbrowser#windowopen

      posted in Developer Corner
      E
      emccorson
    • RE: Disorder with confirm dialog

      It might work using setInterval as described here:
      https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API

      posted in Developer Corner
      E
      emccorson
    • RE: Your app currently targets API level 28 and must target at least API level 29

      You can still use API level 29 on the version of cordova-android used by Monaca.

      Make sure your setting is within the <platform name=“android”> section of your config.xml. You can also try setting android-targetSdkVersion to 29.

      posted in Monaca Tools
      E
      emccorson
    • RE: How to imageflip

      How about this?
      https://www.w3schools.com/howto/howto_css_flip_image.asp

      posted in Developer Corner
      E
      emccorson
    • RE: External URL's 'replacing' app

      You could try setting the target argument of the open method:
      https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen

      This can be used to open in the inapp browser or in the system browser.

      posted in Developer Corner
      E
      emccorson