public void registerDeviceWithUserId ( String userId , MFPPushResponseListener < String > listener ) { if ( isInitialized ) { this . registerResponseListener = listener ; setAppForeground ( true ) ; logger . info ( "MFPPush:register() - Retrieving senderId from MFPPush server." ) ; getSenderIdFromServerAndRegisterInBackground ( userId ) ; } else { logger . error ( "MFPPush:register() - An error occured while registering for MFPPush service. Push not initialized with call to initialize()" ) ; } }
Registers the device for Push notifications with the given alias and consumerId