| Applies to: | |
| Product | SureFox |
| Platform | iOS |
1
2. By using UIApplication class’s openURL
3. By passing URL’s with scheme as surefox:// for SureFox and surefoxlite://
1. Using Safari to launch SureFox:
In the iOS device’s Safari address bar enter : surefox:// for SureFox or surefoxlite://
surefox://www.yourwebsite.com for SureFox and surefoxlite://www.yourwebsite.com
ON in SureFox settings for "www.yourwebsite.com" then using url like below will also work:
- surefox://yourwebsite.com
- surefoxlite://yourwebsite.com
- surefox://mail.yourwebsite.com
- surefoxlite://mail.yourwebsite.com
- surefox://www.yourwebsite.com
- surefoxlite://www.yourwebsite.com
- surefox://http://www.yourwebsite.com/abc
- surefoxlite://http://www.yourwebsite.com/abc
- surefox://http://www.yourwebsite.com
- surefoxlite://http://www.yourwebsite.com
2. Using “openURL” method in your app:
UIApplication class’s openURL method at required location as shown below:
Calling this method simply launches SureFox/SureFox Lite [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://“]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"surefoxlite://"]];
In case of Website http://www.yourwebsite.com added in SureFox Allowed Websites: Call the method in these formats when “Allow Sub-Domain is ON: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://www.yourwebsite.com”]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://mail.yourwebsite.com“]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://yourwebsite.com”]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://http://yourwebsite.com”]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://http://www.yourwebsite.com”]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://http://mail.yourwebsite.com”]];
Call the method in these formats when “Allow Sub-Domain is OFF: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://www.yourwebsite.com”]]; or [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“surefox://http://www.yourwebsite.com”]];
3. By Passing the URL in links with prefix as surefox:// or surefoxlite:// :
If it requires that a link be opened in SureFox, the URL must be edited to include prefix as surefox:// or surefoxlite://
http://www.yourwebsite.com
surefox://http://www.yourwebsite.com