Jailbroken
The URL scheme is only usable on jailbroken iPhones.
Application homepage:
http://cydia.saurik.com
iTunes link:
HTML Link example:
<a href="cydia://package/lighttpd">Click here to install lighttpd</a>
Native application URL string example:
[[UIApplication sharedApplication]openURL:@"cydia://package/com.example.package"]
Extended example:
// code when clicking an about button
UIAlertView *about=[[UIAlertView alloc]initWithTitle:@"About My Cydia Package" message:@"Version 1.0\nBy John Smith" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"More Info"];
[about show];
[about release];
// code in your UIAlertView delegate, assuming alertView is the name of the second parameter and buttonIndex is the second parameter
NSString *title=[alertView buttonTitleAtIndex:buttonIndex];
if([title isEqualToString:@"More Info"]){
[[UIApplication sharedApplication]openURL:@"cydia://package/com.example.package"];
}
Tags:
The following URLs can be used:
- cydia:// - open the previously opened page
- cydia://home - shows home page
- cydia://sections - shows list of sections
- cydia://sections/Tweaks - shows list of packages in this section
- cydia://changes - shows changes tab
- cydia://installed - list of installed packages
- cydia://sources - list of sources (aka repos) set up
- cydia://package/lighttpd - open details page for package with this identifier
- cydia://search/lighttpd - search for packages with this name or description
- cydia://storage - displays pie charts of disk usage
Providing an identifier or search query for a package that was recently added to Cydia might cause an error, because the person might not have opened Cydia beforehand to update its database.