SessionOptions for Android

Hello,

1. on iOS, "FPWCSApi2SessionOptions" class offers "urlServer", "appKey", and "custom" parameters.
2. on Android, only "urlServer" and "renderers" are available. How about "appKey" and "custom"?
3. on Web, there is an "appKey" & "custom" fields available.

"custom" field is important for security as that way we verify the unique token of a connecting client. How do we go about that for Android?
 

Max

Administrator
Staff member
Good day.
You can use custom connection to pass appKey and custom parameters in Android SDK:
Code:
import com.flashphoner.fpwcsapi.bean.Connection; 
import com.flashphoner.fpwcsapi.session.Session; 
import com.flashphoner.fpwcsapi.session.SessionOptions; 

...

private SessionOptions sessionOptions = new SessionOptions(mWcsUrlView.getText().toString()); 
private Connection connection = new Connection;
connection.setAppKey("appKey");
connection.setCustom("token","ABCDEF");
private Session session = new Session(sessionOptions);
session.connect(connection);
...
 
Top