Use the Cranberry Power Management tool

0 favourites
  • 10 posts
From the Asset Store
75 power-up sound effects; bonus and notification sounds, fanfares, harp glissandi, stabs, clock ticks, etc.
  • Hello forum, I'm in a bit of a bind here, I made a simple app for life tracking for card games (MtG specifically), with construct 2 -> cordova export -> Cocoon for the apk.

    The thing is that in MtG a lot of the time the life of the players won't move and since there will be no interaction with the screen, it will dim and lock. I can "fix" this with the phone display settings, but I rather have an option in the app itself.

    I've looked around and found the cranberry plugin, wich has a site for download and documentation on how to integrate in C2 and Cocoon, however, the download link is dead and I can no longer get a hold of it, I was wondering if anyone that comes across this post could zip the folder and share if that is possible, or point me to an alternative.

    I found the Cordova Power Managment thread () in the FAQ, but I couldn't find the explanation on how to integrate that into Cocoon, is not listed in the plugin list it has (I tried the plugin "as is", but couldn't make it work). I'm just learning these things, so something that may be ovbious could be escaping my understanding of the process at this point, a healping hand could be awesome.

    Thanks in advance!

  • Oh man, I don't like to "up" threds but I have not been able to find a solution for this D:

  • Please forum, you are my omly hope (amd this is my last try!).

  • Same woe, different reason. Gimme a bit, I'm looking into it now.

  • If you could figure it out that would be great, I'll light up some candles for you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just call the Cordova Powermanagement Action "Acquire Screen" on start of your layout.

    This will keep the screen from going into standby.

    But keep in mind to install this cordova plugin to your Cocoon project or whatever build tool you use.

    <plugin name="https://github.com/cranberrygame/cordova-plugin-powermanagement" />[/code:2gro7ie9]
  • But keep in mind to install this cordova plugin to your Cocoon project or whatever build tool you use.

    <plugin name="https://github.com/cranberrygame/cordova-plugin-powermanagement" />[/code:3ezp7re9]
    

    This is where I'm stuck, I'm not exactly sure how to do this, but I'll try waht you posted here.

  • Just call the Cordova Powermanagement Action "Acquire Screen" on start of your layout.

    This will keep the screen from going into standby.

    But keep in mind to install this cordova plugin to your Cocoon project or whatever build tool you use.

    <plugin name="https://github.com/cranberrygame/cordova-plugin-powermanagement" />[/code:2tc1mtzk]
    

    Ignore my last post! I created the thread because I couldn't find the plugin to install on C2, the link to the download is dead on its oficial site (is a dropbox link).

  • You can get the plugins here <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    https://www.scirra.com/store/construct2 ... ugins-1662

  • I was under the impression there was a free outdated version of it D:

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)