Backitude and tomcat server connection - android

In backitude android app how to set custom server settings i want to connect backitude to my personnel server like apache tomcat.
thanks.

Download the latest version of backitude, post-Latitude shutdown. It will have custom server settings. You can also defines the parameter keys and values that will be posted. Basic auth.

Related

Phoenix channels with Android client

I'm trying to create a websocket connection to my Phoenix app from an Android client. I'm trying to use this library but I'm running into this issue and I'm unable to successfully join a channel.
Upon reviewing the source code of the above java phoenix client library, it looks like the initial request from the client to connect to the socket is made with http schema and not ws (the source code explicitly changes the provided url to make sure it always uses http). It's not clear to me how this would work without additional configuration in my Phoenix app: if a socket connect request is made to http://localhost:4000/socket, the request will fail because there is no route for /socket when the schema is http.
There's nothing in the library docs that says any additional config is required in my Phoenix app to make this work, but I don't see how it could work for the reason stated above.
Does a Phoenix app have built in handling for the connection upgrade, etc, required on handshake as specified here?
As a note, I have no issues making websocket connections from my javascript web client to my Phoenix backend.
Any suggestions are appreciated!
Have you tried using the default path for a channel http://localhost:4000/socket/websocket ?

flexible offline messages retrieval returning false

In my XMPP chat application, I am using ASMACK library 4.0.6 on the Android client side.
I want to retrieve offline messages when an XMPP connection is established. For that, first I check whether the server has support for flexible retrieval. The server always returns false. We enabled the offline module in MongooseIM server. But why am I getting false from server?
if (!offlineMessageManager.supportsFlexibleRetrieval()) {
Log.i("Offline messages not supported","" + offlineMessageManager.supportsFlexibleRetrieval());
return;
}
If I try with pidgin client, I get offline messages..
Disclaimer: I work on MongooseIM.
Guessing from the API you're trying to use it implements XEP-0013 - MongooseIM doesn't support this XEP. Ensure what protocol .supportsFlexibleRetrieval() really uses underneath.
MongooseIM supports XEP-0313 version 0.2 and will support the newest version of this XEP. Verify whether your client library supports this XEP and which version of it. The relevant module to run on the server is mod_mam. Please refer to the MongooseIM wiki on GitHub, since its configuration is a bit complex.
Alternatively, you can rely on mod_offline automatically pushing the offline messages when a resource connects.

How to set specific Sec-WebSocket-Key in Client's WebSocket opening handshake message using autobahn android library?

I want to set custom/specific Sec-WebSocket-Key in Client's Websocket opening handshake message. I am using Autobahn Android library for creating websocket in android.
I could connect to local Autobahn Python server example using provided Android example app code for Websocket. But I am unable to connect custom server which needs specific Sec-WebSocket-Key for opening a connection(I think it's not mandatory to have a particular Sec-WebSocket-Key for a server but still..)
so is there any way to set this specific key in Client's websocket opening handshake message using any of the autobahn android api method?
The WebSocket spec (RFC6455) requires a compliant client to generate a random key on each and every connection.
A server that mandates a specific key isn't spec compliant. There are no hooks in AutobahnAndroid to set a specific key (and we won't add such things). Please fix your server or use a compliant one.
You can find the code for generating news keys here.

How can we use HTTP Proxy Server in Android through Android Application?

I Want to set up HTTP Proxy Server through My Application.
How Can I set up Proxy Server from my application ?
you can use ProxySelector api help at http://developer.android.com/reference/java/net/ProxySelector.html
and proxy API help at http://developer.android.com/reference/java/net/Proxy.html also check this out i think first answer is useful for you How can you set the http proxy programatically?

Get android proxy crendetials

I have configured a proxy on my Android device. I'm developing an aplication in which I need to make a HTTP get throught the proxy. I can make the HTTP get but I MUST set again the user and password into the httpclient, so, how I can get the proxy credentials stored in the android device?
thanks.
I think that this could help you: https://stackoverflow.com/a/1626616/355465
cntlm is free local proxy (http://cntlm.sourceforge.net/) and can be used as a middle-ware between your device and the proxy with user name , it has option with cntlm -H to store your password , so you do not need to change your code, just configure the device to use cntlm proxy

Categories

Resources