Search code examples
iosswiftsdkquickbloxappdelegate

QuickBlox iOS SDK , Enabling Cloud Back-End Server AUTHKEY/APPLICATION ID TO APP DELEGATE


I have followed all the guidelines of how to set up the iOS SDK that QuickBlox provides. I added the SDK through cocoa pods, added the run script with the snippet code. example here! I came to a crossroad and got stuck in how to add the auth-key, app-id.. ect. To The app delegate?


Solution

  • This is how you set the values in AppDelegate for QuickBlox

    First

    import Quickblox
    

    in your AppDelegate, then in didFinishLaunching add this

    QBSettings.setApplicationID(yourAppId)
    QBSettings.setAuthKey(yourAuthKey)
    QBSettings.setAuthSecret(yourAuthSecret)
    QBSettings.setAccountKey(yourAccountKey)