Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

max-berman/phonegap-push-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

AngularJS PhoneGap Push Notifications Service

Allows using the PushPlugin in PhoneGap apps built with AngularJS.

Provides a service for registering the device with the push notification server and listening for notifications.

Example

Register device:

new pgPushNotificationsFactory(
 '0123456789', // GCM Sender ID
 function registeredCallback (deviceToken, platform) {
 // Send `deviceToken` to your push server here
 // `platform` is either 'APNS' (iOS) or 'GCM' (Android)
 },
 function pushNotificationCallback (data, platform) {
 // Push message received
 }
);

Listen for push notifications:

$scope.$on('phonegapPush.notification', function (notification) {
 // Notification received:
 // `notification.data` raw notification data/payload
 // `notification.provider` either 'APNS' or 'GCM'
});

About

AngularJS module for using the PushPlugin in PhoneGap apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /