소스 검색

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

Sebastián Katzer 12 년 전
부모
커밋
68381d4132
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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];
     }