motion-takeoff
A RubyMotion specific iOS gem that helps you do things at launch.
Currently, there is only one module in this gem: Messages. The Messages module will allow you to schedule alerts to users at certain launch counts. More modules are planned for the future.
This gem is in its infancy. Please help me make it better!
Installation
Add this line to your application's Gemfile:
gem 'motion-takeoff'
And run: bundle
Usage: Messages Module
Open your app delegate and in your applicationDidBecomeActive: method do something like this:
def applicationDidBecomeActive(application)
= MotionTakeoff::Messages.new
. launch:1, title:"Welcome to #{App.name}!", message:"Thanks for checking it out!"
. launch:3, title:"Quick Tip:", message:"This is the 3rd time you've launched this application!"
. launch:500, title:"Quick Tip:", message:"This is the 500th time you've launched this application!"
.takeoff
end
This will display an alert to the user on the 1st, 3rd, and 500th launches of the app.
Future plans
I'd like it to be able to be a multi-purpose tool for doing things at launch other than just alerting users. Things like asking for ratings in the iTunes store and scheduling other activities likes clearing caches on the 10th load or checking a server every load, etc.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request