Open EasonSun opened 6 years ago
Expose an API for the device to forward Device Token to the backend
Create a new column to store the Device Token (one user to many device tokens)
https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns
Flow:when sign in, forward token; clean when sign out. https://stackoverflow.com/questions/16365766/linking-user-account-to-device-token-for-push-notifications
Expose an API for the device to forward Device Token to the backend
Create a new column to store the Device Token (one user to many device tokens)