iOS Devices Manager

Gem Version Build Status Dependency Status Code Climate

This package contains iOS Devices Manager, a library for getting your iOS device location and send them messages and sound notifications.

Installation

Manually from RubyGems.org

% gem install ios_devices_manager

Or if you are using Bundler or Rails

# Gemfile
gem 'ios_devices_manager'

Building your own gems

% rake build
% sudo gem install pkg/ios_devices_manager-x.y.z.gem

Usage

If you are working in Ruby only, require the gem

require 'ios_devices_manager'

To start, load a new manager

my_manager = IOSDevices::Manager.new(username, password)

To view your devices, call:

my_manager.devices

To send a message, use the following

my_device = my_manager.devices.first
my_manager.send(my_device, "Title test", "Message content test")

You can pass true as a fourth param to trigger a sound with the message

To send a sound, use the following

my_device = my_manager.devices.first
my_manager.play_sound(my_device, "Optional text with sound")

Latest changes

Take a look at the CHANGELOG for details about recent changes to the current version.

Questions?

Feel free to

Maintainer