Skip to main content

Posts

app-ads.txt

 google.com, pub-2203413632152319, DIRECT, f08c47fec0942fa0

Push Notifications Service - Local Push Notifications Swift 5

How to create local notifications in iOS using swift 5 on click a custom Button. Local notifications are most commonly used in apps like calendar alert, alarm app set event and more Alert with a customized message, a to do reminder etc. So let us start and learn how we can integrate local notification in iOS using swift language. Follow below steps, to integrate local notifications in swift.  Local and Remote Notification Programming Guide - Local notifications and remote notifications are ways to inform users when new data becomes available for your app - Local and Remote Notifications Overview Local Notifications: Now Getting Started:-  Step 1:    import UserNotifications   Step 2:      override func viewDidLoad() {          super . viewDidLoad ()          // Configure User Notification Center           ...

Add a Scene Delegate to your existing project with Storyboard in Swift

To add a scene delegate, first, create a new Swift file that you’ll call "SceneDelegate" containing a subclass of UIResponder, just like the AppDelegate, and that conforms to UIWindowSceneDelegate.  As your app might supports other versions than iOS 13, make this class only available for iOS 13. This is what you should have : If you are working a project that is storyboard based, please set storyboard  initial view controller SceneDelegate.swift import UIKit @available ( iOS 13.0 , *) class SceneDelegate : UIResponder , UIWindowSceneDelegate {     var window : UIWindow ?     func scene ( _ scene: UIScene , willConnectTo session: UISceneSession , options connectionOptions: UIScene . ConnectionOptions ) {                  let storyboard = UIStoryboard (name: "Main" , bundle: nil )         let initialViewController = storyboard. instantiateViewController (withIdentifier: "ViewController"...