Sfoglia il codice sorgente

1.前端唤起APP后抓取参数

huangxiaodong 1 anno fa
parent
commit
f1caa3ae3f

+ 2 - 1
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -427,7 +427,8 @@
     NSEnumerator *enumerator = [URLContexts objectEnumerator];
     UIOpenURLContext *context;
     while (context = [enumerator nextObject]) {
-        //NSLog(@"context.URL =====%@",context.URL);
+        NSLog(@"context.URL =====%@",context.URL);
+        //openprivacyxapp://page?param1=value1&param2=value2
         //NSLog(@"context.options.sourceApplication ===== %@",context.options.sourceApplication);
         [WXApi handleOpenURL:context.URL delegate:self];
     }