Latest 2.1.1
Homepage https://github.com/appsyscode/PushServicesLibrary
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform
language

You need to register on the website before.

Read notification output in JSON output

2016-03-03 08:04:12.590 Push_Services[3355:596199] key: aps, value: {
alert = "Test Load ";
badge = 1;
sound = "custom.caf";
}
2016-03-03 08:04:12.591 Push_Services[3355:596199] key: custom, value: {
Channel = all;
url = "https://www.cocoacontrols.com/controls/push_services_framework_example";
}
2016-03-03 08:04:12.591 Push_Services[3355:596199] Log url:https://www.cocoacontrols.com/controls/push_services_framework_example

Usage

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

Requirements

Installation

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

pod "PushServicesLibrary"

Project setting add:

Other Linker Flags : -ObjC and -all_load

1,

#import "Push_services_Library.h" //add

2,

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.

if ([application respondsToSelector:@selector(registerUserNotificationSettings:)])
{
UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound);
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];
}
else
{
// Register for Push Notifications, if running iOS version < 8 
[application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)];
}

[[Php phpManager]webconnect]; //add

return YES;
}

3,

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken

{

[[Php phpManager]registerdevice:@"Username" :deviceToken :@"QWxiaWRiU2VydmljZVB1c2g="]; //add

} 

https://push.appsyscode.com/document-help-2.php

Author

App System Code, [email protected]

License

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

Latest podspec

{
    "name": "PushServicesLibrary",
    "version": "2.1.1",
    "summary": "Push Services Library",
    "description": "Installing iOS Push Services - push.appsyscode.com",
    "homepage": "https://github.com/appsyscode/PushServicesLibrary",
    "license": "MIT",
    "authors": {
        "appsyscode": "[email protected]"
    },
    "source": {
        "git": "https://github.com/appsyscode/PushServicesLibrary.git",
        "tag": "2.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*.h",
    "vendored_libraries": "Pod/Classes/*.a",
    "xcconfig": {
        "OTHER_LDFLAGS": "-ObjC"
    }
}

Pin It on Pinterest

Share This