如何使用url参数发送fcm令牌?

时间:2018-04-22 17:35:48

标签: android android-webview firebase-cloud-messaging

我已生成fcm令牌并将令牌存储在Sharedpref中,现在我希望将令牌发送到this API

{username:"" , fcmToken:""}

那我怎么能这样做呢?

1 个答案:

答案 0 :(得分:0)

使用改造就像:

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

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