how to create a one time event (android build)

Get help using Construct 2

Post » Mon Apr 18, 2016 6:45 am

Ok! I have the details for adding a splash event/pop up/rate my app for android,

but I only wish this event to run once after set dt = 72hrs and save setting = true / false if user rated app and if not set to run again dt=72, If user clicked rate app save and never request action again the whole time the app is installed.
B
29
S
13
G
10
Posts: 355
Reputation: 8,337

Post » Thu Apr 21, 2016 4:30 pm

You are assuming that your user has the app open for 72+hrs. If not, then your timer gets reset.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Apr 21, 2016 9:19 pm

it would be better to compare against a specific time from the device clock.. of course they could change that on you :) but it overcomes the issue of needing the app open. if you are sensitive about preventing user manipulation of the clock, use ajax to ping an internet-based time server.
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Fri Apr 22, 2016 12:12 am

Use local storage + timestamp.

Image
ImageImageImage
B
31
S
19
G
82
Posts: 1,037
Reputation: 46,203

Post » Fri Apr 22, 2016 2:47 am

Thanks for all the replies. The event is a rate my app event Just done wish to keep demanding them to rate my app if they already did and set it to appear only are a set time of being installed on their device.

I believe all would do the trick. Just have to play around with it. Thanks again. Jeremy C.
B
29
S
13
G
10
Posts: 355
Reputation: 8,337

Post » Fri Apr 29, 2016 3:29 pm

For now, you can use our time API call:
http://www.stormforgedproductions.com/d ... ne?getTime

This returns the current UNIX timestamp for UTC. It is also automatically synced with the nist.time.gov time servers daily.

Then you just have to parse it back to a date format.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Jun 15, 2016 1:45 pm

B
34
S
18
G
11
Posts: 353
Reputation: 8,803

Post » Thu Jun 16, 2016 2:16 am



that might do the trick, but i think i would have to modify it for my needs.
B
29
S
13
G
10
Posts: 355
Reputation: 8,337

Post » Fri Jun 17, 2016 6:55 am



The plugin needs fixing. Crashes my apps. I give 0 stars out of 5 and will post comments to keep other away from an outdated plugin that does not work.
B
29
S
13
G
10
Posts: 355
Reputation: 8,337

Post » Fri Jun 17, 2016 10:51 am

Carbincopy wrote:


The plugin needs fixing. Crashes my apps. I give 0 stars out of 5 and will post comments to keep other away from an outdated plugin that does not work.


Hi @Carbincopy

Sorry for the trouble, but did you not test the app before uploading it to the app store? Did it work when you tested it?

Please try this app as it is using the plugin, https://play.google.com/store/apps/details?id=com.hedev.that.custom&hl=en. Once the app loads, try to hit the Rate button on the top right. Does it work for you?

Please send me your capx, and build process. I also have no problems giving you a full refund.

EDIT: @Carbincopy, are you by any chances using the minify code options?
B
45
S
19
G
9
Posts: 536
Reputation: 9,172

Next

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 9 guests