Android App Development
iOS App Development
Flutter 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 22.214.171.124 release ready!
Application shortcut is the way where we can perform some task fast without open the main App & go to particular section . App Shortcut will directly to specified location , but there is some limitation to use this Shortcut it will support to iPhone 6s to above phone .
There is Some Steps to Follow.
1: Open Your App Delegate File .
a: Here I have taken one shortcut that will go to your Cart Controller in App.
declare their unique key : it is unique key to define the App Shortcut that will help to update this name or other value later .
b: Go to this Function in App Delegate file and write this:
c: Now we have to define this method:
Note: Here we are checking the App Shortcut is Created before or not so if is empty than it will create other wise return the previous one.
d: Declare Shortcut Item in Appdelegate.swift class:
2: Handle the Click Event Of App Shortcut.
a: Override this method in App Delegate file:
Note: If you click on Any Shortcut item , this method will automatically call so you need to return true for successfully execution.
Here i have taken Local Notification to handle the request.
You have to define this “shortcutsearchtap” in your start viewcontroller in ViewDidload Method.
In Our Case i have start viewcontroller is ViewController.swift class.
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.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.