android - Quickblox Initialize framework from token cause crash -


i'm trying initialize quickblox android framework.
documentation it's possible initialize sdk existent quickblox token. can interesting in cases when build big system , have custom server side generates quickblox tokens. want because, security reason, don't want keep auth_secret , auth_key in app code.
when do

baseservice.createfromexistenttoken(token, expirationdate); 

i java.lang.runtimeexception: applicationid null. must call qbsettings.getinstance().init(context, string, string, string) before using quickblox library.
bit contradictory me.
generated token server-side , not expired
can point me right direction?
possible log-in user in quickblox without auth_secret , auth_key stored in app?

base on docs, have initialize quickblox first before using it.

http://quickblox.com/developers/android#initialize_framework

static final string app_id = "961"; static final string auth_key = "pbzxxw3wggztfzv"; static final string auth_secret = "vvhjrbvff6mmeyj"; static final string account_key = "961"; // qbsettings.getinstance().init(getapplicationcontext(), app_id, auth_key, auth_secret); qbsettings.getinstance().setaccountkey(account_key); 

what did there creating application session not initializing quickblox itself.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -