Mobile devices
Register the device after login and whenever its push token changes. Deactivate it during logout.
POST /api/v1/mobile/devicescreates or updates a device registration.POST /api/v1/mobile/devices/deactivatedeactivates a push token.
Register or update a device
POST /api/v1/mobile/devices
{
"platform": "ios",
"push_provider": "firebase",
"push_token": "provider-device-token",
"device_name": "Mario iPhone",
"app_version": "1.4.0"
}Call after login and whenever Firebase or Expo rotates the token. Supported providers are firebase and expo.
Deactivate during logout
POST /api/v1/mobile/devices/deactivate
{
"push_token": "provider-device-token"
}