function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jthor@entransform.comjthor@entransform.com 

TestFlight and Hybrid App

Hi,

   So I am using the mobileSDK for the iPhone and has been able to make a working app. Now that I am ready for testing I am planning on using testflight for beta testing. The problem is that once I get test flight to start I do not know how to get back to the the app and it is stuck at a black screen. It did ot crash , the app is still running. I do see the blue salesforce screen first before the test flight sdk is loaded in and the black sccreen appears.

 

In my AppDeleagte.m look like this.

 

#import "AppDelegate.h"
#import "TestFlight.h"
@implementation AppDelegate

-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // start of your application:didFinishLaunchingWithOptions // ...
    [TestFlight takeOff:@"7147b222-57d0-4426-8e96-ae468f8d0799"];
    // The rest of your application:didFinishLaunchingWithOptions method// ...
    return TRUE;
}

#pragma mark - App lifecycle


@end

 Thnx for any help

Best Answer chosen by Admin (Salesforce Developers) 
Kevin HawkinsKevin Hawkins

Presuming that you're building off of a stock Mobile SDK container app, your parent app delegate has logic that needs to run as well.  Change:

 

return TRUE;

 To:

 

return [super application:application didFinishLaunchingWithOptions:launchOptions];

 

All Answers

Kevin HawkinsKevin Hawkins

Presuming that you're building off of a stock Mobile SDK container app, your parent app delegate has logic that needs to run as well.  Change:

 

return TRUE;

 To:

 

return [super application:application didFinishLaunchingWithOptions:launchOptions];

 

This was selected as the best answer
jthor@entransform.comjthor@entransform.com

AWESOME!!! Thank you. How did you know that?

Kevin HawkinsKevin Hawkins

I kind of wrote it. :)

 

Glad that it sounds like that got you unblocked.