Migrating from 1.0
Migrating from com.batch.cordova 1.x
Migrating from batch.userProfile
// Use the user profile to set custom language and data
batch.userProfile.setLanguage("en"); // Language must be 2 chars, lowercase, ISO 639 formatted
batch.userProfile.setRegion("US"); // Region must be 2 chars, uppercase, ISO 3166 formatted
batch.userProfile.setCustomID("john.doe");batch.user.getEditor()
.setLanguage("en") // Language must be 2 chars, lowercase, ISO 639 formatted
.setRegion("US") // Region must be 2 chars, uppercase, ISO 3166 formatted
.setIdentifier("john.doe")
.save(); // Don't forget to save the changes!Last updated

