Posts

Email and password based authentication with Firebase in Swift

Image
Firebase  Authentication gives us backend services to authenticate users with your app. It provides SDKs and ready-made UI libraries. It supports authentication using passwords, and other providers like Google, Facebook and Twitter, Github, and more. Steps to configure your app with Firebase Open  Firebase Console Create new project over there Create new app into the project You will be getting GoogleService-Info.plist file from settings Add it to the project Add just one line to configure your app  FIRApp.configure() import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FIRApp.configure() return true } } Let’s step with Firebase Authentication Step 1. Enable Email an...

What's New in Xcode 8.3?

Image
Xcode 8.3 includes Swift 3.1 which is intended to be source compatible with Swift 3.0. Constrained extensions allow same-type constraints between generic parameters and concrete types. For example, the following code defines an extension on Array with Int elements:       extension ArrayName where Element == int{} The Swift compiler now raises an error for modifications of a let  property or variable of protocol type after initialization.  Swift 2.3 Deprecation Xcode 8.3 beta 2 no longer supports Swift 2.3. Please migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax. Other Deprecations and Removal Notices The Automation instrument has been removed from Instruments. Use Xcode’s UI Testing in its place. Organizer The Xcode Organizer now supports exporting tvOS apps for Enterprise distribution. Testing Added the XCUISiriService class to XCTest for writing te...

Push Notifications in iOS 10

Image
The  UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications.( The new framework introduced with iOS 10 SDK. ) //*Steps for implement code to handle push notifications in iOS 10 *Import UserNotifications.framework in your AppDelegate file #import  < UserNotifications/UserNotifications.h > **Add UNUserNotificationCenterDelegate. #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate, UNUserNotificationCenterDelegate> ** Register for push notification Before registration check the version of iOS and then based on versions do the code. For iOS 7 code was different, fro iOS 8 & 9 code was different and again for iOS 10 code is different. As per my opinion you have to set the deployment target to iOS 8 or iOS 9 and later.  Define constant for version check : #import "AppDelegate.h" #define SYSTEM...

Application Upgrade Process Into Appstore

Image
Step 1:Change Your URL From Test To Secure(Live). Step 2:Go to AppDelegate          Uncomment LogFile,If You Comment it(Application Works Fast).         Change The Version Number. Step 3:Go to Your Application Target.Changes as Follows...        Change Display Name As You Want.        Change Bundle Identifier.                Change Version And Build                Go to Deployment Info,Change The Device as You Want(if  Your Application is Both For iPad and iPhone Then Select Universal).                You See The Build Settings,Go into Build Settings And At   Signing Point ,change The Code Signing identity And  Provisioning Profile Certificates And Development Team Also. Step 4:Go to Your Project And Make Sure The Signing Point in Build Settings in Target And Signi...

Progress Indicators (Loading...)

Image
When content is loading, a blank or static screen can make it seem like your app is frozen, resulting in confusion and frustration, and potentially causing people to leave your app. *First Add MBProgressHUD From GitHub.Below is The Link. https://www.google.co.in/urlsa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiMx9mwy4vWAhWCqY8KHXbCBj0QFgglMAA&url=https%3A%2F%2Fgithub.com%2Fjdg%2FMBProgressHUD&usg=AFQjCNFFF4StmFHOz4VYmfh7-GU-5HW9-A *After Adding MBProgressHUD.h and MBProgressHUD.m Files To Project, Do the Following Procedure. #import "MBProgressHUD.h" @interface  AppAppDelegate : NSObject < UIApplicationDelegate , MBProgressHUDDelegate , ProductListDelegate , NSXMLParserDelegate , UIPopoverControllerDelegate , UIAlertViewDelegate , UIPrintInteractionControllerDelegate , UIWebViewDelegate > (Add Delegate Methods). @property ( nonatomic , retain ) MBProgressHU...