Ricardo
Ricardo

Reputation: 699

Get App Id before publish them?

How do I get the App Id before publish them ? the id will be used in rate button?

Please find the below code:

public void RateGame(){
     #if UNITY_ANDROID
         Application.OpenURL("market://details?id=APP_ID");
     #elif UNITY_IPHONE
         Application.OpenURL("itms-apps://itunes.apple.com/app/idAPP_ID");
     #endif
  }

the real App Id will be inserted on APP_ID

Upvotes: 0

Views: 82

Answers (1)

Fabian Boulegue
Fabian Boulegue

Reputation: 6608

For iOS:

You can find the AppID once you create your Project in iTunes Connect, you find this on the first page.

enter image description here
(source: apple.com)

So you can change your code and then upload the app.

Upvotes: 1

Related Questions