Skip to content

pathsense/pathsense-samples-iOS

Repository files navigation

PathSense Samples for iOS

A collection of sample applications demonstrating how to use the PathSense iOS SDK v1.5.1.

For more information, refer to the latest documentation:
👉 http://docs.pathsense.io/ios/html/
or visit the PathSense website.

The legacy developer portal (developer.pathsense.com) is no longer active.

You can find additional details for each sample in their respective README files:


Enabling PSLocation in Your App

  1. Obtain credentials
    Contact PathSense to request your Client ID and API Key for the iOS SDK v1.5.1.

    The old “GET STARTED” flow is no longer active — credentials are issued privately.

  2. Project requirements

    • Xcode 16 or newer
    • iOS 14.0 or later
    • Swift 5.9 or Objective-C
  3. Add the framework
    Add PSLocation.xcframework (or PSLocation.framework) to your Xcode project.
    Make sure it is listed under Frameworks, Libraries and Embedded Content and set to Embed & Sign.

    Screenshot1

  4. Add a Run Script build phase
    In Build Phases of your target, click ➕ → New Run Script Phase and configure it as shown below.
    Make sure this phase appears below Embed Frameworks.

    Screenshot2


Using Objective-C

  1. In your AppDelegate, add the following to
    application:didFinishLaunchingWithOptions::

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        [PSLocation setApiKey:@"YOUR_API_KEY" andClientID:@"YOUR_CLIENT_ID"];
        return YES;
    }
  2. Import the PSLocation framework header in AppDelegate.h:

    #import <PSLocation/PSLocation.h>

Using Swift

  1. In your AppDelegate, add the following to
    application(_:didFinishLaunchingWithOptions:):

    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        PSLocation.setApiKey("YOUR_API_KEY", andClientID: "YOUR_CLIENT_ID")
        return true
    }
  2. Import the PSLocation framework:

    import PSLocation

© PathSense Inc. — Updated for SDK v1.5.1 / Xcode 16 / iOS 18

About

Sample for use with the PathSense iOS Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •