takes an appIdentifier or a string and returns an AppIdentifier if an instanceId function is provided will populate the instanceId of the returned identifier
Optional
takes an appIdentifier or a string and returns an AppIdentifier if an instanceId function is provided will populate the instanceId of the returned identifier