应用内购买完成后保存下载的内容
我创建了一个允许用户购买非消耗内容的应用程序。检索 ID 付款流程就像一个魅力。我真正不明白的是如何将我的内容保存到手机中。现有的结构是我当前的所有内容都在 Resources/packages/ 中。对于每个包,package.plist 中都有一个匹配的条目。
购买完成后,就可以从服务器下载内容了。我从服务器检索的是一个 zip 文件,其中包含我购买的新软件包。我的观察者将调用一个名为 ProvideContent 的方法:
-(void) provideContent: (NSString*) productIdentifier {
In here I will call my server and download the package
}
我需要你们提供某种分步演练或教程,说明如何在检索 zip 时(是否允许使用 zip?)解压该 zip 并将其添加到我当前的包中结构。
先感谢您
I have created an app which allows users to buy non-consumable content. The retrieving-ids-payment-process works like a charm. What i can't really figure out is how my content should be saved into the phone. The existing structure is that I have all my current content in Resources/packages/. For every package there is an matching entry in a package.plist.
When the purchase is complete it is time to download the content from the server. What i retrieve from the server is a zip file with the new package that I have bought. My observer will call a method named provideContent:
-(void) provideContent: (NSString*) productIdentifier {
In here I will call my server and download the package
}
What i need from you guys is some sort of step by step walkthrough or tutorial of how, when the zip is retrieved(is zip allowed?), unpack this zip and add it to my current package structure.
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)