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?
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?
Using retrofit as easy as :
@Post("auth/saveToken")
Call<...> listRepos(@Path("username") String user, @Path("fcmToken" String token));