setPhoneNumber

Set the profile phone number.

Note: This method requires to already have a registered identifier for the user or to call identify method before this one.

Example:

Batch.Profile.identify("my_custom_user_id")
Batch.Profile.editor().setPhoneNumber("+33123456789").save()

Return

This object instance, for method chaining.

Parameters

phoneNumber

A valid E.164 formatted string. Must start with a `+` and not be no longer than 15 digits without special characters (eg: "+33123456789"). Null to reset.

See also

<a href="https://en.wikipedia.org/wiki/E.164">E.164</a>