Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't download GoogleService-Info.plist file

I'm trying to setup Google Analytics for my new iOS app, when following the instructions here.

It instructs me to click the "Get A Configuration File" button, but that button just sends me to another page that has a spinning, nothing ever happens. I already have a property setup in Analytics for web and a view setup for mobile.

Can anyone share the GoogleService-Info.plist file with me so I can attempt to manually fill in the details of the file and add it to my project?

like image 342
LeviXC Avatar asked Dec 17 '15 13:12

LeviXC


4 Answers

It happened with me also. If you close everything and follow that link it worked for me next time. You can try to do that. Below is the link of sample plist file, of course I replaced tracking id, bundle id and app id to strings from original values. Hope it helps.

Sample Google Plist file

like image 50
sanjana Avatar answered Oct 21 '22 20:10

sanjana


Steps for getting configuration if your first time login to google developer account.

1. Open google developer console.
2. Login to developer console.
3. Create project with valid name.
4. Enable google analytics. 
5. Then get the configuration file.
like image 26
Rohit Pradhan Avatar answered Oct 21 '22 20:10

Rohit Pradhan


Generally in iOS

1) Create your project in Firebase console https://console.firebase.google.com

enter image description here

Click add project and follow steps.

2) Now open this link to get GoogleService-Info.plist file

https://developers.google.com/mobile/add

-->Click Get Started

enter image description here

-->Select your project Ex: CloudFirestoreSwift

--> Now select domain Ex: iOS

enter image description here

-->Now add app bundle id then GoogleService-Info.plist file will be generate, download it and complete the steps if required.

NOTE: Please don't change file name. It's must be GoogleService-Info.plist

enter image description here

If you already generated GoogleService-Info.plist file. Now select your project and go project settings.

enter image description here

--> Go General tab, you can find GoogleService-Info.plist file here download it.

enter image description here

like image 4
Naresh Avatar answered Oct 21 '22 20:10

Naresh


The download link is not always immediately visible and you have to scroll up to get it, I happen to press next before downloading and I missed the opportunity to download the file.

I prefer the automatically generated file as I am lazy (aren't we all)

So, follow these steps

  1. Go to https://developers.google.com/analytics/devguides/collection/ios/v3/
  2. Scroll down to Get a configuration file
  3. When prompted for the app name and bundle Id, just use the drop down menu and you'll find your previously created app details there.
  4. Proceed to the next screen Continue to: Choose and Configure Services
  5. Select your service, note that your previously selected ones will have a green arrow (Analytics in the case below) Select & configure services

  6. Select Generate configuration file

  7. You'll be given an opportunity to download the file again.

Download and install configuration file

Voila!

like image 3
Edwin Avatar answered Oct 21 '22 19:10

Edwin