Passing AuthTokent in apollo-android


#1

How can we pass the auth token in apollo-android client?
any ideas?
here is the library
https://github.com/apollographql/apollo-android


#2

See:


#3

Thanks i got it working


#4

any API for subscriptions or polling?
i cannot find it in apollo-android? is there another library?


#5

Not in apollo-android:

Can I ask you why you are using this native library, and not, for example, react-native with react-apollo?


#6

already built it. its in the play store. although react-native by default has some performance issues and my app has to deal with around 1000 entries, and the react-native app just could not deliver the performance i need


#7

if i run a query as a runnable at an interval it will still behave like a polling right?