Does Twitter send out a notification when their accounts have been logged into a different device? Using GCM how does apps like Facebook, Quora, etc send notifications to a single user/device out of so many in the database? How exactly is the server side setup to filter users or devices based on some necessary fields?