This helloPush sample contains an server-side Swift 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
swift build
to install the packages. - Add the service credentials in the following code,
// MARK: Initialize PushNotifications with apiKey
let myPushNotifications = PushNotifications(pushApiKey:"your-push-service-apikey", pushAppGuid: "your-push-service-guid", pushRegion: PushNotifications.Region.US_SOUTH)
// MARK: Initialize PushNotifications with appsecret
let myPushNotifications = PushNotifications(pushRegion: PushNotifications.Region.US_SOUTH, pushAppGuid: "your-push-service-guid", pushAppSecret: "your-push-service-appSecret")
Open Xcode project and run.
-
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.