ios inn app purchase - product identifiers

7

Click here to load reader

Upload: ernesto-arias-vucetich

Post on 11-Jul-2015

127 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ios inn app purchase - product identifiers

DESARROLLO PARA

PLATAFORMASMÓVILES

PRODUCT INDENTIFIERS

UPC-EPEERNESTO ARIAS VUCETICH – U201000079

19/11/2012

Page 2: Ios inn app purchase - product identifiers

1• ¿Qué son y para que sirven?

2• Nomenclatura

3• ¿Cómo se implementa en mi

aplicación?

Agenda

Page 3: Ios inn app purchase - product identifiers

¿Qué son y para que sirven?

Es un string que sirve para identificar de manera

única a un producto en el App Store.

Sólo puede contener caracteres alfanuméricos,

underline (_) y el punto (.)

Page 4: Ios inn app purchase - product identifiers

Nomenclatura

Se puede utilizar cualquier nomenclatura; sin

embargo apple recomienda el estilo reverse

domain (com.companyname.application.productid)

Referencia https://developer.apple.com/library/ios/#qa/qa1329/_index.html

Page 5: Ios inn app purchase - product identifiers

¿Cómo se implementa en mi aplicación?

Referencia https://developer.apple.com/library/ios/#qa/qa1329/_index.html

SKProductRequest initWithProductIdentifiers

MétodoObjeto App Store

Info del Producto

Page 6: Ios inn app purchase - product identifiers

¿Cómo se implementa en mi aplicación?

Referencia https://developer.apple.com/library/ios/#qa/qa1329/_index.html

- (void) requestProductData

{

//Create a list of product identifiers

NSSet *productSet =[NSSet setWithObjects: @"com.apples.mygreatapp.consumable1",

@"com.apples.mygreatapp.sport7days",nil];

//Create and initialize a products request object with the above list

SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers: productSet];

//Attach the request to your delegate

request.delegate = self;

//Send the request to the App Store

[request start];

}

Page 7: Ios inn app purchase - product identifiers

Información adicional

Para mayores detalles puedes consultar el siguiente enlace:

https://developer.apple.com/library/ios/#qa/qa1329/_index.html