iOS app made during HackDelft 2019. It uses an UDP connection to get stock prices from a locally hosted Optiver Server. These stock prices can be sent via captions in Snapchat using Snap Creative kit. The iOS app won the "Best Use of Snapchat Kit" at HackDelft 2019 and is posted on devpost Creative Kit sample code for iOS.
You need to register your app at the Snap Kit developer portal with the bundleID
associated with your app.
App registration is an important part of the workflow. Creative Kit requires both the bundleID
and a clientID
. At runtime, Snapchat will verify that the content to be shared is redirected from a legitimate app.
Two OAuth2 clientIDs
will be automatically generated when you register an app on the Snap Kit developer portal. You will receive a Production clientID
and a Development clientID
.
You can use the Development clientID
anytime even before an app is approved. But the content can only be posted from a Snapchat account that is registered under the Demo Users in the app registration/profile page on Snap Kit developer portal.
With the Production clientID
, your app can post the content from any Snapchat account. But your app must be approved for the Production clientID
to work.
- (Optional)You can run bundler to install Cocoapods.
$ bundle install
- Install Snap Kit SDK via Cocoapods.
$ pod install
- Open the project in Xcode.
$ open CreativeKitSample.xcworkspace
-
Open Info.plist and modify the following attributes:
SCSDKClientId
- OAuth2 client ID you receive from registering your appLSApplicationQueriesSchemes
- Always set the value tosnapchat
-
Save your project.
-
Build and run the app on an iPhone.
Copyright (c) 2019, License.
This project uses images to demonstrate the sharing of content between the sample app and Snapchat. See Attribution for details.