Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-09-2011, 12:59 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 32
dimo is on a distinguished road
Default my app update is always rejected

Hi together,

i hope you can help me. My app update is always rejected. The reason of apple is : "Your app crashed on both Wi-Fi and cellular networks upon launch."

But in Germany the app is running with no Problems . I have tested it on more than 10 Devices.

The only thing i have changed in the update is, that i have added an easy reporting.
But why is the reporting causing crashes in the use ?

Here is the code i have added :

Code:
- (void) insert_reporting
{
 
    NSNumber *n_AppID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"AppID"];
    NSNumber *n_platform_id = [NSNumber numberWithInt:1];
    
    NSString *appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
	NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
    

	UIDevice *dev = [UIDevice currentDevice];
	
	NSString *deviceModel = dev.model;
	NSString *deviceSystemVersion = dev.systemVersion;
	
	NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
	NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
	NSString *currentLanguage = [languages objectAtIndex:0];
	
	UIDeviceHardware *h=[[UIDeviceHardware alloc] init];
	NSString *deviceVersion = [h platformString];
	[h release];


  
    
    NSDate *today1 = [NSDate date];
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:@"dd.MM.yyyy HH:mm:ss Z"];
    NSString *dateString11 = [dateFormat stringFromDate:today1];
    
    

    NSArray *split = [dateString11 componentsSeparatedByString:@"+"];
    NSArray *split2 = [[split objectAtIndex:1] componentsSeparatedByString:@"0"];
    int i_hoursToAdd = [[split2 objectAtIndex:1] intValue];
    
    

    
    //get time from string
    NSTimeZone *gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
    NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init];
    [inputFormatter setDateFormat:@"dd.MM.yyyy HH:mm:ss Z"];
    [inputFormatter setTimeZone:gmt];
    [inputFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
    NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"de_DE"];
   [inputFormatter setLocale:locale];

    NSDate *formatterDate = [inputFormatter dateFromString:dateString11];
    
    
    formatterDate = [formatterDate dateByAddingTimeInterval:i_hoursToAdd*3600];
    
    
   NSTimeInterval ti = [formatterDate timeIntervalSince1970];                 

    NSNumber *n_date = [[NSNumber numberWithInt: ti] retain];
    

    
       
    
    NSString * functionName = @"insert_reporting";
    
    NSMutableDictionary* toJSON = [[NSMutableDictionary alloc] init];
    toJSON = [NSDictionary dictionaryWithObjectsAndKeys:
              n_AppID, @"appId",
              [AppState sharedInstance].s_apns_token, @"apns_token",
              [UIDevice currentDevice].uniqueIdentifier, @"uid",
              @"ios", @"uid_type",
              n_platform_id, @"platform_id",
              appName, @"app_name",
              appVersion, @"app_version",
              deviceModel, @"device_model",
              deviceSystemVersion, @"device_software_version",
              deviceVersion, @"device_hardware_version",
              currentLanguage, @"device_language",
               [AppState sharedInstance].n_dateTimeAktuallisiert, @"timestamp",
               n_date, @"currentTimestamp",
              nil];
 
    
    

    
    //Set Json and start Parser
    SBJsonWriter *writer = [SBJsonWriter new];
	[writer stringWithObject:toJSON];
	NSString* JSONBody = [writer stringWithObject:toJSON];
dimo is offline   Reply With Quote
Old 09-09-2011, 04:54 AM   #2 (permalink)
Registered Member
 
macoholic's Avatar
 
Join Date: Dec 2008
Location: around a Mac...in Pune,India :)
Posts: 137
macoholic is on a distinguished road
Default

Have you tested an App update i.e have you tried owerwriting the older build on your device and then test the updated version of your app ?

Hope this helps!!

Cheers,
macoholic!
macoholic is offline   Reply With Quote
Old 09-13-2011, 09:44 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 32
dimo is on a distinguished road
Default

Hi,

thanks but that have i testet.
dimo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 407
9 members and 398 guests
apatsufas, Eclectic, JackReidy, jeroenkeij, Sami Gh, tim0504, UMAD, yomo710, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,904
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:58 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0