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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Checking published app version in unity

Discussion in 'Scripting' started by Daloteon, Feb 16, 2018.

  1. Daloteon

    Daloteon

    Joined:
    Feb 16, 2018
    Posts:
    3
    Hi,
    I want to create pop-up which will inform user about new app version. Is there any way to check published app version in App Store and Google Play Store in Unity?
     
  2. GeorgeCH

    GeorgeCH

    Joined:
    Oct 5, 2016
    Posts:
    222
    Not without a back-end service where you list the most current version and which checks the user's client version upon login and returns it to the client and, if there is a discrepancy, the client raises the "New Version Available" event. Look into BaaS solutions such as PlayFab.

    Though, to be fair, building BaaS integration for this feature alone is overkill. I wouldn't bother with it unless it is somehow essential for you that all users have the absolutely latest version - which typically isn't needed except for MP titles (where you'd have a back-end going anyway).
     
  3. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,140
    Just use Unity's Remote settings feature. It's perfect for this sort of thing.
     
    Joe-Censored and GeorgeCH like this.
  4. GeorgeCH

    GeorgeCH

    Joined:
    Oct 5, 2016
    Posts:
    222
    Nice one! I never knew that Unity Analytics did something other than, well, analytics!
     
  5. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,140
    Yep, I wouldn't say it's new, but it's not an old feature either. Can't recall what version it was added into. I want to say 2017.1 may have been when it was first seen, but I know we use it in a 5.6 project.
     
  6. Daloteon

    Daloteon

    Joined:
    Feb 16, 2018
    Posts:
    3
    Unfortunately project uses unity 5.5.3f1. Unity Remote Serttings support unity 5.5.5 or higher. I can't update unity in this project.
     
  7. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,140
    Well, your best bet is still to update the project. You could use a backend service, but as mentioned, probably not worth it.

    If these don't work, look on the asset store for Google sheet type assets. You can find some free ones I think. This way you could have the values in a google sheet and just pull from that.

    https://assetstore.unity.com/packages/tools/rapid-sheet-data-101991 Maybe look into this one.
     
  8. Helical

    Helical

    Joined:
    Mar 2, 2014
    Posts:
    50
    Dude, this is genius, why did I not think of this? How scaleable do you think such a solution is? how many free get requests do you think Google will accept before they lock it up or something
     
  9. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,140
    Wow....I hadn't really thought about this post in ages.

    https://developers.google.com/sheets/api/limits

    Best info I can see from a quick Google search.
     
    Joe-Censored likes this.