monitorizare-vot-ios icon indicating copy to clipboard operation
monitorizare-vot-ios copied to clipboard

Combine the login and send fcm token in one api call

Open aniri opened this issue 6 years ago • 0 comments

Send the firebase token on the login call. There is no need for two separate calls.

Use the new login endpoint: POST ​/api​/v2​/access​/authorize

Send both login info & firebase related info:

{
  "user": "string",
  "password": "string",
  "channelName": "string",
  "fcmToken": "string"
}

Remove the call to POST ​/api​/v1​/notification​/register

aniri avatar Jan 12 '20 14:01 aniri