Accept either Boolean or string argiuments to register method for iOS