Question by
DearUnityPleaseAddSerializableDictionaries · Jan 04, 2019 at 12:24 AM ·
iosappstorereview
Weekly intervals for requesting store review for iOS (app rating). Timestamp.
Okay, so I am trying to make a method to request store review, but I'm finding it hard to test.
I am using this method:
Device.RequestStoreReview();
Okay, so I create a wrapper, let's call it, MyRequest().
public void MyRequest() {
int timeDifference = GetCurrentTimestamp() - GetTimestampOfLastSuccessfulRequestStoreReview();
if (timeDifference < 86400 * 7) return; // Hasn't been a week, so don't request
Device.RequestStoreReview();
SetTimestampOfLastSuccessfulRequestStoreReview(GetCurrentTimestamp());
}
Is the logic correct? On iOS, what are efficient ways of implementing getting the current timestamp() for mobile specifically (unix timestamp?)? I assume getting and setting the timestamp of the last successful request store review can be done via PlayerPrefs.
Thanks.
Comment