Note that there are some explanatory texts on larger screens.

plurals
  1. POiphone voip application exit code
    primarykey
    data
    text
    <p>I'm implementing a voip application but I'm having a small problem with autorestart: - the app is automatically started when the device is turned on BUT: - the app does not restart after the user kills it from the bottom bar.</p> <p>Am I doing something wrong, or is there any way to force it to autorestart ? Or maybe a way to set the exit code ?</p> <p>Thanks.</p> <p>'code'</p> <pre><code>[window addSubview:mainViewController.view]; [window makeKeyAndVisible]; g_mainApp = self; _site = false; [StoreManager sharedManager]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handlePayment:) name: kProductFetchedNotification object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handlePayment:) name: kInAppPurchaseManagerBuyNotification object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handlePayment:) name: kInAppPurchaseManagerTransactionFailedNotification object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handlePayment:) name: kInAppPurchaseManagerTransactionSucceededNotification object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handlePayment:) name: kInAppPurchaseManagerTransactionCanceledNotification object: nil]; [mainViewController FirstInit]; int cnt = 0; while (cnt &lt; 140) { if ([mainViewController GetConnex] != 0) break; [mainViewController Update]; [NSThread sleepForTimeInterval:0.1]; cnt++; } return YES; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload