How to automate tests for iOS app shortcuts? - ios

I have built 4 application shortcuts for the iOS app I'm developing these days. The shortcut menu is triggered by the 3D touch gesture made on the app icon. My question is whether there is a way to automate tests for this? (may be using UIAutomation)

Related

angular 6 - problem with 3d touch on newest ios

I have problem with 3d touch in my angular 6 app. When browsing site on iphone 6 and newer (with newest ios), simple click is not recognized as click. You have to press screen a while in order to click something. On other mobile systems clicks work fine. I think this is related with 3d touch.
I'm using (click)="DoAction()" for handling clicks.
Is 3dtouch should be handled separately?
I think you can use this library in your app and it works fine:
https://pressurejs.com/

Is it possible to integrate a Unity app into an iOS app?

I have a Unity app that I made some time ago and am having a school project about related subject (chess game) in Swift.
I'm aware that iOS is compatible with Unity in running a whole Unity app, but is it possible to integrate both apps: I click on a Swift button called "3d scenario", and it launches the Unity app within, then I click on "return" button in unity to dismiss it and return to previous iOS app (either previous view or main menu, doesn't matter).
I can't find any help on the subject, but if it is possible. Could you briefly explain how the launch and "exit" functions are done?
Also the same question for Unity within android if possible.
The possible way to do so is to export it in Unity to the platform of choice, IOS or Android, then embed the source in your app.

Showing app shortcut on App Switcher in iOS 9 based on geofencing like Uber does

I've noticed that Uber displays this kind of app shortcut in the App Switcher in iOS 9 with description "Arrived at home":
I'd like to use similar feature in my app. Do you know how is it possible to achieve it? I can't find anything on that in the iOS 9 documentation.
That shortcut is not displayed by Uber, it's displayed by iOS 9.
This feature is called proactive suggestions. The iOS constantly monitors your activity and displays suggestions at the bottom of the App Switcher based on your usage patterns. In your case iOS saw that you usually open Uber app when you arrive at home, so it showed you a suggestion.
There doesn't seem to be a way for your app to influence this behaviour because Apple doesn't provide an API for that.

Simulating iOS opening an app fresh in the background

I have a crash in an iOS app that I believe it triggered from iOS opening the app in the background. I'd like to be able to test this hypothesis, but am not sure if I can trigger iOS to open a closed app in the background for testing purposes.
I am specifically looking to have iOS open this app fresh - i.e. not when the app is still active and placed in the background, but when the app is fully closed and iOS triggers a re-open.
Is this possible?

An app that pops up on top of any other app on iOS

For example, the built-in alarm clock app launches when it's time to ring (it doesn't just show a notification) even when another app is running.
At WWDC 14 Apple showed off the Extensibility feature. You shouldn't be able to do it on iOS 7 but in the future(iOS 8) you can use the extensibility in third party applications.
For more information read the mashable blog : http://mashable.com/2014/06/02/apple-ios-extensibility/
Not on an iOS device :D.
Only 1 app can be presented on the screen at one time.
Maybe in iOS 8 with split screen feature perhaps?
Although that isn't quite exactly what you want.

Resources