Latest 1.0.0
Homepage https://github.com/devalios/Push_StaticLibrary
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation, SystemConfiguration
Authors

CI Status
Version
License
Platform

Screenshot0

Usage

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

Requirements

Installation

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

pod "Push_StaticLibrary"

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

} 

Author

devalios, [email protected]

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

License

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

Latest podspec

{
    "name": "Push_StaticLibrary",
    "version": "1.0.0",
    "summary": "Push Services Library",
    "homepage": "https://github.com/devalios/Push_StaticLibrary",
    "license": "MIT",
    "authors": {
        "devalios": "[email protected]"
    },
    "source": {
        "git": "https://github.com/devalios/Push_StaticLibrary.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/*.h",
    "vendored_libraries": "Pod/*.a",
    "resource_bundles": {
        "Push_StaticLibrary": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "Foundation",
        "SystemConfiguration"
    ],
    "xcconfig": {
        "OTHER_LDFLAGS": "-ObjC"
    }
}

Pin It on Pinterest

Share This