3

I'm explicitly NOT referring to in-app purchases.

Is it possible to discover the purchase date of the application itself on iOS?

I'd like to reward early purchasers. Rewarding early users (those who launched the app) is not the way to go. I'd like to reward people who bought the game, for example, between Jan 1st and Jan 31st, even the portion of customers who who made the first launch on Feb 28th.

Ideas?

4

3 に答える 3

2

これを更新するだけで、それは可能です。この質問への回答を見てください。レシートのフィールドの 1 つに「最初の購入日」があります。これについて説明している WWDC13 のビデオ/プレゼンテーションもあります - 「領収書を使用してデジタル販売を保護する」

アプリ内レシートをローカルで検証し、iOS 7 でレシートをバンドルするための完全なソリューション

于 2014-04-16T20:26:59.830 に答える
-1

私はこれがどの方法でも不可能であるとほぼ確信しています。

ただし、アプリケーションの最初の「起動」の日付を潜在的に保存して、それでやりたいことを何でもすることができます。

if ([[[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys] containsObject:@"firstLaunch"]) {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate date] forKey:@"firstLaunch"];
}

NSDate *firstLaunch = [[NSUserDefaults standardUserDefaults] objectForKey:@"firstLaunch"];

if (firstLaunch < Cutoff) {
    // Do Something
}
于 2012-05-16T16:01:55.867 に答える
-2

残念ながら、それは不可能です。

于 2012-05-16T16:01:55.460 に答える