[Closed] Working with unity IAP for one project with 2 different android package name

Hello,

so I setup my project to have 2 different (git) branches : debug branch and publish branch
both branch has same code, it just has different package name.

so I successfully setup Unity IAP in my debug branch , turn on Unity IAP in service tab and integrating the code, tested and work well.

and then when I merged this code into my publish code, the Unity IAP toggle in the service tab suddenly turned off and then I need to turn it on again.

I haven’t tested whether the IAP worked or not yet because I haven’t added the iap products in the publish dashboard. but as I see everytime I switch to publish branch the Unity IAP suddenly turned off I became worry that thing will go wrong. so my question is, what caused the toggle turned off when I switched branch?

my current unity version is 5.4.4

@fugogugo

Are these using different project IDs? It might be that one project has the feature enabled and another doesn’t.

If they are using the same project ID, then we have recently made a change to Services window to reduce these kinds of issues. Previously, the setting on the Services window was determined by the setting on our server. This made it possible that one member of a team disabled a service, which affected everyone else on the team.

We now will use the local value to determine the setting in the Services window. (The server is still set whenever the toggle is switched, but if there is any conflict, the local version is used.)

To make sure these settings are saved, you can make sure the file with this settings is committed in your repo:
\ProjectSettings\UnityConnectSettings.asset

If you have Asset Serialization set to Force Text in your Editor settings, then you can also view the contents of the file and confirm that the services are enabled correctly: