返回列表 回覆 發文

[iPhone] In App Purchase如何成功測試????

我已經照著Apple官方的技術文件照一步一步照做了。也參考了許多網路上的討論文章的解決方法,還是無法在測試環境成功抓到 products list ...... 有人知道到底是漏了什麼嗎? ~"~
  1. - (void) requestProductData
  2. {
  3. SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:
  4. [NSSet setWithObject: kMyFeatureIdentifier]];
  5. request.delegate = self;
  6. [request start];
  7. }
複製代碼
log一直出現我送的product Id是invalidProductIdentifiers...............  我確定product ID沒填錯..... 無言...
我喜愛自由的生活,不喜歡被工作綁死。我喜愛自在的活動,不喜歡被小孩束縛。我喜愛自由的思考,不喜歡創意被挶限。
[會心一笑]:
剛在http://developer.apple.com/libra ... /tn2259/_index.html這篇文章看到了這句話:

Important: DO NOT upload the development binary to iTunes Connect until the application is ready for App Review approval. If the binary is present in iTunes Connect and it is not fully functional, App Review will review the binary and likely reject the development binary. Testing In App Purchase will fail if you or App Review reject your most recent binary in iTunes Connect. The workaround in this case is to upload a binary without In App Purchase features that can get approved by App Review. Once the binary is approved, resume testing the binary with In App Purchase features.


.....................................
之前看別的開發者的部落格教學還叫我要先upload一個binary file,再reject............ 我暈........
http://troybrant.net/blog/2010/0 ... a-full-walkthrough/
我喜愛自由的生活,不喜歡被工作綁死。我喜愛自在的活動,不喜歡被小孩束縛。我喜愛自由的思考,不喜歡創意被挶限。
[會心一笑]:
what is the product ID you use?
Mobile Force:
你把失敗的情況描述再清楚一點,是等不到response還是return fail之類的,
這樣才好給出正確的建議!
IFUNPLAY CO., LTD.
http://www.ifunplay.com
[會心一笑]:
如果你是在某個app第一次test in-app purchase,一定要在手機上把該app deleted掉之後再安裝一次!
試試看吧!
IFUNPLAY CO., LTD.
http://www.ifunplay.com
回復 5# magicboker


今天沒事又測試In App Purchase功能一次,code一行都沒改,結果居然成功抓到資料了! @@

這樣看起來,跟有沒有先放過Binary File一點關係都沒有... 單純只是需要多點時間等待新註冊的Product ID生效而已.... 只是..... 也等太久了吧,整整等了兩天都還沒生效... 非得等到快一個星期? @@

還是像你說的一樣,非得要把app從手機整個砍掉再重裝? 我之前測試的時候倒是真的沒這樣做過...
我喜愛自由的生活,不喜歡被工作綁死。我喜愛自在的活動,不喜歡被小孩束縛。我喜愛自由的思考,不喜歡創意被挶限。
[會心一笑]:
我是剛註冊IAP完一分鐘內就可以用了, 技巧是要delete掉手機上的app再install.
這樣省很多時間
IFUNPLAY CO., LTD.
http://www.ifunplay.com
[會心一笑]:
返回列表