README.md in ass-0.0.21 vs README.md in ass-0.0.24

- old
+ new

@@ -114,10 +114,13 @@ mode: development ## 'development' or 'production' mode, you should provide pem file ({appid}_{mode}.pem) accordingly(such as, app1_development.pem, app1_production.pem). cron: cron ## cron job file name, ASS server will generate a demo 'cron' file for demostration only under current directory. timer: 0 # how often you run the cron job, unit: minute. when set with 0, means no cron job execute. user: admin # admin username pass: pass # admin password + flood: 1 # request time from same ip every one minute as Flood Attack + pempass: pempass # pem password + loglevel: info # logger level apps: - app1 ## appid you want to supprt APNS, ASS Server can give push notification support for many iOS apps, just list the appid here. FAQ: @@ -154,17 +157,15 @@ }]; } - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { - if ([((AppDelegate *) [[UIApplication sharedApplication] delegate]) checkNetwork1]) { NSString *tokenAsString = [[[deviceToken description] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]] stringByReplacingOccurrencesOfString:@" " withString:@""]; NSLog(@"My token is: [%@]", tokenAsString); [self sendToken:tokenAsString]; - } } - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { @@ -208,9 +209,20 @@ ------- open your web browser and access http://localhost:4567/ (localhost should be changed to your server IP address accordingly), click "admin" on top navbar, you will see the Test Sending textbox on the top page, select your app , input your message and click 'send' button to send push notification. ![ass usage](https://raw.github.com/eiffelqiu/ass/master/doc/capture5.png) + +4. How to run ass in background? +------- + + $ nohup ass + +control + z to return to shell prompt + + $ bg + +now ass is running as a background service . Contributing to ass ======= * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.