Is there a way to not open the splash screen/app when launching a shortcut action in iOS?How to develop or migrate apps for iPhone 5 screen resolution?How to launch the app that launched my appPrevent UIAlertController to dismissUIImageView missing images in Launch Screen on deviceUIApplication shortcut with custom launch screenHow do we identify if app is launched via app banners?Update or reload UITableView after completion of delete action on detail viewHow to show a specific VC , more like navigate to a stack of VCCore Data attempt to recursively call -savefacing problem with 'automaticallyMergesChangesFromParent' in parent-child context in coredata?

Review your own paper in Mathematics

What exact color does ozone gas have?

Pre-mixing cryogenic fuels and using only one fuel tank

Temporarily disable WLAN internet access for children, but allow it for adults

How to rewrite equation of hyperbola in standard form

Open a doc from terminal, but not by its name

Hero deduces identity of a killer

The IT department bottlenecks progress. How should I handle this?

How to hide some fields of struct in C?

Do the primes contain an infinite almost arithmetic progression?

Why does a simple loop result in ASYNC_NETWORK_IO waits?

Why can Carol Danvers change her suit colours in the first place?

Why is so much work done on numerical verification of the Riemann Hypothesis?

Why would a new[] expression ever invoke a destructor?

Has any country ever had 2 former presidents in jail simultaneously?

What is going on with 'gets(stdin)' on the site coderbyte?

Plot of a tornado-shaped surface

Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset

Unexpected behavior of the procedure `Area` on the object 'Polygon'

Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?

How does the math work for Perception checks?

putting logo on same line but after title, latex

Does IPv6 have similar concept of network mask?

Is this toilet slogan correct usage of the English language?



Is there a way to not open the splash screen/app when launching a shortcut action in iOS?


How to develop or migrate apps for iPhone 5 screen resolution?How to launch the app that launched my appPrevent UIAlertController to dismissUIImageView missing images in Launch Screen on deviceUIApplication shortcut with custom launch screenHow do we identify if app is launched via app banners?Update or reload UITableView after completion of delete action on detail viewHow to show a specific VC , more like navigate to a stack of VCCore Data attempt to recursively call -savefacing problem with 'automaticallyMergesChangesFromParent' in parent-child context in coredata?













1















func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
completionHandler: @escaping (Bool) -> Void) {
if shortcutItem.type == "com.xyz.test.tests.firstAction" {
if let url = URL(string: "https://www.google.com/")
DispatchQueue.main.async
UIApplication.shared.openURL(url)

print("(shortcutItem) was tapped")



Here is the code i'm trying to execute. Is there a way to dismiss the application once the action is executed? If not i'm guessing it's required for context.










share|improve this question


























    1















    func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
    completionHandler: @escaping (Bool) -> Void) {
    if shortcutItem.type == "com.xyz.test.tests.firstAction" {
    if let url = URL(string: "https://www.google.com/")
    DispatchQueue.main.async
    UIApplication.shared.openURL(url)

    print("(shortcutItem) was tapped")



    Here is the code i'm trying to execute. Is there a way to dismiss the application once the action is executed? If not i'm guessing it's required for context.










    share|improve this question
























      1












      1








      1








      func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
      completionHandler: @escaping (Bool) -> Void) {
      if shortcutItem.type == "com.xyz.test.tests.firstAction" {
      if let url = URL(string: "https://www.google.com/")
      DispatchQueue.main.async
      UIApplication.shared.openURL(url)

      print("(shortcutItem) was tapped")



      Here is the code i'm trying to execute. Is there a way to dismiss the application once the action is executed? If not i'm guessing it's required for context.










      share|improve this question














      func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
      completionHandler: @escaping (Bool) -> Void) {
      if shortcutItem.type == "com.xyz.test.tests.firstAction" {
      if let url = URL(string: "https://www.google.com/")
      DispatchQueue.main.async
      UIApplication.shared.openURL(url)

      print("(shortcutItem) was tapped")



      Here is the code i'm trying to execute. Is there a way to dismiss the application once the action is executed? If not i'm guessing it's required for context.







      ios swift appdelegate uiapplication uiapplicationshortcutitem






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      praza24praza24

      233




      233






















          1 Answer
          1






          active

          oldest

          votes


















          0














          try exit(0), but you can't publish it



          Apple Review:




          We found that your app includes a UI control for quitting the app.
          This is not in compliance with the iOS Human Interface Guidelines, as
          required by the App Store Review Guidelines.



          Please refer to the attached screenshot/s for reference.



          The iOS Human Interface Guidelines specify,



          "Always Be Prepared to Stop iOS applications stop when people press
          the Home button to open a different application or use a device
          feature, such as the phone. In particular, people don’t tap an
          application close button or select Quit from a menu. To provide a good
          stopping experience, an iOS application should:



          Save user data as soon as possible and as often as reasonable because
          an exit or terminate notification can arrive at any time.



          Save the current state when stopping, at the finest level of detail
          possible so that people don’t lose their context when they start the
          application again. For example, if your app displays scrolling data,
          save the current scroll position."




          It would be appropriate to remove any mechanisms for quitting your app.








          share|improve this answer























          • Thanks this worked for testing, need figure out an alternative to this.

            – praza24
            yesterday











          • @praza24 what do you mean on alternative?

            – Erumaru
            20 hours ago











          • I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

            – praza24
            8 hours ago











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55280625%2fis-there-a-way-to-not-open-the-splash-screen-app-when-launching-a-shortcut-actio%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          try exit(0), but you can't publish it



          Apple Review:




          We found that your app includes a UI control for quitting the app.
          This is not in compliance with the iOS Human Interface Guidelines, as
          required by the App Store Review Guidelines.



          Please refer to the attached screenshot/s for reference.



          The iOS Human Interface Guidelines specify,



          "Always Be Prepared to Stop iOS applications stop when people press
          the Home button to open a different application or use a device
          feature, such as the phone. In particular, people don’t tap an
          application close button or select Quit from a menu. To provide a good
          stopping experience, an iOS application should:



          Save user data as soon as possible and as often as reasonable because
          an exit or terminate notification can arrive at any time.



          Save the current state when stopping, at the finest level of detail
          possible so that people don’t lose their context when they start the
          application again. For example, if your app displays scrolling data,
          save the current scroll position."




          It would be appropriate to remove any mechanisms for quitting your app.








          share|improve this answer























          • Thanks this worked for testing, need figure out an alternative to this.

            – praza24
            yesterday











          • @praza24 what do you mean on alternative?

            – Erumaru
            20 hours ago











          • I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

            – praza24
            8 hours ago
















          0














          try exit(0), but you can't publish it



          Apple Review:




          We found that your app includes a UI control for quitting the app.
          This is not in compliance with the iOS Human Interface Guidelines, as
          required by the App Store Review Guidelines.



          Please refer to the attached screenshot/s for reference.



          The iOS Human Interface Guidelines specify,



          "Always Be Prepared to Stop iOS applications stop when people press
          the Home button to open a different application or use a device
          feature, such as the phone. In particular, people don’t tap an
          application close button or select Quit from a menu. To provide a good
          stopping experience, an iOS application should:



          Save user data as soon as possible and as often as reasonable because
          an exit or terminate notification can arrive at any time.



          Save the current state when stopping, at the finest level of detail
          possible so that people don’t lose their context when they start the
          application again. For example, if your app displays scrolling data,
          save the current scroll position."




          It would be appropriate to remove any mechanisms for quitting your app.








          share|improve this answer























          • Thanks this worked for testing, need figure out an alternative to this.

            – praza24
            yesterday











          • @praza24 what do you mean on alternative?

            – Erumaru
            20 hours ago











          • I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

            – praza24
            8 hours ago














          0












          0








          0







          try exit(0), but you can't publish it



          Apple Review:




          We found that your app includes a UI control for quitting the app.
          This is not in compliance with the iOS Human Interface Guidelines, as
          required by the App Store Review Guidelines.



          Please refer to the attached screenshot/s for reference.



          The iOS Human Interface Guidelines specify,



          "Always Be Prepared to Stop iOS applications stop when people press
          the Home button to open a different application or use a device
          feature, such as the phone. In particular, people don’t tap an
          application close button or select Quit from a menu. To provide a good
          stopping experience, an iOS application should:



          Save user data as soon as possible and as often as reasonable because
          an exit or terminate notification can arrive at any time.



          Save the current state when stopping, at the finest level of detail
          possible so that people don’t lose their context when they start the
          application again. For example, if your app displays scrolling data,
          save the current scroll position."




          It would be appropriate to remove any mechanisms for quitting your app.








          share|improve this answer













          try exit(0), but you can't publish it



          Apple Review:




          We found that your app includes a UI control for quitting the app.
          This is not in compliance with the iOS Human Interface Guidelines, as
          required by the App Store Review Guidelines.



          Please refer to the attached screenshot/s for reference.



          The iOS Human Interface Guidelines specify,



          "Always Be Prepared to Stop iOS applications stop when people press
          the Home button to open a different application or use a device
          feature, such as the phone. In particular, people don’t tap an
          application close button or select Quit from a menu. To provide a good
          stopping experience, an iOS application should:



          Save user data as soon as possible and as often as reasonable because
          an exit or terminate notification can arrive at any time.



          Save the current state when stopping, at the finest level of detail
          possible so that people don’t lose their context when they start the
          application again. For example, if your app displays scrolling data,
          save the current scroll position."




          It would be appropriate to remove any mechanisms for quitting your app.









          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          ErumaruErumaru

          3061416




          3061416












          • Thanks this worked for testing, need figure out an alternative to this.

            – praza24
            yesterday











          • @praza24 what do you mean on alternative?

            – Erumaru
            20 hours ago











          • I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

            – praza24
            8 hours ago


















          • Thanks this worked for testing, need figure out an alternative to this.

            – praza24
            yesterday











          • @praza24 what do you mean on alternative?

            – Erumaru
            20 hours ago











          • I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

            – praza24
            8 hours ago

















          Thanks this worked for testing, need figure out an alternative to this.

          – praza24
          yesterday





          Thanks this worked for testing, need figure out an alternative to this.

          – praza24
          yesterday













          @praza24 what do you mean on alternative?

          – Erumaru
          20 hours ago





          @praza24 what do you mean on alternative?

          – Erumaru
          20 hours ago













          I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

          – praza24
          8 hours ago






          I require this in production but as you mentioned earlier it won't get passed Apple. I guess UIApplication will always be required, upon clicking a shortcut and always launch the app even if it's not required.

          – praza24
          8 hours ago




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55280625%2fis-there-a-way-to-not-open-the-splash-screen-app-when-launching-a-shortcut-actio%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript