Skip to content

Commit

Permalink
Update README.md (#44)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md
  • Loading branch information
mdesimone-viafoura authored Sep 1, 2024
1 parent 0d2a8a9 commit df0a5c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ dependencies: [
### See our documentation

Please follow [the official Viafoura iOS SDK documentation](https://documentation.viafoura.com/docs/add-the-viafoura-ios-sdk-to-your-app).

## How to initialize the SDK?
1) Initialize the SDK in `application(application:didFinishLaunchingWithOptions)`. Make sure to replace SITE_UUID and SITE_DOMAIN with the values corresponding to your domain.

```swift
import ViafouraSDK

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool {
ViafouraSDK.initialize(siteUUID: "SITE_UUID", siteDomain: "SITE_DOMAIN")
return true
}
```

0 comments on commit df0a5c3

Please sign in to comment.