How do I process activities on android while app is closed?

Get help using Construct 2

Post » Mon May 12, 2014 4:33 am

A lot of apps handle information while the app isn't active, and send push notifications to mobile devices. Is there a way to handle that with Construct?
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Sat Jun 07, 2014 5:21 pm

I have the same question, for iOS.
B
18
S
5
Posts: 80
Reputation: 1,338

Post » Tue Jun 09, 2015 2:42 am

I am also searching on the same thing. Any help guys?
B
12
S
1
Posts: 25
Reputation: 618

Post » Tue Jun 09, 2015 2:50 am

I don't think C2 can do background processing. Btw what type of process are you planning to run in the background? If you are looking for push notification you can consider Cocoonjs+(Parse or Urban Airship).
sleep is only for the weak!
B
88
S
30
G
12
Posts: 139
Reputation: 11,867

Post » Tue Jun 09, 2015 4:18 am

pinoypixel wrote:I don't think C2 can do background processing. Btw what type of process are you planning to run in the background? If you are looking for push notification you can consider Cocoonjs+(Parse or Urban Airship).


A simple Build queue or production queue for example. It takes 10 mins to build the house. so even if app is closed the game should be able to alert the player via a notification of "house Built" message!
B
12
S
1
Posts: 25
Reputation: 618

Post » Tue Jun 09, 2015 6:30 am

oh i get it.. you want something like a local notification. the push notification i mentioned earlier is something triggered from the server side. hmm, i guess its a limitation for C2 being non-native. You might need to go through the Cordova build. Try checking this one out: https://github.com/katzer/cordova-plugi ... round-mode or https://github.com/Red-Folder/Cordova-P ... undService . You might need to create a custom C2 plugin for this. Btw this is somewhat related to this unanswered question is-c2-compatible-with-cordova-plugin-background-app_t145426 . Best of luck ^^.
sleep is only for the weak!
B
88
S
30
G
12
Posts: 139
Reputation: 11,867

Post » Wed Jun 10, 2015 2:37 am

pinoypixel wrote:oh i get it.. you want something like a local notification. the push notification i mentioned earlier is something triggered from the server side. hmm, i guess its a limitation for C2 being non-native. You might need to go through the Cordova build. Try checking this one out: https://github.com/katzer/cordova-plugi ... round-mode or https://github.com/Red-Folder/Cordova-P ... undService . You might need to create a custom C2 plugin for this. Btw this is somewhat related to this unanswered question is-c2-compatible-with-cordova-plugin-background-app_t145426 . Best of luck ^^.


Wow Thanks a lot for this help. It means a lot! :) Will try it out and update if I able to get it work so that community can be facilitated as well.
B
12
S
1
Posts: 25
Reputation: 618

Post » Wed Jun 10, 2015 8:56 am

you can do push notifications from intel xdk also, however i cant really say to much! in old intel xdk there was a option to setup a server side permission! in the build , for .apk's however i dont have no clue about IOS!
B
70
S
20
G
67
Posts: 1,314
Reputation: 42,301

Post » Wed Jun 10, 2015 12:20 pm

For time based things, use this plugin: http://c2rexplugins.weebly.com/rex_time_awayl.html

I am using it for a time-based gifting system. I can't be bothered to explain how to do it, you'll just need to do a bit of thinking (it's fairly simple).

For local notifications, cranberrygame has a plugin for that (he has a plugin for almost everything you need) which I am also using, but you need a premium account to get it.

Link: https://plus.google.com/102658703990850 ... QceTB8MGfs
B
18
S
5
Posts: 47
Reputation: 1,134

Post » Mon Jul 27, 2015 7:27 pm

Thanks guys for all your help!
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Next

Return to How do I....?

Who is online

Users browsing this forum: davidbox, Yahoo [Bot], zulerf and 8 guests