This helloPush sample contains an Java server project that you can use to learn more about the IBM Cloud Push Notification Service.
- Prerequisites
- Create an instance of IBM Cloud Push Notifications Service
- setup the app
- Run the sample app
- Samples and videos
Before you start, make sure you have the following:
- A IBM Cloud account.
- Register devices for the push notifications.
- Create an instance of IBM Cloud Push Notifications Service and configure it .
- Run the
mvn install
to install the packages. - Add the service credentials in the following code,
// initialize with push service appSecret or apikey
PushNotifications.initWithApiKey("YOUR_APPLICATION_ID", "YOUR_APIKEY",
PushNotifications.US_SOUTH_REGION);
PushNotifications.init("YOUR_APPLICATION_ID", "YOUR_SECRET", PushNotifications.US_SOUTH_REGION);
To run the sample via terminal or any code editors
-
Please visit for samples - Github Sample
-
Video Tutorials Available here - IBM Cloud Push Notifications
=======================
Copyright 2019 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.