fix iOS Objective-C code

i have an app , uses push notification from my server , the app and push notification works great at my iPhone when testing but at apple side it crash at start up , after many testing i found this part of code (from push notification) is casing the app to crash at apple side: " this part have the issue"

Please Note: you have to fix this code only and send it back to me so i well test it not you, please if you can fix the following code apple to this job other than that don't wast my time or yours. thank you very much



NSLog(@"push dict-->%@",[launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey]);

NSMutableArray *array=[[NSMutableArray alloc] initWithArray:[[[[launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey] valueForKey:@"aps"] valueForKey:@"e"] componentsSeparatedByString:@"#ICZ#"]];

NSLog(@"array -->%@",array);

[array insertObject:[[[launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey] valueForKey:@"aps"] valueForKey:@"alert"] atIndex:3];

if([[array objectAtIndex:5] isEqualToString:@"1"])


breakingNews=[[NSDictionary alloc] initWithObjectsAndKeys:[array objectAtIndex:0],@"tag",[array objectAtIndex:1],@"date",[array objectAtIndex:2],@"link",[array objectAtIndex:3],@"message",[array objectAtIndex:4],@"title",[array objectAtIndex:5],@"type",[array objectAtIndex:6],@"ilink",[array objectAtIndex:7],@"ID", nil];

// shared preferances

NSUserDefaults* preferences = [NSUserDefaults standardUserDefaults];

//NSString *message = @"message";

// Store data in prefereances

[preferences setObject:[breakingNews objectForKey:@"message"] forKey:@"message"];

[preferences setObject:[breakingNews objectForKey:@"tag"] forKey:@"tag"];

[preferences setObject:[breakingNews objectForKey:@"date"] forKey:@"date"];

[preferences setObject:[breakingNews objectForKey:@"link"] forKey:@"link"];

[preferences setObject:[breakingNews objectForKey:@"title"] forKey:@"title"];

[preferences setObject:[breakingNews objectForKey:@"type"] forKey:@"type"];

[preferences setObject:[breakingNews objectForKey:@"ilink"] forKey:@"ilink"];

//[preferences setObject:[breakingNews objectForKey:@"type"] forKey:@"type"];


// Save to disk

[preferences synchronize];


else if([[array objectAtIndex:5] isEqualToString:@"3"])


[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[array objectAtIndex:2]]];




[DatabaseHandler insertIntoNEWS_MASTER:array];



Taidot: Sovelluskehittäjä, iOS Development, Mobile App Development, Mobiilisovellusten testaus

Näytä lisää: force crash ios app, vridge ios -bridge, windows bridge for ios swift, visual studio 2015 objective c, crashlytics force crash ios, objective c for windows 10, objective c visual studio, objective c windows ide, objective c, iPhone, iPad, Swift, iOS, android, iOS , iPhone , swift, objective c, mobile phone, iOS, objective c, swift, iOS,objective-c, swift, objective c, ios, xcode objective c swift ios iphone, objective c programming nuts and bolts source code, objective c ios freelancers, objective c for ios, joined on objective c xcode ios cocoa iphone android objectivec java developer dev programmer devops develop developing developm, cocoa objective c ios freelancers, c c++ c# a source code library for mac objective c applications

Tietoa työnantajasta:
( 0 arvostelua ) Ramallah, Palestinian Territory

Projektin tunnus: #15087267

Myönnetty käyttäjälle:


The issue is with your array. I can sort it out. You can test and then release the payment. Relevant Skills and Experience iPhone app development Proposed Milestones $17 USD - Only milestone I can do it ASAP

$17 USD 10 päivässä
(3 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Dear Client I am iOS Development Expert and have 6 years of Experience . Please contact so we can discuss in details the Issues in the App . Thank you . Relevant Skills and Experience ***Apple Latest IOS10 Featu Lisää

$100 USD 1 päivässä
(21 arvostelua)

lets discuss over chat Relevant Skills and Experience I checked your post for Mobile app development work Proposed Milestones $90 USD - project lets discuss

$17 USD 10 päivässä
(8 arvostelua)

Dear employer. Your requirements are all clear to understand. I have enough experience in this part. But I have some question about your project. So please reply as soon as possible. I promise you the high-quality resu Lisää

$68 USD 1 päivässä
(9 arvostelua)
$17 USD 10 päivässä
(0 arvostelua)