Latest 1.2.0
Homepage https://github.com/nmaletm/STNotificationHelper
License MIT
Platforms ios 6.0, requires ARC
Dependencies Masonry
Frameworks UIKit
Authors

Build Status
Version
License
Platform

Forked project from MHNotificationHelper, with support for iOS8 and above (the instructions are different) and translation to some languages.

Steps with iOS7
Steps with iOS8/iOS9

Steps with iOS7 (left), and steps with iOS8/iOS9 (right)

Language support

ca, de, en, es, fr, id, it, ja, pl, pt, ru, sv, zh-Hant, zh-Hans

If you want to contribute and translate to another language, make me a pull request or contacte me by Twitter / Email. I will answer asap.

Installation

Is very easy to add this library to your project using CocoaPods, you must add this line to your Podfile, and then make pod install.

pod 'STNotificationHelper'

Usage

First you have to include the library to your code:

#import <STNotificationHelperViewController.h>

And then add this code to show the view controller helper:

NSString *title = NSLocalizedString(@"Take advantage of MySuperApp", nil);
NSString *description = NSLocalizedString(@"MySuperApp is better with Push Notifications. We will spam you a lot! :)", nil);

STNotificationHelperObject *notificationObject = [STNotificationHelperObject objectWithTitle:title description:description];

STNotificationHelperViewController *notificationHelper = [STNotificationHelperViewController.alloc initWithNotification:notificationObject];

[self presentViewController:notificationHelper animated:YES completion:nil];

Or you can set your own app icon and app name:

NSString *title = NSLocalizedString(@"Take advantage of MySuperApp", nil);
NSString *description = NSLocalizedString(@"MySuperApp is better with Push Notifications. We will spam you a lot! :)", nil);

UIImage *icon = [UIImage imageNamed: @"myLogo.png"];
NSString *appName = @"My app name";

STNotificationHelperObject *notificationObject = [STNotificationHelperObject 
  objectWithTitle:title
      description:description
          appIcon:icon
          appName:appName];

STNotificationHelperViewController *notificationHelper = [STNotificationHelperViewController.alloc initWithNotification:notificationObject];

[self presentViewController:notificationHelper animated:YES completion:nil];

Authors

Translations

ChangeLog

You can see all the change log at ChangeLog.

License

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

Donating

Support this project via gittip.

Support via Gratipay

Latest podspec

{
    "name": "STNotificationHelper",
    "version": "1.2.0",
    "summary": "ViewController to describe the User how to turn on the Notifications on iOS7 and above.",
    "description": "ViewController to describe the User how to turn on the Notifications on iOS7 and above.nSupports languages ca, de, en, es, fr, id, it, ja, pl, pt, ru, sv, zh-Hant, zh-Hans.nOriganally a fork of MHNotificationHelper (https://github.com/mariohahn/MHNotificationHelper/), but with iOS8 and above support and more languages.",
    "homepage": "https://github.com/nmaletm/STNotificationHelper",
    "screenshots": [
        "https://raw.githubusercontent.com/nmaletm/STNotificationHelper/master/Screenshots/screenshote-ios7.png",
        "https://raw.githubusercontent.com/nmaletm/STNotificationHelper/master/Screenshots/screenshote-ios8.png"
    ],
    "license": "MIT",
    "authors": {
        "Nestor Malet": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nmaletm/STNotificationHelper.git",
        "tag": "1.2.0"
    },
    "social_media_url": "https://twitter.com/NestorMalet",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resources": "Pod/Assets/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "frameworks": "UIKit",
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This