Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jun 23, 2021. It is now read-only.
/OrbiterPublic archive

Push Notification Registration for iOS

License

NotificationsYou must be signed in to change notification settings

mattt/Orbiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This project is no longer being maintained.

For most iOS client / server applications, push notifications are negotiated through an intermediary service provider, such asUrban Airship. The service provider exposes APIs to register a device token, as well as APIs to send push notifications to devices meeting some specified criteria.

Orbiter is a small library that provides simple interfaces to register (and unregister) for Push Notifications withUrban Airship (without needing to include their SDK), as well asHelios apps.

Orbiter is named for theorbital space craft of the Space Shuttle program, which houses the flight crew and electronics used to communicate with mission control.

This project is part of a series of open source libraries covering the mission-critical aspects of an iOS app's infrastructure. Be sure to check out its sister projects:GroundControl,SkyLab,CargoBay, andhouston.

Example Usage

Urban Airship Registration

- (void)application:(UIApplication *)applicationdidRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{    [[UrbanAirshipOrbiterurbanAirshipManagerWithApplicationKey:@"..."applicationSecret:@"..."]registerDeviceToken:deviceTokenwithAlias:nilsuccess:^(id responseObject) {NSLog(@"Registration Success:%@", responseObject);    }failure:^(NSError *error) {NSLog(@"Registration Error:%@", error);    }];}

Helios Registration

- (void)application:(UIApplication *)applicationdidRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{NSURL *serverURL = [NSURLURLWithString:@"http://raging-notification-3556.herokuapp.com/"];    Orbiter *orbiter = [[Orbiteralloc]initWithBaseURL:serverURLcredential:nil];    [orbiterregisterDeviceToken:deviceTokenwithAlias:nilsuccess:^(id responseObject) {NSLog(@"Registration Success:%@", responseObject);    }failure:^(NSError *error) {NSLog(@"Registration Error:%@", error);    }];}

License

Orbiter is available under the MIT license. See the LICENSE file for more info.

About

Push Notification Registration for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp