Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2026-01-14 00:00 | #250 | in_progress |
Clean
|
| 2026-01-13 00:00 | #246 | completed |
Clean
|
| 2026-01-11 00:00 | #240 | completed |
Clean
|
| 2026-01-10 00:00 | #237 | completed |
Clean
|
| 2026-01-09 00:34 | #234 | completed |
Clean
|
| 2026-01-08 00:53 | #231 | completed |
Clean
|
| 2026-01-06 18:15 | #225 | cancelled |
Clean
|
| 2025-08-17 00:01 | #83 | cancelled |
Clean
|
| 2025-07-13 21:37 | #48 | completed |
Biased
|
| 2025-07-12 23:44 | #41 | cancelled |
Biased
|
- (IBAction)LogInAction:(id)sender {
// create authentication header and set it in register client
NSString* username = self.UsernameField.text;
NSString* password = self.PasswordField.text;
[self createAndSetAuthenticationHeaderWithUsername:username AndPassword:password];
__weak ViewController* selfie = self;
[self.registerClient registerWithDeviceToken:self.deviceToken tags:nil
andCompletion:^(NSError* error) {
if (!error) {
dispatch_async(dispatch_get_main_queue(),
^{
selfie.SendNotificationButton.enabled = YES;
[self MessageBox:@"Success" message:@"Registered successfully!"];
});
}
}];
}
- (void)SendNotificationASPNETBackend:(NSString*)pns UsernameTag:(NSString*)usernameTag
Message:(NSString*)message
{
NSURLSession* session = [NSURLSession
sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] delegate:nil
delegateQueue:nil];
// Pass the pns and username tag as parameters with the REST URL to the ASP.NET backend
NSURL* requestURL = [NSURL URLWithString:[NSString
stringWithFormat:@"%@/api/notifications?pns=%@&to_tag=%@", BACKEND_ENDPOINT, pns,
usernameTag]];
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:requestURL];
[request setHTTPMethod:@"POST"];
// Get the mock authenticationheader from the register client
NSString* authorizationHeaderValue = [NSString stringWithFormat:@"Basic %@",
self.registerClient.authenticationHeader];
[request setValue:authorizationHeaderValue forHTTPHeaderField:@"Authorization"];
//Add the notification message body
[request setValue:@"application/json;charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[request setHTTPBody:[message dataUsingEncoding:NSUTF8StringEncoding]];
// Execute the send notification REST API on the ASP.NET Backend
NSURLSessionDataTask* dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error)
{
NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*) response;
if (error || httpResponse.statusCode != 200)
{
NSString* status = [NSString stringWithFormat:@"Error Status for %@: %d\nError: %@\n",
pns, httpResponse.statusCode, error];
dispatch_async(dispatch_get_main_queue(),
^{
// Append text because all 3 PNS calls may also have information to view
[self.sendResults setText:[self.sendResults.text stringByAppendingString:status]];
});
NSLog(status);
}
if (data != NULL)
{
xmlParser = [[NSXMLParser alloc] initWithData:data];
[xmlParser setDelegate:self];
[xmlParser parse];
}
}];
[dataTask resume];
}