iOS 10 Open Today Widget from main App in Swift - ios

I am trying to take the user to my widget on Today screen. So far research has not shown any way to do this. All the solution are for opening the main app from the today widget not the other way around. Any ideas if this is possible?

This is not something that you are able to do, Apple has not provided any methods to allow this type of functionality.

Related

Need advice on writing iOS apps on iPad with Swift Playgrounds

I want to write a keyboard app for iOS, but I only have an iPad at my disposal at the moment. I've been searching Apple Developer documentation as well as online forums and I'm not finding the answers I need to get started. There is focused documentation on Apple Developer (see: Creating a custom keyboard) that pertains to xcode and selecting the Custom Keyboard Extension template, but I'm not seeing this in Playgrounds. This makes me think I may have to build the app from the ground up, and I have no experience with Swift or app development.
Does anyone have any advice on how I can get started?
Out of my comfort zone,
-Kristopher
Unfortunately you will need to use Xcode on a Mac to do this. Playgrounds are not a full replacement for Xcode.
The ability to publish an app from a playground is relatively new and is limited.
To create a custom keyboard you need to combine an app with a custom keyboard extension in one project. Playgrounds can't do this.

iOS Today Widgets (old widgets) disappear after EVERY app update

We had "Today widgets" that worked perfect for a long time. After introducing the new Widgets Extension we added a Widgets Bundle to our app. Now after every app update the old widgets disappear from "Today view" and can be bring back ONLY by rebooting the iPhone.
Sometime when they disappear, in today view appears the first widget from the Widgets Bundle. I've tested other apps too and it happens every time on apps that support old and new widgets (Xiaomi Home app for example).
Does anyone have a clue how to fix that?
I have rаised a ticket to the Apple Developer Technical Support and I got the following response unfortunately:
Hi Stefan,
Today extensions are no longer supported on iOS. You should migrate to
use Widgets exclusively as the experience you are seeing with today
extensions has no fix or workaround.
Once a Widget target is added to your project they will take precedent
over today extensions and as we mentioned at WWDC, they are an
intended replacement, so you will see the system suppress the today
extensions. I would argue thats seeing the today extensions at all is
actually a bug.
It's a shame that Apple want us to migrate to the useless Widgets that are not even close to the Today extensions functionality.
It might help if everyone affected create a ticket.

Run Widget-extension without launching main App

I'm implementing a widget in my iOS App. (accessed through 3D-Touching on the App Icon).
However, when tapping anywhere on the widget it automatically opens the App. (The widget still runs all it's functions, but it opens the App when it's done). The widget does not open the app when used as a Today View Extension.
What I want is the widget to run all it's functions without opening the actual main App.
I know that this worked until a while ago, and I feel like the behaviour changed after upgrading to the newest macOS, iOS and Xcode versions. Is there any way to revert the Widget to it's original behaviour?
––––
Upon further investigation I created a new project and added a today extension to it to find out, that tapping anywhere on the widget opened the app (but only when running as a widget, not in today view). Therefore I guess this to be the expected (new) behavior.
However, as long as this is not an Xcode bug I would expect there to be a way of continuing to use the old behavior. If anybody experiences the same issue or found any solutions I would be thankful for any help.

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

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.

iPhone is there a way to allow a user to rate the app from within it?

I have seen some apps with a button to rate the app. It brigs them to a page that always them to rate that app.
I can't figure out how to do this. Does anybody know how to do this? I fred googling it.
The most well known way to do this is an open source library called AppIRater, but I have also seen iRate and people roll their own versions of the simple code.
Use Appirater by Arash Payan. It's easy and clean ;)
http://arashpayan.com/blog/2009/09/07/presenting-appirater/
Appirater is good, but using the Game Center is better, because it allows to rate inside the app (without switching to iTunes). Check out Apple's GameCenter API.

Resources