Skip to content

Commit

Permalink
updating readme push -> PushNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpatrick committed Apr 7, 2014
1 parent 3844bfc commit 2562995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ A full example can be found in Examples. To run it, copy the files:
// Set an alias, this lets you tie a device to a user in your system
// https://docs.urbanairship.com/display/DOCS/Server%3A+iOS+Push+API#ServeriOSPushAPI-Alias
PushNotification.setAlias("awesomeuser22", function () {
push.getAlias(function (alias) {
PushNotification.getAlias(function (alias) {
console.log("The user formerly known as " + alias)
});
});
Expand Down Expand Up @@ -288,7 +288,7 @@ On iOS, registration for push requires specifying what combination of badges, so
alerts are desired. This function must be explicitly called in order to begin the
registration process. For example:

push.registerForNotificationTypes(push.notificationType.sound | push.notificationType.alert)
PushNotification.registerForNotificationTypes(PushNotification.notificationType.sound | PushNotification.notificationType.alert)

*Available notification types:*

Expand All @@ -302,7 +302,7 @@ registration process. For example:

All status callbacks are passed a boolean indicating the result of the request:

push.isPushEnabled(function (has_push) {
PushNotification.isPushEnabled(function (has_push) {
if (has_push) {
$('#pushEnabled').prop("checked", true)
}
Expand Down Expand Up @@ -360,7 +360,7 @@ Indicates whether Quiet Time is currently in effect.

Get information about the push that caused the application to be launched. When a user clicks on a push to launch your app, this functions callback will be passed a Push object consisting of the alert message, and an object containing extra key/value pairs. Otherwise the incoming message and extras will be an empty string and an empty object, respectively.

push.getIncoming(function (incoming) {
PushNotification.getIncoming(function (incoming) {
if (incoming.message) {
alert("Incoming push message: " + incoming.message;
}
Expand Down

0 comments on commit 2562995

Please sign in to comment.