ShakeCrash 0.1.0

ShakeCrash 0.1.0

LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by Dominik Majda.

  • By
  • Dominik Majda


ShakeCrash is great way to involve you testers in deep in-app reporting. It’s idea was taken from Google Maps, just shake your iPhone to submit screenshot with description via e-mail or Redmine!


To run the example project, clone the repo, and run pod install from the Example directory first.


ShakeCrash is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ShakeCrash"

Configure ShakeCrash

You have two possibilities - you can send report directly to your Redmine project issues or send it to desired e-mail address. There is no way to use both at once. I would recommend to configure it in your AppDelegate. First, import ShakeCrash:

import ShakeCrash

Configure Redmine

You need to enable REST API in you Redmine and obtain your API key. Also you will need project id. You should be able to find all of them in your Redmine, in case of trouble I send you to Google.

let shakeReporterSettings = ShakeCrash.sharedInstance

let redmineReporter = RedmineFeedbackReporter(
redmineAddress: "<REDMINE_URL>",
apiToken: "<API_KEY>",
projectId: "<PROJECT_ID>")

shakeReporterSettings.delegate = redmineReporter

Correct URL has format http(s):// It is very important, that your Redmine version is >1.4.

Configure e-mail

There are no special requirments in order to send e-mail, just configure it.

let shakeReporterSettings = ShakeCrash.sharedInstance

let mailReporter = MailFeedbackReporter(reportEmail: "[email protected]")

shakeReporterSettings.delegate = mailReporter

Configure user name

It would be very useful if you could know your tester’s name. There is the way you can ask your user to enter his name and it will only trigger once. Just paste line below in your viewDidLoad in UIViewController you want your user to enter his name.


If you don’t do it, the first time user will make shake gesture ShakeCrash will ask for name. But it is up to you to inform user that there is shake gesture in app.

I highly recommend to use it in first view controller in your app. If you encountered some issues while calling this method make sure there are no problems with view controller’s stack, because all views in ShakeCrash are called to present modally.


Dominik Majda, [email protected]


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