标签: android android-webview firebase-cloud-messaging
我已生成fcm令牌并将令牌存储在Sharedpref中,现在我希望将令牌发送到this API
{username:"" , fcmToken:""}
那我怎么能这样做呢?
答案 0 :(得分:0)
使用改造就像:
@Post("auth/saveToken") Call<...> listRepos(@Path("username") String user, @Path("fcmToken" String token));
http://square.github.io/retrofit/