Nevermind, changed
var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))
for
var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))
and changed this
hostWebContext.load(asyncObjects.sectionGroup);
hostWebContext.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
hostWebContext.executeQueryAsync(onCreateGroupAndListSuccess, onError);
for this
context.load(asyncObjects.sectionGroup);
context.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
context.executeQueryAsync(onCreateGroupAndListSuccess, onError);