dmuratshin 9 years ago
parent
commit
5f485eddf6

+ 6 - 1
examples/Demo/proj.ios/Demo/Demo_ios-Info.plist

@@ -13,7 +13,7 @@
 	<key>CFBundleIcons~ipad</key>
 	<key>CFBundleIcons~ipad</key>
 	<dict/>
 	<dict/>
 	<key>CFBundleIdentifier</key>
 	<key>CFBundleIdentifier</key>
-	<string>oxygine.${PRODUCT_NAME:rfc1034identifier}</string>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
 	<key>CFBundleInfoDictionaryVersion</key>
 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<string>6.0</string>
 	<key>CFBundleName</key>
 	<key>CFBundleName</key>
@@ -48,5 +48,10 @@
 	</array>
 	</array>
 	<key>UIViewControllerBasedStatusBarAppearance</key>
 	<key>UIViewControllerBasedStatusBarAppearance</key>
 	<false/>
 	<false/>
+    <key>NSAppTransportSecurity</key>
+    <dict>
+        <key>NSAllowsArbitraryLoads</key>
+        <true/>
+    </dict>
 </dict>
 </dict>
 </plist>
 </plist>

+ 5 - 0
oxygine/src/HttpRequestTask.cpp

@@ -106,4 +106,9 @@ namespace oxygine
     {
     {
         log::warning("http request error: %s", _url.c_str());
         log::warning("http request error: %s", _url.c_str());
     }
     }
+    
+    void HttpRequestTask::_onComplete()
+    {
+        log::messageln("http request done: %s", _url.c_str());
+    }
 }
 }

+ 1 - 0
oxygine/src/HttpRequestTask.h

@@ -55,6 +55,7 @@ namespace oxygine
     protected:
     protected:
         void _prerun();
         void _prerun();
         void _onError() OVERRIDE;
         void _onError() OVERRIDE;
+        void _onComplete() OVERRIDE;
 
 
         //async
         //async
         void progress(int loaded, int total);
         void progress(int loaded, int total);