Browse Source

Magic trick to prevent your ui thread to hang in some cases (modal windows while in background, ...)

Sebastián Katzer 12 years ago
parent
commit
68381d4132
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ios/APPLocalNotification.m

+ 1 - 1
src/ios/APPLocalNotification.m

@@ -148,7 +148,7 @@
 
     if (callbackFn.length > 0)
     {
-        NSString* jsCallBack = [NSString stringWithFormat:@"%@(%@)", callbackFn, id];
+        NSString* jsCallBack = [NSString stringWithFormat:@"setTimeout('%@(%@)',0)", callbackFn, id];
 
         [self writeJavascript:jsCallBack];
     }