C Setting the GCM API key within the OAM Credential Store
Note:
- Google is deprecating Legacy FCM API's in June 2024 and migrating to HTTP v1 API's. For all new configurations it is recommended to use HTTP v1 API's.
- The steps to migrate to HTTP v1 API's can be found in Migrating to service account JSON for Android Push Notifications.
The server key from the Google project needs to be saved within the OAM credential store so that OAM can use it along with the sender ID to make a connection to the GCM servers.
Create a new key using WLST as described:
- Navigate to the
$MW_HOME/oracle_common/common/bin
directory and runwlst.sh
command to connect to the AdminServer. - Run the following command to create a new key called
omaApiKey
, where the password value is the server key from the Google project created.createCred(map="OAM_CONFIG", key="omaApiKey", user="omaApiKey", password="<API KEY VALUE>")
Note:
If theomaApiKey
credential already exists then you can edited the key from within the EM console.- Navigate to
Farm_base_domain/WebLogic Domain/<domain name>
- Right-click and select Security/Credentials.
- Expand the
OAM_CONFIG
key and click on the omaApiKey to edit it with a new value
- Navigate to