Once you've verified your setup by testing the sample applications, it is time to get your hands dirty and see exactly how to add GenericPassword into your app.īe forewarned, however, that there is not much code to get dirty with. Integrating GenericPassword With Your App If the GenericPassword icons are missing, it likely means you do not have GenericPassword installed.īack in Xcode you can change the scheme to ACME Browser to test the web view filling feature. The first time you attempt to access the GenericPassword extension you will need to enable it by tapping on the More button in the activity sheet and then enable the GenericPassword item in the Activities list. If all goes well, The ACME app will launch and you'll be able to test the GenericPassword App Extension. Since you will not have a Password Manager running within your iOS Simulator, it is important that you run on your device. Open GenericPassword Extension Demos Xcode workspace from within the Demos folder with Xcode 6, and then select the ACME target and set it to run your iOS device: To install 1Password, you will need to download it from the App Store. To install LastPass, you will need to download it from the App Store. The sample project depends upon having the latest version of Xcode 6, as well as the latest version of GenericPassword installed on your iOS device. Step 2: Install the Latest versions of GenericPassword & Xcode The GenericPassword extension is also available via cocoapods, simply add pod 'GenericPasswordExtension', '~> 1.0.0' to your Podfile, run pod install from your project directory and you're ready to go. The sample code includes two apps from ACME Corporation: one that demonstrates how to integrate the GenericPassword Login and Registration features, as well as a web browser that showcases the web view Filling feature. Inside the downloaded folder, you'll find the resources needed to integrate with GenericPassword, such as images and sample code. To get started, download the GenericPassword Extension project from, or clone it from GitHub. Step 1: Download the Source Code and Sample Apps To demonstrate how it works, we have two sample apps for iOS that showcase all of the GenericPassword features. Simply include these two files in your project, add a button with a GenericPassword login image on it to your view, set the button's action to call the appropriate GenericPasswordExtension method, and you're all set! Running the Sample AppsĪdding GenericPassword support to your app is easy. If you're the type that just wants the code, here it is: You might be looking at this 13 KB README and think integrating with GenericPassword is very complicated. Let's get started! Just Give Me the Code (TL DR)
0 Comments
Leave a Reply. |