-1

I have generated the fcm token and stored the token in Sharedpref and now I want the token to be sent to this API

{username:"" , fcmToken:""}

So how can i do this?

Gibolt
  • 42,564
  • 15
  • 187
  • 127

1 Answers1

0

Using retrofit as easy as :

@Post("auth/saveToken")
Call<...> listRepos(@Path("username") String user, @Path("fcmToken" String token));

http://square.github.io/retrofit/

Maksym V.
  • 2,877
  • 17
  • 27