FCM SETUP CONFIGURATION
2.1 Google Play Integrity
- Go to URL https://console.developers.google.com/
- Create a new Project and set name of you project.
-
- Choose ‘API’s & Services’ option from side bar.
- In API’s & Services > Dashboard > Choose ‘Enable APIS AND SERVICES’.
-
- This will redirect to ‘Library’ we need to search ‘Google Play Integrity API’.
-
- Click on Google Play Integrity API and enable it.
-
- If the application usage is high, the quota request form needs to be submitted. Please fill quota request form from below site. Also select below options.
https://support.google.com/googleplay/android-developer/contact/piaqr -
-
-
-
Quota request - Estimated peak queries per second -> Leave blank - To enable Play Integrity responses please follow below steps-
Go to Google Play Console->Side Menu->Setup->App Integrity -
- Click on Link project and then link your existing google cloud project. If it is not created then create new and link the same.
-
- Add project number in below property of app.properties
<string name="GOOGLE_CLOUD_PROJECT_NO">@@GOOGLE_CLOUD_PROJECT NO</string>
You will get the project number on google cloud console project. -
- Mention the time in seconds to which app can hit the play integrity api.
By default it is 300 seconds but you can configure as per the requirement. Please use below property in
RootCheckFlags.java(workspace_installer/zigbank/platforms/android/app/src/main/java/com/ofss/digx/mobile/android/)
long playIntegrityAPICallTime = your_time_in_seconds;
2.2 For Push Notifications
- Go o URL https://firebase.google.com/
- Traverse to console and create a project
- Download google-services.json from below page and save to (zigbank\platforms\android\app) directory.
- Remember to keep the projects package name and firebase package name same.
- Traverse to cloud messaging tab and note the server key. Add the key to OBDX table as shown below.
- If proxy address is to be used, provide the same in database as mentioned in point 3.
Sr. No. |
Table |
PROP_ID |
CATEGORY_ID |
PROP_VALUE |
Purpose |
1 |
DIGX_FW_CONFIG_ALL_B |
FCM |
DispatchDetails |
<Server_Key> |
Provides key for FCM noted earlier |
2 |
DIGX_FW_CONFIG_ALL_B |
FCMKeyStore |
DispatchDetails |
DATABASE or CONNECTOR |
Specifies whether to pick server key from database or from connector. Default DB (No change) |
3 |
DIGX_FW_CONFIG_ALL_B |
Proxy |
DispatchDetails |
<protocol,proxy_address> |
Provides proxy address, if any, to be provided while connecting to APNS server. Delete row if proxy not required. Example: HTTP,148.50.60.8 |
If CONNECTOR is selected in Step 2 update password as below