/BeBetter

Primary LanguageObjective-CMIT LicenseMIT

BeBetter for iOS and watchOS

Example of integration between Salesforce and Apple HealthKit

Build Status

Phone App Watch App

How to build

  • Download Xcode from the Mac App Store
  • Open the BeBetter.xcworkspace in Xcode
  • Select the 'WatchApp' scheme

How to integrate with your Salesforce org

  • Create a connected app here
    • Enable Device Flow (ticked)
    • Callback URL testsfdc:///mobilesdk/detect/oauth/done
    • Require Secret for Web Flow (not ticked)
    • Selected OAuth Scopes are api, web, refresh_token, offline_access
  • Copy your Consumer Key and paste it inside Constants.swift as remoteAccessConsumerKey inside the Xcode project

Project Architecture