A charger for an aerosol-generating device, the charger comprising: a charging interface operatively couplable to a battery for the aerosol-generating device; a communication interface to communicate with a mobile user device at least while the battery is coupled to the charging interface , wherein the mobile user device is separate from the battery; and a controller operatively coupled to the charging interface and the communication interface , wherein the controller is configured to: determine a unique battery identifier corresponding to the battery to allow the controller to distinguish one battery from other batteries coupled to the charging interface ; establish a connection with the mobile user device using the communication interface , the connection configured to communicate user data; associate the battery identifier with the mobile user device in response to the determination of the battery identifier and the established connection with the mobile user device ; send the battery identifier to the mobile user device using the communication interface ; and receive a determination from the mobile user device that the battery identifier matches the mobile user device after sending the battery identifier to the mobile user device . a charging interface operatively couplable to a battery for the aerosol-generating device; a communication interface to communicate with a mobile user device at least while the battery is coupled to the charging interface , wherein the mobile user device is separate from the battery; and a controller operatively coupled to the charging interface and the communication interface , wherein the controller is configured to: determine a unique battery identifier corresponding to the battery to allow the controller to distinguish one battery from other batteries coupled to the charging interface ; establish a connection with the mobile user device using the communication interface , the connection configured to communicate user data; associate the battery identifier with the mobile user device in response to the determination of the battery identifier and the established connection with the mobile user device ; send the battery identifier to the mobile user device using the communication interface ; and receive a determination from the mobile user device that the battery identifier matches the mobile user device after sending the battery identifier to the mobile user device . determine a unique battery identifier corresponding to the battery to allow the controller to distinguish one battery from other batteries coupled to the charging interface ; establish a connection with the mobile user device using the communication interface , the connection configured to communicate user data; associate the battery identifier with the mobile user device in response to the determination of the battery identifier and the established connection with the mobile user device ; send the battery identifier to the mobile user device using the communication interface ; and receive a determination from the mobile user device that the battery identifier matches the mobile user device after sending the battery identifier to the mobile user device . <EOS>