|
|
|
|
Push notification: Android configuration (Firebase)
From WINDEV Mobile 22 Update 1 (version 220052), the Push notifications in Android are using the Firebase platform (instead of Google Cloud Messaging). To use the Firebase platform, you must have a Google account and you must perform a specific configuration. This help page presents the different operations to perform. The different steps are as follows: 1. Creating a Firebase project Remark: You also have the ability to import a Google API Project (used to send push notifications by GCM) from this console. 2. Adding Firebase to the Android application - Click the "Add Firebase to your Android application" button.
- Fill the package name of the application with the one defined in the Android generation wizard.
- Click "Register app".
- The next step is to download the "google-services.json" file..
- Click "Next" and then "Go to console".
3. Download the "google-services.json" file.
If you haven't downloaded the "google-services.json" file previously: - Go to the application settings:
- In the Android application section, download the "google-services.json" file.
This file must be provided in the application generation wizard:  4. Retrieve the data required by NotifPushSend. There are two types of Cloud Messaging APIs: - Firebase Cloud Messaging API (V1): This API is used by default for new projects.
- Cloud Messaging API (Legacy): This API is disabled by default on new projects.
Until version 28, only Cloud Messaging API (Legacy) was supported. To use the legacy Cloud Messaging API: - Click the "Cloud Messaging" tab.
- If necessary, enable Cloud Messaging API (Legacy) in the Firebase project settings.
- Copy the identifier of server key.
This key number must be given as parameter to NotifPushSend.
To use Firebase Cloud Messaging API (V1): - Click the "Cloud Messaging" tab.
- If necessary, enable Firebase Cloud Messaging API (V1) in the Firebase project settings.
- Go to the "Service accounts" tab and then click "Generate new private key".
- Confirm the warning message and click "Generate key".
- A JSON file is downloaded to the current computer. Pass the content of this JSON file to NotifPushSend. You can use fLoadText to get the content of the JSON file, for example.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|