unicornspitfire's Forum Posts

  • FYI:

    "Thanks, but will it still rotate between portrait modes if the phone is flipped 180 degrees?,"

    Using the android_manifest.xml way above, will disable (ignore) any rotation from the user flipping the phone 180 degrees.

    That method is also very useful. No need to wait for layout to get started. Thank you.

  • > Try install this plugin and see if it works. https://github.com/apache/cordova-plugin-screen-orientation

    >

    Doesn't look like it's a plugin for c2. Not sure it's intended for which program.

    I use the c2 official browser plugin to do

    Browser|lock orientation to primary portrait[/code:2z03yth0]
    Then add cordova-plugin-orientation (given Git) to your project. I have tested and it should lock your app to certain orientation even if you rotate 180 degrees.
    Make sure you set it to "primary"(normal screen position) or "secondary"(upside down) so it is locked.
  • Thanks for the helpful documents. twg

    But I'm still confused about "DOM access is restricted" for Canvas+. Would you mind elaborate that for me?

    jobel Thank you. I'll try that on my upcoming project.

    Additionally, even though I'm new to mobile app making, I can totally feel your frustrations. That's why I think mobile app development deserves it own forum on Scirra.

  • twg What is the differences between Canvas+ and Webview or Webview+? In which situation I should use which? I had tried Canvas+ but I got no luck.

  • Try install this plugin and see if it works. https://github.com/apache/cordova-plugin-screen-orientation

  • You might want to try your luck with the Browser object's "On supsended" and "On resumed" triggers.

    Thanks, it is working great!

    Btw I don't know if it was the case but seems like it also needs CordovaBackgroundMode plugin to make it works.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to have some detection when my android app is either on pause, being switched out, or going to background (minimize kinda). Anyone got the way how to make that happen?

  • I have cordova inappbrowser installed. However, it was kinda random when I tried to go to some Url using C2 Browser : Go to Url with target self. Sometimes Inappbrowser opens, sometimes default Chrome browser opens.

    Recently I've experimented on using

    window.open(url, "_system");[/code:1eut8frw] and it navigated me to Url with Chrome 
    but when I used [code:1eut8frw]window.open(url);[/code:1eut8frw] Inappbrowser was working normally.
    
    I want to get rid of this inconsistency. Anyone has an idea how to make Inappbrowser a default action when navigate to Url?
  • try:

    Global variable c2Var = "https://www.scirra.com/"

    "var myUrl ='"&c2Var&"';
    var ref = cordova.InAppBrowser.open( myUrl, '_blank', 'location=yes');"[/code:1r9zr6hv]
    

    Thank you. I'll try it out.

  • Do I have anyway to sneak in a global variable into 'browser execute javascript' action?

    Some thing like, for example

    var ref = cordova.InAppBrowser.open('http://===INSERT VARIABLE HERE===', '_blank', 'location=yes');

  • I think it might be better to get rexrainbow to encrypt the key in the plug, or at least allow users to set what the key is at runtime which we can in turn encrypt/ decrypt ourselves via some other plug.

    But you need to make a post in his thread about the plug, otherwise he may not see this.

    It's not like he's not super busy with other stuff.

    Finally reply is working.

    Thanks but using gumshoe method is doing just fine for me.

    The only thing that bothering me now is rex authentication plugin doesn't work on mobile webview. I still haven't found the solution yet but I my assumption is it has something to do with in app deeplinks (or universal links). I'm still solving the problem.

  • I want to secure my firebase database for my mobile app and recently I've found that data.js contains API key for the FirebaseAPIV.3 (rex's plugin).

    My questions here are :

    1. Is it normal (or safe) for my app to contain Firebase API key data?

    2. Is it possible for someone to alter my app and sabotage my database using their altered version of my app? (considered that I haven't done any server side security)

    3. Do I have anything else for the security matters to be concerned of?

  • [SOLVED]

    I tried using str(Variable) to convert integer to string and it's work.

    Took me whole day to figure this simple thing out.

  • The problem I noticed is that comparing value using key from global number variable seems not to work.

    I tried to compare value from dictionary by getting key (number "3") from global number variable and it did not work. However, when I tried using a normal number for example "3" to compare, it worked.

    I have something like:

    Dictionary | key Variable = "True">>>>>>>Text | Set text to "correct"

    Please help.

  • What do you guys think about creating a new forum for mobile app developer to share information and knowledge? (How do I....? and plugin SDK forums for mobile apps)

    For me it would be great since we can discover new techniques and get some ideas of how big Construct 3 can do on mobile app making.

    Please share your thought.