Flat 10% off on the purchase of any two apps or more. Use coupon code - FESTIVAL10
Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 220.127.116.11 release ready!
Owner and Founder. Opencart
I hope you are doing well. Today I am going to explain each the process of integration of AccountKit in iOS App. Account Kit lets people quickly register for and log in to your app by using just their phone number or email address — no password needed. It’s reliable, easy to use.
Step 1: Just create an app in Facebook Developer account and register your app bundle id there. Fill Privacy Url -> Save Changes –> Publish App and make it available for public use.
Step 2: Add the following to your Podfile and install the library using Cocoapod
Step 3: Add both your Facebook App ID and Account Kit Client Token to your fileInfo.plist as strings. Make sure you have enabled Account Kit in the App Dashboard. You’ll find the Account Kit client token in the Account Kit section of the App Dashboard. The application name will be used in the UI of the login screen.
Remember to fill in your app ID for both the FacebookAppID and CFBundleURLSchemes keys.
Step 4: Add below Singleton class anywhere in your XCode Project.
Step 5: Now Move to that particular class in which you want to add a button for email verification and SMS verification. Here I have added a notification observer to check whether the user has logged out after verification or not. If you have to perform any task just after his logging out, this will be helpful.
Add below line wherever you want to add an observer, Here I have added it in viewDidLoad() method.
Step 6: Now create a class property for MobikulAccountKit Class.
Step 7: Add below the line for a method in which you want to write code for email verification.
Step 8: Add below the line for a method in which you want to write code for SMS verification.
Step 9: Add these methods also to handle errors or success.
I hope you enjoyed this AccountKit tutorial, and if you have any questions just comment below. Thanks for reading. Keep coding!!
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.