I would like the notification to stay.
I have inter alia following code, it works well but the notification disappears after 5 seconds (both when app is running or terminated):
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
let nc = UNUserNotificationCenter.current()
nc.delegate = self
return true
}
public func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
let request = notification.request
let identifier = request.identifier
let userInfo = notification.request.content.userInfo
completionHandler([.banner, .list, .badge, .sound])
}
Post
Replies
Boosts
Views
Activity
I just deployed an app in the Appstore. When my app is in the list with other apps, they all show 3 screenshots but mine doesn't. Only when I click on my app it shows the 4 screenshots I uploaded in app store connect.
I have a presumption that it is because I entered 6.7" and 5.5" screenshots in app store connect instead of 6.5" and 5.5".
The problem is testing it: I have to deploy another version to try it out which is cumbersome. It would be nice to know beforehand whether such an amendment has a chance on success.
The app is called Your New Calendar and you find it when you search under "arjen" and scroll down some apps.
I am working on an app and everything including "distribute" works fine: new versions of the app always appear in "Testflight".
I went to another location (other country, other ip address, but the same macbook) and was able to "archive" a new version of the app, but when I did "distribute" a "credentials" error came. (I do not remember the complete error message, but it had to do with credentials)
I came back in the original location. I picked from the "organiser" the archive which I had created in the other location, tried "distribute" again, and now it worked: the new version of the app arrived in Testflight.
I use xcode, where all of the credential - stuff is automatically dealt with.
Why can't I distribute an archive in another location as where I work originally?
I did not have time to try things in the other location.
Hello,
due to an older Mac (with the newest version of MacOS possible: 10.13.6) the newest version of Xcode possible is 10.1 so that's what I have installed.
When I create a project, I can't achieve to use SwiftUI Interface (only UIKit). SwiftUI is never presented as an option when I create a new project.
Am I missing something or does Xcode 10.1 not support SwiftUI interface.
Thanks.
Hello,
I would like to make a calendar. Is there a way to obtain the holiday schedule for a year per country?
For example, is there a way my app retracts that info from the stock apple calendar?
Thanks.