Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Updating mobile application data when database has changes.

Discussion in 'Scripting' started by RoxtWorks, Feb 15, 2023.

  1. RoxtWorks

    RoxtWorks

    Joined:
    Jun 20, 2021
    Posts:
    2
    Hi all,

    I am creating a mobile application that uses AWS services as my database, I was wondering how would one update the app if the database receives changes.

    For example : My user is logged in the app, and changes his/her password on the website or database. Or the server has given every user free 100 coins. How do I in the mobile app update the changes asap ( if password changed, signout from the app || update the wallet of the users )

    So far I am thinking of refreshing the status by calling the GET functions by using a coroutine every few seconds), when googling the only information I can get about it is using firebase instead which is not ideal.

    Is there any post notification in unity with AWS?
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,150
    Unity itself isn't going to have anything. Firebase has their own Unity SDK that allows for you to use their API to setup for this exact feature. For AWS, I've never used their database, but I'm not aware of them having a Unity SDK. But, that would be the first place to start. If not, then you'll need to see what their API allows you to do through web calls. My guess is if you are already updating the database, that you should be able to dig around that documentation and see what they offer.
     
  3. RoxtWorks

    RoxtWorks

    Joined:
    Jun 20, 2021
    Posts:
    2
    Ok, thanks Brathnann. Yeah just found there is something called a AWS Mobile Unity SDK, I'll check that one out.