I have home screen quick actions for my iOS 9 app, but I don't need it to open the app. It actually schedule reminders and that's it. Is there a way to make the home screen quick action not to open the app?
Quick actions are designed to be used to quickly navigate to a section of your app, eg on the camera app there is selfie mode, box mode, panorama mode, timelapse mode etc. These are all sections of the app. To the best of my knowledge you cant have a quick action that just runs code without opening the app. Otherwise how will the user know that the code has worked and it has been executed?
This functionality would be cool but i believe it is impossible as of current. The closest you can get is make it so it opens the app to a ViewController that just says "Reminder Scheduled".
Related
I have an audio app and I want to control play/pause with ApplicationShortcutItem directly, but I don't want to open the app.
Is it possible?
It is not possible to leave an app in the background when choosing a Home screen quick action.
From the documentation of UIApplicationShortcutItem:
When a user chooses one of your Home screen quick actions, the system launches or resumes your app and UIKit calls the application(_:performActionFor:completionHandler:) method in your app delegate.
I've tried my best to look for a similar question on this site and on Google, but I couldn't find anything.
I have tried adding 3D Touch Quick Actions to my app, following one of the many tutorials found on the internet.
The problem is, everytime I perform the action from the home screen (testing on a 6S Plus), I see the LaunchScreen.storyboard screen and I have to wait a couple of seconds for the app to launch. This happens even if i just backgrounded the app. If I just tap the icon, I am instantly taken back to the last screen, but if I use the shortcut, it looks like the app restarts instead of resuming.
Is this the intended way of Quick Actions to work? Because it seems different to me with the Apple stock apps.
I am new to IOS, I have a question which is
I have few separate apps. After installation of these apps. It show as different apps icon in the home screen and I have to manually move these apps together to form a folder with apps contains. Do we have any ways to make these apps install and form a folder automatically by programmatically ways?
If yes, can show me how it can be done?
Sorry for my lousy English.
Thanks.
Unfortunately, you cannot do this on a non jailbroken iOS device. Each app is only responsible for what's going on inside the app. There are some exceptions to this (you can run certain logics in the background, subscribe to be woken up as a result of a certain notification, or provide an extension for the user to add to their Today screen or use via other apps), but you have no control over the user's home screen. Positioning the icons there is in the sole responsibility of your user.
we are developing hybrid application on Worklight.
After the user launches the application on iOS, he will see the login screen, providing his credentials, he is inside our application.
Now, if the user clicked the home button for iOS before "logging out" from the app, the iOS will take a snapshot and store it inside the device cache.
By using IExplorer, I can see this screen cached, which in our situation a high critical issue.
How can I a override this screen with a white screen, in case the user clicked the home button of the iOS device it will be populated immediately, and the device will not snapshot the user main screen.?
Is there any thumbnail I can add to my nativeResource folder for iOS to solve this issue?
thank you.
I encourage you to look at the Worklight Knowledge Center. In most cases, you will find your answer.
To control the snapshot taken by the OS when moving to the background, you need to use the following API methods, depending on your needs:
WL.App.BackgroundHandler.setOnAppEnteringBackground and WL.App.BackgroundHandler.setOnAppEnteringForeground
I am developing an iPad application & I want to keep use only my application in iPad. User is not able to make any changes with Home button too.
I have tried same thing with "Guided Access". But, it will stop push notification also.
I have tried it with iPhone configuration Utility. But, I am not able to find any
restriction for Home button.
So, anyone have any idea how can I implement it?
You can't disable the Home button from the sandbox.You have to use the physical accessories to stop the Home button action, after opening your application.