Due to upcoming changes by Google, to continue receiving analytics data for your native apps please setup a free Firebase account for your app. This change takes effect November 1, 2019. After that date, your app will not report analytics if it is not configured to use Firebase.
Preparation
- Log into the InstantEncore Control Panel.
- From the menu on the side, select Mobile > Developer Accounts. Scroll down to the Firebase Settings.
- At the top of this section are several pieces of information that you will need to complete this process:
- Project name
- Android Package name
- iOS Bundle ID
Create Firebase Account
- In another browser window or tab, go to https://console.firebase.google.com/ and sign in with a Google account. Create one if you do not have one already.
- Click "Create a project".
- Enter project name from above, check to accept the terms, and click "Continue".
- Make sure to enable Google Analytics. Click "Continue".
- Select a Google Analytics account you currently use, or create one if you don't already have one. Click "Create Project".
- Click "Continue" when the new project is ready.
Setup Android App
- Click the Android icon (to the right of the iOS icon) above the text "Add an app to get started".
- Enter the Android package name from above.
- Leave App nickname and Debug signing certificate empty.
- Click "Register app".
- Click "Download google-services.json" button. Save file on your computer. You will need it later.
- Click "Next".
- Click "Next" (you do not need to Add the Firebase SDK).
- Click "Continue to console".
Setup iOS App
- Click "Add app".
- Select the iOS icon.
- Enter the iOS bundle ID from above.
- Leave App nickname and App Store ID empty.
- Click "Register app".
- Click "Download GoogleService-Info.plist" button. Save file on your computer. You will need it later.
- Click "Next".
- Click "Next" (you do not need to Add the Firebase SDK).
- Click "Next" (you do not need to Add initialization code).
- Click "Continue to console".
Cloud Messaging API Key
Pictures for the steps below can be found here: How do I Update Android push notifications to use Firebase Cloud Messaging API?
- Click the Gear icon to the right of "Project Overview" in the menu on the left.
- Select "Project settings".
- Select the "Cloud Messaging" tab.
- Make sure that Firebase Cloud Messaging API (V1) is enabled.
- In the Firebase Cloud Messaging API section, select the "Manager Services Accounts" link. This will open in a new tab or window.
- Under the "Actions" column, click the 3 dots. Dropdown options will appear, select "Manage keys."
- Click Add Key and then Create new key.
- Choose JSON for the Key type and click Create. The file will be saved to your computer.
Save Values in Control Panel
- Go back to the Firebase Settings section of the InstantEncore Control Panel.
- Click file upload button for google-services.json and choose the file you downloaded earlier. The content of the file should appear in the text box.
- Click file upload button for googleService-Info.plist and choose the file you downloaded earlier. The content of the file should appear in the text box.
- Click file upload button for Cloud Messaging API Key and choose the file you downloaded earlier. The content of the file should appear in the text box.
- Click Update.
- InstantEncore will submit your app with the new Firebase setup. We will notify you when the app is available for users.
To view your app analytics using Firebase see How do I view my app analytics?