Giter Club home page Giter Club logo

push-ios-samples's Introduction

Pivotal Mobile Services Suite Push SDK Sample for iOS

The Push SDK requires iOS 6.0 or greater.

Push SDK Usage

For more information please visit the docs site

Device Requirements

The device must be registered on a developer profile which includes push notifications for the app bundle id.

Sample Application

This application has a visible UI that can be used to demonstrate and exercise the features of the Push SDK.

You can use this sample application to test registration against the Apple Push Notification Service (APNS) and the Pivotal Mobile Services Suite back-end server for push messages. Although not currently supported by the library itself, you can also send and receive push messages with the sample application.

Before running this application you will need to create your own certificate, provisioning profile, and application on the Apple Developer iOS Member Center.

Watch the log output in the sample application's display to see what the Push library is doing in the background. This log output should also be visible in the iOS device console (for debug builds), but the sample application registers a "listener" with the Push Library's logger so it can show you what's going on.

On launch, the sample application will ask the Push Library to register the device. If the device is not already registered, then you should see a lot of output scroll by as the library registers with both APNS and Pivotal MSS Push Server. If the device is already registered then the output should be shorter.

You can clear the locally saved registration data with the "Clear Current Registration" button on the Settings screen. Clearing the registration data will force a full registration the next time that you press the "Register" button.

You can copy the contents of the log to the device clipboard by pressing the "Copy" button on the toolbar. This feature can be useful if you want to email someone a device log, copy some of the JSON from a log message, or get one of the device tokens, for example.

You can change the registration preferences at run-time by pressing the "Settings" tool bar button. Selecting this item will load the Settings screen. This screen will allow you to modify the three values passed to the library initialization method above. You can change the hard coded values by editing the definitions in the Settings.m file in the Sample application.

You can reset the registration preferences to the default values by selecting the "Reset to Defaults" action bar item in the Settings screen.

The sample application (not the library) is also set up to receive push messages once the device has been registered with APNS and PCF. Although the library does not support receiving push messages at this time (since the Apple framework already provides very straightforward example code that you can copy into your application), the sample application does as a demonstration to show that the "system works". It can be useful for testing your registration set up, or for testing the server itself.

push-ios-samples's People

Contributors

pivotal-ahirji avatar xtreme-jesse-malone avatar adrian-kemp avatar

Watchers

James Cloos avatar Nishtha Agarwal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.