Semantics: Product ID help
hello again folks,
nearing completion, but am getting hung up at a few places, and I think its my own fault for the names I've used along the way. For product ID the (Paid In-App Tutorial) shows a product ID as "com.example.Baker.issues.january2013"
when I visit apple connect I see "com.aspectsofentertainemnt.aspectsofentertainment" I know I need to edit that a bit, but not sure what each region of text between periods are.
is there a 'key' that can be used — is the "Baker" above refferring to the xcodeproj name.
Just really what to know, is where during all the setup can i find the bits of info I need to created the product ID and what are they associated with. I got a lot of things named similar things and it's getting a bit too much for me to put together at this time.
Cheers
I'm not sure what you're asking. In general, by following the In-App Purchase Tutorial you see that the Product ID is completely created by you and must just be copy-pasted where specified in Baker (Constants.h).
my fault. my problem is the repitition in my id. is "Baker" the Xcode app file name, is issues the issueID? and is january2013 the SKU?
On the tutorial is says Baker requires one that should look similar to com.example.Baker.issues.january2013, and all is see is com.aspectsofentertainment.aspectsofentertainment
let me know if this does not communicate again, I attatched some SS from itunesconnect hoping its the info I am concerned with.

Yes. it is similar no identical. :D
A said, the Product ID is completely typed by you. Can be any string. Just take the string you have and add it in Constants.h.
right on. sorry if this is nonsense. I had an error return last time I simply dropped mine in. I'll see if it appears again. cheers.
Still encountering problems...
After trying to implement the BakerAPI Server, I was able to move forward some, I THINK. Now I am simply getting an Updating Price text that wont stop spinning. I followed up with issue#822 which had similar problem, however when I removed product_id from shelf.json and just left in Constants.h — the text reverted back to Free Download. I think it may have something to do with my string, or the way I have placed the ServerAPI in.
here is my last LOG with the product_id still in shelf.json
2013-05-01 00:22:29.707 Baker[895:1a303] application didFinishLaunchingWithOptions
2013-05-01 00:22:29.708 Baker[895:1a303] ====== Newsstand is enabled ======
2013-05-01 00:22:29.847 Baker[895:1b803] ADDRESPONSE - ADDING TO MEMORY ONLY: http://www.aspectsofentertainment.com/newsstand/shelf.json?user_id=42D76804-8A7C-479B-AF7C-626EB5E96950&app_id=com.aspectsofentertainment.aspectsofentertainment.Baker
2013-05-01 00:22:29.862 Baker[895:1a303] alloc a new date formatter
2013-05-01 00:22:29.865 Baker[895:1a303] added aspects-of-entertainment 2013-03-12 14:06:00 +0000
2013-05-01 00:22:29.938 Baker[895:1e703] ADDRESPONSE - ADDING TO MEMORY ONLY: http://www.aspectsofentertainment.com/newsstand/purchases.php?user_id=42D76804-8A7C-479B-AF7C-626EB5E96950&app_id=com.aspectsofentertainment.aspectsofentertainment.Baker
2013-05-01 00:22:29.939 Baker[895:1a303] ERROR: Could not parse response from purchases API call. Received: <3c627220 2f3e0a3c 623e4661 74616c20 6572726f 723c2f62 3e3a2020 556e6361 75676874 20657863 65707469 6f6e2027 50444f45 78636570 74696f6e 27207769 7468206d 65737361 67652027 53514c53 54415445 5b485930 30305d3a 2047656e 6572616c 20657272 6f723a20 38206174 74656d70 7420746f 20777269 74652061 20726561 646f6e6c 79206461 74616261 73652720 696e202f 686f6d65 2f617370 65637473 2f777777 2f777777 2f6e6577 73737461 6e642f74 61626c65 732e7068 703a3232 0a537461 636b2074 72616365 3a0a2330 202f686f 6d652f61 73706563 74732f77 77772f77 77772f6e 65777373 74616e64 2f746162 6c65732e 70687028 3232293a 2050444f 2d266774 3b657865 63282743 52454154 45205441 424c4520 49462e2e 2e27290a 2331202f 686f6d65 2f617370 65637473 2f777777 2f777777 2f6e6577 73737461 6e642f68 65616465 722e7068 70283137 293a2072 65717569 72655f6f 6e636528 272f686f 6d652f61 73706563 74732f77 2e2e2e27 290a2332 202f686f 6d652f61 73706563 74732f77 77772f77 77772f6e 65777373 74616e64 2f707572 63686173 65732e70 68702838 293a2072 65717569 72655f6f 6e636528 272f686f 6d652f61 73706563 74732f77 2e2e2e27 290a2333 207b6d61 696e7d0a 20207468 726f776e 20696e20 3c623e2f 686f6d65 2f617370 65637473 2f777777 2f777777 2f6e6577 73737461 6e642f74 61626c65 732e7068 703c2f62 3e206f6e 206c696e 65203c62 3e32323c 2f623e3c 6272202f 3e0a>
2013-05-01 00:22:29.962 Baker[895:1a303] Refreshing aspects-of-entertainment view with status (null) -> unpriced
2013-05-01 00:22:30.026 Baker[895:1a303] Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" UserInfo=0xa2a7f70 {NSLocalizedDescription=remote notifications are not supported in the simulator}
2013-05-01 00:22:31.344 Baker[895:1a303] ############ REQUEST RECEIVED RESPONSE (
)
2013-05-01 00:22:31.345 Baker[895:1a303] Invalid product identifier: com.aspectsofentertainment.aspectsofentertainment.aspects.2013
2013-05-01 00:22:31.347 Baker[895:1a303] ############ REQUEST RECEIVED RESPONSE (
)
2013-05-01 00:22:31.347 Baker[895:1a303] Invalid product identifier: com.aspectsofentertainment.aspectsofentertainment.subscription.free
cheers.
here is shelf.json
[
{
"name": "aspects-of-entertainment",
"title": "Premiere Edition",
"info": "The first publication in a series written by Ron Greenfield.",
"date": "2013-03-012 14:06:00",
"cover": "http://www.aspectsofentertainment.com/newsstand/bg-01.png",
"url": "http://www.aspectsofentertainment.com/newsstand/issues/book.hpub",
"product_id": "com.aspectsofentertainment.aspectsofentertainment.aspects.2013"
}
]
also the info from the issue.php file, also something I suspect may be a red flag
// **************************************************************************
//
// This file implements the endpoint for the "shelf" API call.
//
require_once 'header.php';
$app_id = $_GET['app_id'];
$user_id = $_GET['user_id'];
$result = $file_db->query(
"SELECT * FROM issues
WHERE app_id='$app_id'"
);
$issues = $result->fetchAll(PDO::FETCH_ASSOC);
// Set up URL to point to `issue.php` endpoint
for ($i=0; $i < count($issues); $i++) {
$issues[$i]['url'] = 'http://www.aspectsofentertainment.com/newsstand/issue.php?name=' . $issues[$i]['name'];
}
echo json_encode($issues);
?>
This is probably the most relevant part of your log:
2013-05-01 00:22:31.345 Baker[895:1a303] Invalid product identifier: com.aspectsofentertainment.aspectsofentertainment.aspects.2013
...
2013-05-01 00:22:31.347 Baker[895:1a303] Invalid product identifier: com.aspectsofentertainment.aspectsofentertainment.subscription.free
Usually, this points to an error in configuring either the app bundle ID or the issue product ID. Please try and double check those.
Hello, is there any news about this? :)