ios - How to validate that a user is accessing your url from the app store? -


i'm trying save development time of adding user creation logic in ios app, , considering scenario: user purchases app through app store. via app, give them url lets them create signon site (since have purchased app).

how validate signup legit (besides url)? apple provide kind of id check user against?

edit: option provide additional button says "sign up", in addition current "sign in" button. take little more time, though.

edit 2: change make non-opinion based.

what if take app's receipt , send directly server?

nsstring *receiptpath = [[[nsbundle mainbundle] appstorereceipturl] path]; nsdata *receiptdata = [nsdata datawithcontentsoffile:receiptpath]; nsstring *encodedreceipt = [receiptdata base64encodedstringwithoptions:null]; // send encodedreceipt server 

you server can validate receipt, use (original) transactionid app unique key, , credit user.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -