I'm trying to create a REST API system in PHP Symfony2 for a website and apps for iOS, Android and Windows Phone.
I'm actually thinking about the database table for the devices of the user, because he may have multiple devices.
So, my solution for now is to create an array of devices for the user. The device table contain the type of the device (iPhone, iPad, Nexus, Nokia, etc), the device push identifier, the OS (iOS, Android, Windows Phone), and the user id.
But I don't know if is the good way, so what do you think ?
Thanks