0 Replies Latest reply on May 16, 2018 10:48 AM by silen67

    index.js breaks windowsoftInputMode

    silen67 Level 1

      Hello it's been 2 months that I stuck on a very embarrassing problem, my keyboard goes over my inputs and textarea.

       

      But by the biggest chance I discovered that removing the file index.js and the call "app.initialize ();" (in bottom of my index.html) : everything worked wonderfully. The keyboard pushes the content upwards and everything is perfectly displayed !!!

       

      But I need the index.js especially for push and geolocation.

       

      Anyone know where this problem comes from?

       

      It's even crazier than when I delete the index.js and his call, everything works even when i remove the windowsoftInputMode and the fullscreen parameter.

       

      My index.js is almost empty:

       

      var app = {
          initialize: function() {
              this.bindEvents();
          },
          bindEvents: function() {
              document.addEventListener('deviceready', this.onDeviceReady, false);
          },
          onDeviceReady: function() {
      var notificationOpenedCallback = function(jsonData) {
      console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
      };
      
      
      window.plugins.OneSignal
      .startInit("xxxxx")
      .handleNotificationOpened(notificationOpenedCallback)
      .endInit();
          },
          receivedEvent: function(id) {}
      };
      

       

      Thanks !