How to launch SureFox from other apps on iPads and iPhones?

By 42Gears Team
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
_______________or
  • surefox://mail.yourwebsite.com
  • surefoxlite://mail.yourwebsite.com
• If “Allow Sub-Domain” is OFF then sub-domain has to be mentioned:
  • surefox://www.yourwebsite.com
  • surefoxlite://www.yourwebsite.com
• If “Allow only this URL” is ON for “http://www.yourwebsite.com/abc” then the URL in Safari has to be:
  • surefox://http://www.yourwebsite.com/abc
  • surefoxlite://http://www.yourwebsite.com/abc
  • surefox://http://www.yourwebsite.com
  • surefoxlite://http://www.yourwebsite.com
• If you wish to give the scheme of the url as well then it can be done as below(following convention above):
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

“Written with expertise and passion to help you understand the topic better.”

4
42Gears Team – Content Author
Published on: January 10, 2014

Subscribe to our newsletter

Stay updated with the latest news, articles, and resources on enterprise mobility.

Weekly articles
Actionable insights delivered once a week. No noise.
No spam
Your privacy matters. Unsubscribe anytime.