Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Share data between users
Started by guidobono Nov 12 2019 06:04 AM

- - - - -
7 replies to this topic
sharing storing data multiple users
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

guidobono

[GLOBAL: userInfoPane.html]
guidobono
  • Observer

  • 4 posts
  • Corona SDK

Hi, I'm making an app for gamers, to run statistics and so. What may be the best way to share data between people that have installed my app? For example, let's say that in a certain game group there are six members, but only two of them play a fifa 2020 game. What is the best way to inform the other players that Pete win 2-0 over John? I have an MySql database integrated in the app.

Any help would be appreciated



[TOPIC: post.html]
#2

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 673 posts
  • Corona SDK

Are there any methods you've considered already?  Are you looking for a larger scale theory or smaller technical approaches?  How soon does the group need to be notified?



[TOPIC: post.html]
#3

guidobono

[GLOBAL: userInfoPane.html]
guidobono
  • Observer

  • 4 posts
  • Corona SDK

Hi sporkfin, I am looking for a concept approach. I want the user (all the users in the group) to have equal data and notifications. Is it better to use some kind of database and a web server and just wait for the user to start the app to receive notifications? Or maybe should I use cloud Firestore (or another similar service)?

Thank you for your time



[TOPIC: post.html]
#4

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,039 posts
  • Corona SDK

Firebase realtime database would be a cheap and easy method: https://firebase.google.com/products/realtime-database/

 

You could also look into AWS.



[TOPIC: post.html]
#5

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 671 posts
  • Corona SDK

Firebase realtime database would be a cheap and easy method: https://firebase.google.com/products/realtime-database/

 

You could also look into AWS.

 

I think you mean Firebase cloud messaging?

 

@guidobono

If you already have a mysql database you can study the API from a notification service like Onesignal, and try to integrate with your app. when a game ends for example, you can send info to the database and to the notification service to deploy a msg to all the others users.



[TOPIC: post.html]
#6

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Enthusiast

  • 54 posts
  • Corona SDK

Realtime database would be correct bet if the plan is to share more than just text based messages. Right? If it is just txt then cloud messaging is better

[TOPIC: post.html]
#7

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,039 posts
  • Corona SDK

@carloscosta, it's exactly as pixec said. Since the OP stated that "I'm making an app for gamers, to run statistics and so", I didn't consider that cloud messaging would be sufficient for their needs as it is not concerned with data storage.



[TOPIC: post.html]
#8

guidobono

[GLOBAL: userInfoPane.html]
guidobono
  • Observer

  • 4 posts
  • Corona SDK

Thank you all for your suggestions.

 

Realtime database would be correct bet if the plan is to share more than just text based messages. Right? If it is just txt then cloud messaging is better

And which tool do you recommend to use this approach(real time database)?




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: sharing, storing data, multiple users