Skip to content

An SDK and example App to measure heart rate with Instant Heart Rate and return results back to your app.

Notifications You must be signed in to change notification settings

azumio/instantheartrate-connect-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Azumio Connect SDK

Enables heart rate measurements in your app.

How it works

  1. User presses a button in your app
  2. Instant Heart Rate is launched, user measures his heart rate
  3. Result is returned to your app.

How to implement

  1. Copy AzumioConnect folder with files AZConnect.m/.h to your project

  2. Add new URL schema to your info file. We recommend using your Bundle identifier which should be in the reverse domain notation ( com.azumio.iphone.AzumioConnectExample in our example app ) Hint: Step 5 at http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-working-with-url-schemes/

  3. Add si.modula.instantheartrate.free and si.modula.instantheartrate to LSApplicationQueriesSchemes in your Info.plist file

  4. Handle openUrl and redirect it to AZConnect -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{

    [[AZConnect instance] openURL:url];

    return YES;

}

  1. Register a callback to receive the heart rate [[AZConnect instance] setHeartRateCallback:^(double heartRate) { heartrateLabel.text = [NSString stringWithFormat:@"%d bpm", (int)heartRate];

    } andSchema:@"com.azumio.iphone.AzumioConnectExample"];

  2. Trigger the measurement [[AZConnect instance] measureHeartRate];

About

An SDK and example App to measure heart rate with Instant Heart Rate and return results back to your app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published