How to test Android in-app purchases for different stores? - unity3d

I've integrated the open-iab for unity: https://github.com/onepf/OpenIAB-Unity-Plugin
into my app and setted up the SKU Mapping for Play Store, Yandex.Store and Amazon App Store.
Now when I start the app and try to make an in-app-purchase the Play Store pop-up is showing.
How can I test it for the other stores? I've installed all of them on my phone.
Thanks in advance.
Regards Dennis

I know the answer is late, but maybe can help others.
You should be able to do this. Once its built as an APK, use
adb install -i store_name your_apk.apk
replacing "store_name" with one of com.yandex.store and com.amazon.venezia - this tells the app who you are saying installed the app.
Note that for Amazon you need to use the Amazon App Tester app (which is good) and download the json file for the IAP products from your Amazon dashboard.

Android Market
Login to play store --> Sttings --> Account details
In account details you'll find LICENSE TESTING tab
Add your testing accounts(xyz#gmail.com) below LICENSE TESTING
And while testing on device make sure that
you have logged in with the same test account on device
OR
if you are logged in with multiple accounts
then your primary account on device should be test account
*Note you cannot test InApp purchase with publisher account
you need another gmail account for testing
For Amazon
You need to build separate apk for amazon in which you need initialize with amazon
for example "OpenIabHelper.mapSku(SKU_PREMIUM, OpenIabHelper.NAME_AMAZON,"yourSKUname");"
and same for other store,
for testing amazon InApp purchase on device you need
to install amazon's InApp test apk
For Yandex Store
I have no idea about Yandex Store,
but if you make another apk for Yandex store too may solve your problem

Related

Is it possible to find the list of all apps pushed via TestFlight

I am installing AppA from CompanyA in my iPhone via TestFlight.
I am installing AppB from CompanyB in my iPhone via TestFlight.
I have my iPhone UDID to CompanyA, CompanyB. Would it be possible for CompanyA that CompanyB's app is installed in the device or vice versa.
Well if both the Company are using different TestFlight account (which is obvious) they cannot get the data.
In TestFlight, you create teams and add Apps to that.
If the team member has developer or leader role he can have access to
Upload and distribute a build to a team
Delete apps and builds
Invite or recruit members to a team
View SDK data associated with a build
Promote/demote testers/developers
Access the team developer site on TestFlight
Respond to feedback via the developer site
Access analytics for live applications
At testflight website Dashboard the data is present
User Device Last install Update Status
Please note the Device UDID has to added while building the app.
Other than the dashboard no one can have the information of which users have installed the apps.
So if both company are using different TestFlight accounts and they are not having a common team member with developer or leader Role, your installation information is safe.
Dashboard information image:
No, it is not possible. Company A will not get any information about Company B's app on your device. Any information that is private to you will not be accessible to any third party.
no one can see which apps you are accessing in u r phone even it is companyA or companyB that udid will be use full only to install apps when they are developing. no one can track your phone with UDID.

ios-provisioning-portal for PushSharp

I want to develop demo application at my development machine.
Here I want to use pushsharp for mobile Notifications and further I want to use it on
iphone.
For pushsharp integration with iphone I requires ios provisioning
reference: https://github.com/Redth/PushSharp/wiki/How-to-Configure-&-Send-Apple-Push-Notifications-using-PushSharp
But https://developer.apple.com is asking for $99 dollars for it use.
So here my question is that Is there any free/developer key is available to this or I need to purchase this.
I need to show some demo before going to purchase any thing.
please help me on this.
Thanks
Apple recommended that developer use the code singing when they want to test application on device. So for that purpose developer have to purchase such a/c. for create provisioning profile and certificates.
you can found more information at developer portal regarding setup profile check this. Also for APNS have to set that enabled in your app id.
You can test your app in Simulator without purchase of $99.
But if you want to test your app in physical device then you must have to purchase developer account of $99.
Also if you want to test APNS then also you need this purchasable account.
So, I recommended to purchase it for other benefits as well.

Application loader error

This app contains an embedded provisioning profile that is not associated with your account. Please use a provisioning profile associated with team ID : I am getting this error while I upload the build with Application loader.
I am using two different accounts.
1) For creating provisioning profile
2) For uploading in iTunes.
Everything had worked fine till date. I have updated my app several times in app store. I am using the same procedure but facing this issue.
What might be the reason? Its an emergency Please help me on this.
Apple does not allow anymore submission of an app on a developer account if this app have been signed using a different developer account certificate (different team ID).
You have no other choice than sign you app with the developer account certificate where you want the submission to be done. If the Bundle ID is already taken on the other/previous developer account, you will have to sign your app using a wildcar mobile provision.
If you need push notif or Game Center or anything that need to avoid a wildcar AppStore mobile provision, then you are in trouble => setup a brand new app (new app ID / Bundle ID) and plan migration of your customers from the old app to the new one ...
See Here
I Think i have cracked this issue, But dont know if there is still a better solution.
As i used a different accounts for creating provisioning profile and submitting it in iTunes, because of which i got this error.
Solution: We have to use the same account for creating the provisioning profile and also submitting it in iTunes. As a trial i did the same, it just worked fine.
I have finally updated my app to app-store successfully!
Reason:
Actually we had an corporate account and an individual developer account. Before we use to update using the individual account, Since the Apple Licence agreement changed some time back.
We cannot upload or update your app with the individual account if it is connected with the corporate account.
Soln:
Need to add or link the individual account to corporate account.

In-App-Purchasing iPhone application?

I am facing problem on In-App-Purchasing in my iPhone/iPad application.
My Issues are :
1> What is the use of Shared Secret - Where we have to use this?.
2> How we can all our application form store?
3> How we can test our application?
4> To enable in app purchase - We need application on app store?
Please give me some guide line for implementing in app purchasing.
Thank you.
I am gone through the apple process to enable in app purchase but I dn't know what I missed in my steps that's why I need more clear steps to understand the In-App-Purchasing with in my application?
Basically I need full steps for In-App-Purchasing.
Thank you.
Start with reading the Apple "In App Purchase Programming guide": https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html
1)http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html YOU CAN FIND YOUR ANSWER HERE.
2)Sorry, didn't get you on this one
3) To test in-app-purchase
step1: log into iTunes connect, Navigate to manage your applications-->add new application (FILL THE INFORMATION)--> Availability date can be set at a later stage, select the price range-->enter the METADATA.
step2: Navigate to contracts, Tax & banking section in Itunes Connect & complete the IOS PAID APPLICATIONS CONTRACT.(Enter bank details, tax & contacts).If your app is free complete IOS FREE APPLICATIONS CONTRACT as well.
step3: Navigate to the manage users section & create a TEST user account.
step4: ADD products to your application.
step5: Transfer the application to your device using developer provisioning profile. The developer provisioning profile should use the SAME BUNDLE ID which was used while adding the application. before transferring the application navigate to settings--> store--> logout from any iTunes user account.
4) There IS NO NEED for APPLICATION TO BE ON APP STORE TO ENABLE IN APP PURCHASES.
I don't fully understand what you exactly need
Apple has a really good documentation on The Store Kit framework.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html
I myself never created something for in-app purchase but to clarify a little bit.
I believe there are 2 ways to implement this
one is writing predefined stuff in youre source
for example, in infinity blade they let you buy extra gold.
The user asks for the list of available purchases from the app store the app store produces a list of in-app identifiers (which are predefined in code and on itunes connect)
the user selects for example "10.000 extra gold" for 0.99 dollar cents
The transaction will be made to the app store, the app store after succes returns a ok message in which the code should have a listener implemented that basically in this example add 10.000 to your "currentGold" variable.
The other way I don't know much about is connecting via an app to app store which in his turn connects to a server that is set up by you.
From what I can gather is that is what is being uses for level unlocks in for example sudoku games etc
as for Testing the purchase.
Whenever you have store kit implemented and try to connect it in the iOS Simulator.
The simulator automatically connects to a Sandbox envirenmont and therfore simulates the payment too

Why doesn't in-app purchase show my application's name when testing in the sandbox?

I have completed in app purchase for my application. Its working fine.
The only problem i have , when i test in app purchase in sandbox enviornment, It shows a message do you want to buy an "un known app" for 1.79. why doesnt it shows the name of the app.
Plus when i am going to upload the final binary to app store. what i need to do to swrich in app purchase from sandbox enviornment to real in app purchase or it will switch automaticall?
Thanks guys
Probably your configuration on iTunes connect for this in app purchase is wrong, maybe you forgot to enter the name.
Go to iTunes connect, Manage you in app purchases, select the desired app, and make sure that you have all the fields correctly filled.
When you release on the app store, you don't have to do anything, the sandbox environment is just used when you are developing, when the app is uploaded to the app store, this behavior changes and you can't use your sandbox account anymore
Hope that helps.
When I added in-app purchase support to my application, I had already released a version so there was an entry in iTunes Connect. But I've read that you need to add a new application in iTunes Connect, but check the option to upload a binary later. Then you can enable In-App Purchase on it and configure items.
And your sandbox does not go away after the application is submitted. The In-App Purchase system determines whether to use a sandbox based on the account that is currently logged in to the store on the device. I think as long as you don't have a credit card (or any payment information?) associated with the account, and the account is designated as a In-App Purchase Test User in iTunes Connect, it will use the sandbox. You can log out and use a different account through the "Store" item in Settings.