gilbertlau
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Private Content Plus] Plugin not working after installing wooCommercecan I have your email? thx
Your site require a VAT# which I do not have. How can I proceed my order?
Great. It works using curl. So I am sure I will buy the IOS lib from you. Your work worth the money!
But seriously, please talk me into your premium ver.
I wonder if the following can be done.
1. I would like to let users to subscribes to different categories of notification. i.e. users only got notified when a new post is posted on the categories he subscribed to.
2. Do you have a page in setting so that admin can send notifications to users.
3. can users divided into groups?
4. do you have sample PHP codes, so that I can incorporate into my pages to send notifications?$ curl https://massoc.club/pnfw/regiter/ –data “os=iOS&token=cb04b09d067462d79d16380d20d8403d1b6a9bd690f454bb446346ff0759bc88″0x000000012cdd49a0”
>I got this. Is it ok?
Sure I can consider using your IOS library. But without a trial, I wonder if it will works on my App. I am using the following code. Can you let me know what’s wrong
NSString *token = [[[[deviceToken description]
stringByReplacingOccurrencesOfString: @”<” withString: @””]
stringByReplacingOccurrencesOfString: @”>” withString: @””]
stringByReplacingOccurrencesOfString: @” ” withString: @””];
NSString *postString = @”[email protected]&os=iOS&token=”;
postString = [postString stringByAppendingString:token];
NSData *postData = [postString dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:true];
NSString *postLength = [NSString stringWithFormat:@”%d”, [postData length]];NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setURL:[NSURL URLWithString:@”https://myweb.com/pnfw/register/”%5D%5D;
[request setHTTPMethod:@”POST”];
//[request setValue:postLength forHTTPHeaderField:@”Content-Length”];
[request setValue:@”application/x-www-form-urlencoded” forHTTPHeaderField:@”Content-Type”];
[request setHTTPBody:postData];NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *postDataTask= [session dataTaskWithRequest: request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response;
int statusCode = (int)[httpResponse statusCode];
statusCode = statusCode;
}];
[postDataTask resume];i got the same 401 issue. when I post to register api. I have disabled the OAuth. In log, it complains invalid http method. Can you give an example on the method?