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?
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
add a comment |
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
add a comment |
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
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
ios swift appdelegate uiapplication uiapplicationshortcutitem
asked yesterday
praza24praza24
233
233
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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