question

Jimmie-8918 avatar image
0 Votes"
Jimmie-8918 asked Jimmie-8918 answered

VS and Xamarin: Publishing to Google Play, code secret not created

I'm new to app development. I have an app created with Visual Studio 2019 and Xamarin for both iOS and Andorid. Now I'm trying to publish the app to Google Play and I'm currently stuck at one point in Visual Studio. I have Google Play account.
In Visual Studio I select the distribute option for the archive and then "Google Play" (instead of Ad Hoc). In the step "Google Play Account" I'm asked to register Google API Access with Client Id and Client Secret. I followed the instructions and created the OAuth Client in the Google Play Console / Google Cloud Platform. As application type I choosed "Android", as I'm publishing an Android app. The client ID is generated, but there is no client secret and VS requires one. Even in the downloaded JSON file there is no client secert. The MS article publishing-to-google-play is from 2018 and is not uptodate. So how to get the client secret in order to publish my app to Google Play?


dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Jimmie-8918 avatar image
1 Vote"
Jimmie-8918 answered

I created a new OAuth Client ID with application type "Desktop app" and then I got both Client ID and Client Secret. Now the OAuth-Connection between VS and Google Play seems to work fine, but because this is my first app, I have to first upload the apk file manually. Then I will be able to use the automatic distribution of VS.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.