makkibo's Forum Posts

  • I need to be able to encode some of the information in hmac Sha256.

    I can't find any addons or plugins that provide me with this theme, nor information about the theme that I can use in construct 3. Any ideas?

    I found something on the subject at

    https://es.stackoverflow.com/questions/361161/creando-una-firma-hmac-sha256-con-javascript

    But I can't get it to work in construct 3, more than anything the problem is that I don't know how to implement the CryptoJS library and after that I don't know how to make it work...

    Sorry if this is too basic, but I've only recently gotten into JavaScript.

  • Ok, I was able to solve the above problem very simply.

    const url = runtime.globalVars.urlg;
    
    const responseg = await fetch( url , requestOptions)
     .then(response => response.text())
    
     .then(function (result) { console.log(result); //here goes the capture//
     runtime.globalVars.json1 = (result);})
    
     .catch(error => console.log('error', error));
    
    

    Now i have another problem... i need to be able to encode some of the information in hmac Sha256.

    I can't find any addons or plugins that provide me with this theme, nor information about the theme that I can use in construct 3. Any ideas?

  • HI... Can you tell me how to do so that the data that Fetch throws in console.log can be saved in a global variable of the project?

    I thought it was so...

    const url = runtime.globalVars.urlg;
    
    const responseg = await fetch( url , requestOptions)
     .then(response => response.text())
     .then(result => console.log(result))
     .catch(error => console.log('error', error));
    
    runtime.globalVars.json1 = responseg;
    

    But it gives me an error in the variable...The response is a JSON, and i need to do 5 o 6 queries in parallel...(this is only one)

    Thank you!

    (in console.log it works perfectly, but the variable does not capture the result)

  • Thanks for the clarification...Could you give me a small example? I can't get it...

  • Hello... I would like to know how to make my application continue working when it is not in the foreground in chrome in html5.

    I can't find a way to keep it running when I switch tabs or minimize the browser.

    Thanks!

  • Well I don't have a clear answer for that, but I do know that your phone will auto-shutoff if you are inactive from it for a limited amount of time

    Exactly, but youtube or the applications that I mentioned do not allow the phone to do this, they do not allow it to turn itself off if they are playing audio or video.... That function is what I am interested in learning

  • I do not have youtube premium... the common youtube player and several other programs that I have downloaded, continue to play audio or video, some prevent the screen from turning off, and others continue to play even if the screen turns off...

    I am interested in the screen not turning off.

  • thanks for your answer... the music plays, but only until the cell phone screen turns off.

    When the screen turns off (for battery saving) the application enters suspended mode, I touch the screen and the music is activated again.

    I have seen that youtube continues to play and does not let the screen turn off... How do you do that?

  • Hello, I have a problem, I put music in my program, and I need to play it for 1 hour.

    The problem is that since the phone is not used at that time, when the screen is locked, the application goes into sleep mode and the music pauses.

    I have seen that other programs transfer the audio to the Android player and this can be managed from the superior functions, in that case the audio does not pause even if the device is locked.

    How could I do this?

    Thanks!!

    Tagged:

  • In my case to use google play services it also asks me to edit the AndroidManifest.xml file

    To be able to modify the access data to the google API ... since I cannot modify it, the google play services do not work for me and the application presents various warnings and errors, all related to android security violations.

    If someone can indicate how to edit the AndroidManifest.xml file it would be great

  • Hi i have this error... I had already compiled 3 versions without problems and yesterday after modifying a couple of things it does not compile any more ... (Do not change anything related to the keys or admob or anything like that)

    It does not export the project to me even in debug mode or any form for android. If I can export it in HTML5...

    What does this mean?

    Error: Checking Java JDK and Android SDK versions

    ANDROID_SDK_ROOT=~~/androidSDK (recommended setting)

    ANDROID_HOME=~~/androidSDK (DEPRECATED)

    Using Android SDK: ~~/androidSDK

    :wrapper

    BUILD SUCCESSFUL in 0s

    1 actionable task: 1 executed

    Subproject Path: CordovaLib

    Subproject Path: app

    i have this error even in the debug apk... do you know why can be?

    FAILURE: Build failed with an exception.

    * What went wrong:

    Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https:/~~/help.gradle.org

    BUILD FAILED in 596ms

    Command failed with exit code 1: ~~/gradlew cdvBuildDebug -b ~~/build.gradle

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Error: Checking Java JDK and Android SDK versions

    ANDROID_SDK_ROOT=~~/androidSDK (recommended setting)

    ANDROID_HOME=~~/androidSDK (DEPRECATED)

    Using Android SDK: ~~/androidSDK

    :wrapper

    BUILD SUCCESSFUL in 0s

    1 actionable task: 1 executed

    Subproject Path: CordovaLib

    Subproject Path: app

    i have this error even in the debug apk... do you know why can be?

    FAILURE: Build failed with an exception.

    * What went wrong:

    Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https:/~~/help.gradle.org

    BUILD FAILED in 596ms

    Command failed with exit code 1: ~~/gradlew cdvBuildDebug -b ~~/build.gradle

  • HI, Is there a problem with the compiler?

    I am getting errors... I had already compiled 3 versions without problems and today after modifying a couple of things it does not compile any more ... (Do not change anything related to the keys or admob or anything like that)

  • OK great, now that work well... Thanks so much for your time!!

  • Ah ok, with the word "array"? because this JSON do not have names o keys, only values...like the example.