How do I send text notification to a player from a server?

Get help using Construct 2

Post » Wed May 20, 2015 8:39 am

The big picture: I would like to send some notification text from a server to a Construct 2 app running on smartphone. Is this possible?

The details: the player will be connecting to the server online. Now, once in a while, I would like to send some notification text to the players. I want it just like those pop up notification on the smartphones to inform the player stuff. Is this possible for the following:

1. Construct 2 app exported as HTML5 running on a server?
2. Construct 2 app exported as Android/iOS app?

3. Suppose the player closes down the app (ex. close web browser for HTML5 app and close app for exported Android/iOS), is it possible for the player to still receive some text notification? Or is this not possible with C2? Any extra server side technologies or any extra scripting/tool on smartphone required?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Fri Sep 04, 2015 6:59 pm

Are you found a way for your question? I need it too.
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Fri Sep 04, 2015 9:14 pm

keroberos wrote:Suppose the player closes down the app (ex. close web browser for HTML5 app and close app for exported Android/iOS), is it possible for the player to still receive some text notification?


I'm not really sure how you see it with HTML5 app. When user closes the browser then there is no place where message should be sent to. In that case you can send him a message if he has some account in your app (on your server), and he will be able to read it once he logs in to the app. There is plenty ways to do that but I think this is not what you want.
However if browser is opened and player is in your app then you can send him a message using WebSockets.

Regarding mobile version, there is no built in plugin to do Push Notification in C2, but it is possible to do that with CooconJS and some manual scripting if I remember well. Just Google "construct 2 push notification" there are some information related to Ludei.
ImageImageImage
B
28
S
16
G
82
Posts: 1,030
Reputation: 45,804


Return to How do I....?

Who is online

Users browsing this forum: danalog, Yahoo [Bot] and 21 guests