New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-push

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-push

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Azure::Push

This is a very simple Azure notification-hub implementation for sending push notifications to Mobile Devices.

Installation

This gem is available on Rubygems: (https://rubygems.org/gems/azure-push)

Add this line to your application's Gemfile:

gem 'azure-push'

And then execute:

$ bundle

Or install it yourself as:

$ gem install azure-push

Usage

ap = Azure::Push::Message.new(namespace, hub, access_key)
ap.send({aps: {alert: message, sound: true}, 'my_tag')

The default Message format is 'apple'. Since v0.0.2 all available formats are supported.

Formats: 'apple', 'gcm', 'template', 'windows', 'windowsphone'

ap.send(xml_string, 'my_tag', format: 'windows')

You can also add additional headers:

ap.send(xml_string, 'my_tag', format: 'windows', additional_headers: {'X-Special-Windows-Header' => 'value'})

Contributing

  1. Fork it ( https://github.com/christian-s/azure-push/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Roadmap / Upcoming Features

  • Read & Delete Registrations / Tags
  • Create, Update Registrations
  • Notification Hub management

FAQs

Package last updated on 17 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc