iOS : wait for a touch still not working!

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Sorry not found iPad to test this bug; but i looked the code ;
    Application.js

    Code
    606        // Specific sound handling if on iOS
    607       this.iOS = !!(/iPad|iPhone|iPod/.test(navigator.platform)
    608   || (navigator.platform === "MacIntel" && typeof navigator.standalone !== "undefined"));
    609        if (this.iOS && this.soundBank.nHandlesReel > 0) // && (this.dwOptions & CRunApp.AH2OPT_LOADSOUNDSONTOUCH) != 0)
    610        {
    611           this.silentSound = new CSound(this);
    612           this.silentSound.loadSilent();
    613        }


    If someone having issue change to following ... maybe it can work or what happen ?;

    if (this.iOS)
    {
    // this.silentSound = new CSound(this);
    // this.silentSound.loadSilent();
    }

  • I have already tried this solution which is described in Please login to see this link..
    Unfortunately it does not work when the application has sound.


    So , can you try this code in Application.js please ;

    And this line 1503 in Banks.js like that;

    Code
    this.volume = 100;     // insert this line 
            if (!time)
                time = 0;

    Thank you

  • And i have simulate ios on windows , see this test ;
    So if this work on Ipad the bug is value divided by 0; in CBanks.js ;


    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

  • Gigatron Hi, I tried on iphone, the first one would seem to work. Could you send me the already modified files and the .mfa file? not to make a mess.

    I think no need to send files , just go to find Banks.js ....
    Open it with editor and insert line to :

    playIt function start line at 1501:

    1501 playIt: function (time, frequency)
    1502 {
    1503 if (!time)
    1504 time = 0;
    .....

    become :

    1501 playIt: function (time, frequency)
    1502 {
    1503 this.volume = 100;
    1504 if (!time)
    1505 time = 0;
    ......

    you must insert this.volume = 100;

    save the file and test it,

    Hope this will work ;

  • Hi, I have tested it on Iphone, ipad, imac, windows 10 pc and it's ok. On Android tablets and smartphones, the audio does not work, it must be forced with a button initially, after which it works regularly.

  • On Android tablets and smartphones, the audio does not work, it must be forced with a button initially, after which it works regularly.

    Do you mean that after doing Gigatron's edit to banks.js, you need to have a button on the first frame that plays a sound for it to work on android?

    Is this in addition to commenting out
    //this.silentSound = new CSound(this);
    //this.silentSound.loadSilent();
    in the app's runtime.js?

  • That's right, this way it works on everything, even "touch the screen to continue" of ios.
    I only edited line 1503 in Banks.js.
    In Application.js I didn't do anything, it was already all the same.

  • I'm sorry for the dumb question, but where are these files located? I can't find them in the src folder of my app build.

    Thank you for clearing that up for me :)

    [SIGPIC][/SIGPIC]
    Music Education for the 21st Century
    La pédagogie musicale au 21e siècle

  • Thank you!
    So that means that I have to rebuild each HTML5 app after applying these changes to banks.js?

    [SIGPIC][/SIGPIC]
    Music Education for the 21st Century
    La pédagogie musicale au 21e siècle

  • Is there a way to fix this by modifying the runtime,js or the index.html in final build? I ask this because I have about 50 apps that are already online and that need to be updated with this fix. I could quickly edit any of these 2 files directly through the editor on my file server. Having to reload, rebuild, reupload to server, replace existing build and redirect site urls to new build will take an eternity!

    Thanks in advance for any suggestions!

    Merci à l'avance pour des suggestions !

    [SIGPIC][/SIGPIC]
    Music Education for the 21st Century
    La pédagogie musicale au 21e siècle

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!