Skip to content

ibm-bluemix-push-notifications/HelloPush-Swift-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift server helloPush Sample Application for IBM Cloud Push Notifications Service

This helloPush sample contains an server-side Swift project that you can use to learn more about the IBM Cloud Push Notification Service.

Contents

Prerequisites

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

  • Create an instance of IBM Cloud Push Notifications Service and configure it .

setup the app

  1. Run the swift build to install the packages.
  2. 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")

Run the sample app

Open Xcode project and run.

Samples and videos

=======================

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.

About

Swift server helloPush Sample Application for IBM Cloud Push Notifications Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages