added new getRegistrationId() method
added shake detector