Android sample

35 views
Skip to first unread message

kl...@sesinsud.com

unread,
Feb 25, 2016, 5:37:43 AM2/25/16
to VitaDock Online API
Hello,

I'm trying the android sample Vitadock-Android-Standalone-master

I've set up a call backurl "https://www.mydomain.com/cb.php" im my application.

I've modified the AndroidManifest.xml
<activity
android:name=".util.CallbackHandler"
android:label="@string/app_name" >
<intent-filter>
<data android:scheme="https" android:host="www.mydomain.com/"></data>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>


I've also modified ConstantsStorage.java
public static final String CALL_BACK_URL = "https://www.mydomain.com/cb.php?";


In the AcquireUnauthorizedAccessTokenActivity, the browser is launched with the following url

https://cloud.vitadock.com/desiredaccessrights/request?oauth_token=" + myoauthToken + "&theme=mobile"

In return, I get my callback url together with the verifierToken.
The callbackHandler is never triggered even when closing the browser view.

Result, the verifierToken is never set.

Can anyone help, please ?


BR,
Kim Kee

Reply all
Reply to author
Forward
0 new messages