简体   繁体   English

阻止从URL方案加载应用程序时显示启动屏幕-iOS

[英]Prevent the LaunchScreen to show when App loads from the URL Scheme - iOS

1) I am invoking the App via URL Scheme (AppName:// ), it loads but it first Displays the Launch Screen (sliding in from right to left) first, then displays the specific view. 1)我通过URL方案(AppName://)调用该应用程序,它已加载,但首先显示启动屏幕(从右向左滑动),然后显示特定视图。

2) If I invoke it via Universal Link (https:// ), the App loads but DOES NOT display the Launch Screen, simply shows the specific view. 2)如果我通过通用链接(https://)调用它,则该应用会加载,但不会显示启动屏幕,只会显示特定视图。 Which is good and exactly the behaviour what I want. 哪个好,正是我想要的行为。

so can I prevent the Launch Screen to show up when it loads app from the URL Scheme in case (1) 所以我可以防止在情况(1)中从URL方案加载应用程序时启动屏幕出现的情况

If the app is closed (ie terminated, fully closed, not in memory) then whenever the app launches (from any type of URL) the Launch Screen will always be displayed before the app opens. 如果该应用程序已关闭(即终止,完全关闭,不在内存中),则无论何时启动该应用程序(从任何类型的URL),始终会在该应用程序打开之前显示Launch Screen

Make sure you are launching each time from a fully terminated app. 确保每次都是从完全终止的应用程序启动。 You should see that it behaves in the same way each time. 您应该看到它的每次行为都相同。

If you are using the Launch Screen properly then this will make it look like the app is opening very quickly and give the user an impression of very fast app performance. 如果您正确地使用了启动屏幕,那么这将使它看起来像应用程序打开得非常快,并给用户留下了非常快的应用程序性能印象。

If you are using the Launch Screen as a way to display some sort of branding or splash screen then it will also show. 如果您使用“启动屏幕”作为显示某种品牌或启动屏幕的一种方式,则该屏幕也会显示。 Except now as a user you get the impression of an app that has some sort of loading screen. 除了现在作为用户外,您会得到具有某种加载屏幕的应用程序的印象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM