我想初始化quickblox android框架。
documentation說It's also possible to initialize the SDK with an existent QuickBlox token. It can be interesting in cases when you build a big system and you have a custom server side which generates QuickBlox tokens
。 這就是我想要做的,因爲出於安全原因,我不想在應用程序代碼中保留AUTH_SECRET和AUTH_KEY。
但是當我做Quickblox初始化框架從令牌導致崩潰
BaseService.createFromExistentToken(token, expirationDate);
我得到java.lang.RuntimeException: applicationId is null. You must call QBSettings.getInstance().init(Context, String, String, String) before using the QuickBlox library.
它看起來有點矛盾給我。
我生成的令牌服務器端,它並沒有過期
任何人都可以指向正確的方向嗎?
是否可以在沒有存儲在應用中的AUTH_SECRET和AUTH_KEY的情況下在quickblox中登錄用戶?