Creating push notifications to Huawei using Event Notifications
Event Notifications provides a push notification service for sending transactional and informational event notifications to Huawei mobile devices.
Creating a Huawei Push Destination
To create a Huawei Push destination, complete the following steps:
-
Log in to your IBM Cloud account.
-
If you already have an Event Notifications service instance, navigate to your Event Notifications service instance from the Resource list and select the required Event Notifications service instance. Otherwise, you can create a new Event Notifications service instance.
-
Click Destinations in the Event Notifications instance and click Create.
-
Enter the following destination details in the Create destination dialog:
- Name: add a name for the Destination.
- Description: add an optional description about the destination.
- Destination type: select Huawei Push Notifications from the list.
-
Select a destination plan. You can select a Pre-production destination for developing and testing your environments at a low cost. You can upgrade a Pre-production destination to Production destination after creating the destination by using the Edit option from the overflow menu after your development and testing. For more information, see Upgrading a Pre-production destination to Production destination. There will be a change in cost when you upgrade.
-
Retrieve Huawei credentials (Client ID and Client secret) for your application. For more information, see Retrieving Huawei credentials.
-
Add Client ID and Client secret.
-
Click Create destination.
Retrieving Huawei Credentials
To complete the Huawei Push Notification setup, you need a Client ID and Client secret. Obtain these from the Huawei AppGallery Connect portal.
-
Sign into the Huawei AppGallery Connect.
-
Click My projects. Select an existing project or click Add project to create one.
-
Click Add app if there are no applications in the project, or select the existing application.
-
Enable Push Kit to see the app details. For more information, see Enabling Push Kit.
-
Go to the App information section, where you can find OAuth 2.0 Client ID. Copy the Client ID and Client secret values into the respective fields.
Upgrading a Pre-production Destination to Production Destination
You can upgrade a Pre-production destination to Production destination after creating the destination by using the Edit option from the overflow menu.
To understand the billing impact of upgrading a Pre-production destination to Production destination, see Upgrading a pre-production destination to production.
To modify the destination:
- Select the pre-production destination from the list of destinations.
- Click Edit in the Options menu, which opens the editable view of the selected destination.
- Click the Production destination tile to change the destination.
- Click Save destination.
You cannot change a Production destination to Pre-production destination.