code4romania / monitorizare-vot-ios

iOS election monitoring app - a mobile app through which commissioned observers can easily report back to their respective NGOs throughout the election day
https://votemonitor.org/
Mozilla Public License 2.0
19 stars 24 forks source link

Combine the login and send fcm token in one api call #190

Open aniri opened 4 years ago

aniri commented 4 years ago

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