Navigation

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

    sinki

    @sinki

    0
    Reputation
    12
    Posts
    600
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    sinki Follow

    Posts made by sinki

    • RE: Monaca how to set properties in info.plist through config.xml

      @emccorson Thanks for your reply. In the Monaca there is a config.xml. Attache screenshot shows where i have written the above code. I don’t know how to check that the config option is getting added to info.plist or not.

      0_1566399826431_config_shot.jpg

      Now I have changed the code to this

      <config-file platform=“ios” parent=“UIBackgroundModes” target="*-Info.plist">
      <array>
      <string>audio</string>
      </array>
      </config-file>
      </platform>

      Do you think its better?

      posted in Monaca Tools
      S
      sinki
    • RE: Monaca how to set properties in info.plist through config.xml

      Hi,

      I can see there are so many views but none can reply. Have you not faced this problem or am I doing something wrong.

      Please help.

      posted in Monaca Tools
      S
      sinki
    • Monaca how to set properties in info.plist through config.xml

      For IOS to allow playback with the screen locked or background audio you have to add audio to UIBackgroundModes in the info.plist file. How do i need to do that through monaca ide. I have added the line in config.xml

      <edit-config target=“UIBackgroundModes” file="*-Info.plist" mode=“merge”> <string>audio</string> </edit-config>

      But its off no help. The music stops.

      There is no way to get hold of the infoo.plist file so the Monaca support has suggested me this but not working.

      posted in Monaca Tools
      S
      sinki
    • RE: bringPageTop and state of the app

      @emccorson Many thanks I’ll try to hide as you have mentioned. But, please can you let me know if bringPageTop is fixed. I’m not in a hurry to finish the project.

      posted in Onsen UI
      S
      sinki
    • RE: bringPageTop and state of the app

      i have seen that if i use tab the page doesnot reload but is there any other process how i can achieve this…

      posted in Onsen UI
      S
      sinki
    • RE: bringPageTop and state of the app

      @emccorson
      Thanks for your reply but can you please tell me how a page can be stopped to run again. the problem I’m facing is that it loses the state which the player was in.

      Any work around to this problem will be a big help.

      posted in Onsen UI
      S
      sinki
    • RE: bringPageTop and state of the app

      Please let me know 1 thing that how a page which is already been opened should not run again if it is visited again.

      I have a function which runs on init page and shows the tracks but as it is running again it loses the selection of the song which was playing.

      Please help.

      posted in Onsen UI
      S
      sinki
    • bringPageTop and state of the app

      Hi,

      i have a player in the app. From the home page by pushpage when i go to the player page and play a song and come back to the home page and on revisiting the player page it reloads which loose the state of the player and selection goes away the song whihc was playing.

      I have checked that if i use “bringPageTop” it can be achived. On using this function im getting an error “incorrect state of pageMap”.

      onclick=“fn.bringPageTop ({‘id’: ‘./pages/mind-tracks.html’, ‘title’: ‘Mind Tracks’}, ‘slide’);”

      window.fn.bringPageTop = function (page, anim) {

      if (anim) {
      document.getElementById(‘myNavigator’).bringPageTop(page.id, { animation: anim, data: { title: page.title } });
      //document.getElementById(‘title’).innerHTML = page.title;

      } else {
      document.getElementById(‘myNavigator’).bringPageTop(page.id, { data: { title: page.title } });
      //document.getElementById(‘title’).innerHTML = page.title; this.querySelector(‘ons-toolbar div.center’).textContent = this.data.title;
      }
      };

      posted in Onsen UI
      S
      sinki
    • RE: Push Page into external .html files not within index.html

      thanks I have solved it.

      posted in Onsen UI
      S
      sinki
    • RE: Push Page into external .html files not within index.html

      <html>

      <head>
      <meta charset=“utf-8” />
      <meta name=“format-detection” content=“telephone=no” />
      <meta name=“msapplication-tap-highlight” content=“no” />
      <meta name=“viewport” content=“user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width” />
      <!-- This is a wide open CSP declaration. To lock this down for production, see below. -->

      <link rel="stylesheet" href="css/style.css">
      
      <link rel="stylesheet" href="lib/onsenui/css/onsenui.css">
      <link rel="stylesheet" href="lib/onsenui/css/onsen-css-components.min.css">
      <script src="lib/onsenui/js/onsenui.min.js"></script>
      <script type="text/javascript" src="js/app.js"></script>
      <script src="https://unpkg.com/jquery/dist/jquery.min.js"></script>
      <title>Horoscope</title>
      

      </head>

      <body>
      <ons-splitter>
      <ons-splitter-side id=“appSplitter” side=“left” width=“220px” collapse swipeable>
      <ons-page>
      <ons-list>
      <ons-list-item onclick=“fn.load(‘home.html’)” tappable>
      Home
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘pages/test.html’);” tappable>
      <i class=“fa fa-address-card-o” aria-hidden=“true”></i> Test
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘about.html’)” tappable>
      About
      </ons-list-item>
      </ons-list>
      </ons-page>
      </ons-splitter-side>
      <ons-splitter-content id=“content” page=“home.html”></ons-splitter-content>
      </ons-splitter>

      <template id=“home.html”>
      <ons-page>
      <ons-navigator swipeable id=“myNavigator” ></ons-navigator>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      Home
      </div>
      </ons-toolbar>
      <p class=“intro”>
      This is a kitchen sink example that shows off the components of Onsen UI.<br><br>
      </p>

      <ons-card onclick="fn.pushPage({'id': './pages/test.html', 'title': 'Test'})" tappable>
        <div class="title">Test</div>
        <div class="content">Simple push to test page    
      
        </div>
      </ons-card>
      <script>
      $(function(){
      // Initialization code
      $('ons-button').on('click', function(e) {
        alert('hi');
        fn.pushPage({'id': './pages/test.html', 'title': 'Test'})
      })
      });
      </script>
      <ons-button>Click me!</ons-button>
      
      <style>
        .intro {
          text-align: center;
          padding: 0 20px;
          margin-top: 40px;
        }
      
        ons-card {
          cursor: pointer;
          color: #333;
        }
      
        .card__title,
        .card--material__title {
          font-size: 20px;
        }
      </style>
      

      </ons-page>
      </template>

      <script type="text/javascript" src="cordova.js"></script>
      

      this is just a test code can anyone tell me what can be the problem. it looks like this in the emulator. Even the menu comes out and shows but from the home page you just click. Even i have put alerts in the function its not happening

      0_1552833198915_58091632-e967-4943-a33c-0fa7cecf6805-image.png

      posted in Onsen UI
      S
      sinki