Is there anyway of opening the container app from an app extension in iOS 8.3? - ios

I have all the editing functionality in the container app of my keyboard extension, and I have a button to open the container app on the keyboard. I was using these methods openURL not work in Action Extension
However, in iOS8.3 apple changed his mind again. And, I cannot find a way to open the container app.
Has anyone any idea how to do it? Please, help!

Apple hasn't changed its mind on this even once, let alone "again". Only today extensions support opening their containing app, others do not. The workarounds that people found were-- from Apple's perspective-- bugs that were fixed.
There is no supported way to do what you want. If you find some workaround, you should expect it to disappear in the next iOS update.

Related

Why does my iOS app show it needs "Local Network" permission?

In the iOS Settings app, my app has a list of permissions it needs. It also has one that it doesn't - Local Network.
I disabled that and it runs fine, so I know it really doesn't need it (besides the fact that I never use it).
So how did iOS get the idea that my app needs it?
(The app is built with Xamarin.iOS if that makes a difference.)
With no related change to the project, that disappeared.
I assume it was something in Xamarin.iOS and was removed with some update.
So if you're facing the same issue, perhaps the latest update might help you.
Assuming that you know your code and that there is nothing relevant there, then you have used some package that causes this. There is no third possibility.

IOS 12 Unwanted communication Reporting Extension Working on Phone but not on Messages app

I have been trying to make the new iOS extension Unwanted Communication Reporting work. Currently I couldn't find any good walk-through tutorial or code-sample to make it work. Above that by just firing up a new project with this extension and building it shows me the option of reporting in the Phone App but not on the Messages app, Moreover, the option to enable it only appears in phone app but it says "sms/phone" so I think this should work for both of them.
I know its in beta right now but just want to know if anyone had any luck with it. Also, There is no code to share as its just the boiler plate that comes with the new project.
This might have been a personal issue. I reset the whole phone and now I can see the options to report message. Apple might have fixed it in their latest iOS build or it might have just been my device issue.
Apple's developer site specifies ”SMS and call spam reporting," which is an app extension that you will have the option of turning on or off.
You may enable an Unwanted Communication extension in the Settings app. I am not sure if Apple will utilize this but i know for android - screen turns red when such spam calls come in, also caller id notes that but currently apple seems to have found a middle ground.
The following worked for me, you can try:
Remove command definition for this in Plist file.
Delete the Target in project (you can delete code folder).

Is it possible to "Debug View Hierarchy" in Xcode for an app extension?

I'm trying to debug the view hierarchy in an app extension, but I don't get anything useful.
Are there any limitations to using this feature with extensions?
If not, what could I possibly be doing wrong?
I have the feeling there might be since the app is actually running inside a third party's UI. Would this be to keep people from "looking inside someone else's app"?
No, it seems not possible at this time. On Xcode8 iOS10, it shows nothing for keyboard extension.
An alternative choice is Reveal. On latest version, it supports App Extension. Actually it is what I am using right now.

ios 8 openUrl itms-services does not exit current app

In iOS 6 or 7, the app exit to the home screen when I call UIApplication openUrl with a url of itms-services://XXXX to install a new version of my app (using enterprise deployment with ipa files).
In iOS 8, this is no longer the case. Now the app continue running just as nothing has happened, but if I go the home screen, I can see my app icon grayed out, with a downloading pie chart about 66% completed and the text "Downloading..." below. If I now wait for a while (less than a minute), the application is installed correctly and I can start my app again.
Has anyone else experienced this behavior? Have anyone seen any documentation regarding this? I can accept behavioral changes as long as it is documented, but I haven't seen any documentation regarding this.
While forcing the app to crash will technically work, a much better solution (allowing the user to retain the state of the application) would be to simply background the app launching the itms-services link by executing the following.
[[UIApplication sharedApplication] performSelector:#selector(suspend)];
We use this in an app used for distributing test builds to our testers and it works very well, and eliminates the confusion of a tester trying to install an app and having the app stay in front. It also allows them to return to our distribution app and have it pick up where they were.
Yes, you also get the same behaviour when clicking a download link in safari now on iOS8.
I'm not sure why they introduced this change but there isn't really a way around it (unless you force your app to crash with something like exit(0);)
Also, the itms-services url scheme is undocumented and is technically a private api. From experience, you're not allowed to submit apps to the App Store that use it.
I have experienced a similar thing. I have a web page for our internal app store and when I tap on the link I do get a prompt asking if I want to install and when I say yes safari just sits there. The app is downloading on the home screen but under IOS 7 safari would be pushed to the background and you could see where your app is being downloaded to and its progress. Now it appears like nothing is happening. I would love to correct this. Perhaps something has changed in the .plist files the itms-services protocol uses. This protocol is not private it is just reserved for enterprise deployments.

Open an application from another (iOS)

I read that there is nothing like NSWorkspace for iOS
Equivalent of NSWorkspace for iOS
Unfortunately, I wanted a button in my app that can run some others applications (in background). Is it possible without NSWorkspace ?
Your first problem is that you can't run applications in the background in the same way that you can on the Mac.
But, assuming that just launching an app is enough, the answer is: it depends. The other app would need a URL scheme defined. Not all do, unfortunately. Then you just call [UIApplication openURL:].

Resources