Closed atkinsonbg closed 3 months ago
HI @atkinsonbg
Can you set the keystore information for your DEBUG configuration to the same as your RELEASE config and try again?
Hey @wickedw thanks for the reply!
I did try that, and the build is successful, but during install I get the following error: "Error ADB0010 : Mono.AndroidTools.InstallFailedException: The package was not properly signed (NO_CERTIFICATES)."
When I built the release for upload I used the following: dotnet publish -c Release -f net8.0-android -p:AndroidSigningKeyPass=$(ANDROID_KEYSTORE_PASS) -p:AndroidSigningStorePass=$(ANDROID_KEYSTORE_PASS)
My csproj has this PropertyGroup (normally):
`
<AndroidSigningKeyStore>.android/MY_KEY_NAME.keystore</AndroidSigningKeyStore>
<AndroidSigningKeyAlias>MY_KEY_ALIAS</AndroidSigningKeyAlias>
</PropertyGroup>`
And I used this to try debugging with:
`
<AndroidSigningKeyStore>.android/MY_KEY_NAME.keystore</AndroidSigningKeyStore>
<AndroidSigningKeyAlias>MY_KEY_ALIAS</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>PASS</AndroidSigningKeyPass>
<AndroidSigningStorePass>PASS</AndroidSigningStorePass>
</PropertyGroup>`
Hi @atkinsonbg
Sorry, have not set this up for a good while on my current project.
Assuming your environment / csproj values / variables all match / correct ... I am sure you have checked all that .. maybe someone else can chime in and help.
I have seen users mentioning to clean the project / bin on SO for this kind of error, but no experience to help with.
Please let us know how you fixed it. Good luck.
Still getting the error stating "this version is not configured for billing", even after getting a signed Debug build going.
So if anyone has any ideas on that one, please let me know.
I did however find the issue for "error: "Error ADB0010 : Mono.AndroidTools.InstallFailedException: The package was not properly signed (NO_CERTIFICATES)."
Turns out my keystore file somehow got corrupted and I was missing the error. When I hit debug in the IDE and build would happen, and I was getting a generic "java build error code 2" or something like that. Hitting debug again would get past that error but the install failed with the error above. Luckily, I was smart enough to save off a copy of the keystone file and copying it back in and all worked correctly for the install.
Couple more notes:
The screenshot below shows my "Closed testing - Alpha" release in an Active state. It was submitted and reviewed and we got an email stating "Your recent app updates have been published", that was one day ago.
I verified my Gmail account is in the testers group, and I have enrolled in the test via the URL provided by Google.
Just not sure what I'm missing here.
Fixed one issue, still having another! So turns out signing the app was not the issue at all. I have confirmed that debugging a debug-signed version works fine and I the code can communicate with the Play billing APIs just fine.
Fix for error stating "this version is not configured for billing":
Make sure your testers and configured and they have accepted
Navigate to the Play Console home screen, and click Settings from the left nav
Click the License testing link on that page
When you land on this page, it looks like its already selected, but it is not. So select your testers group, select "RESPOND_NORMALLY" for the Lincense response section and hit save. Now the billing seems to work correctly.
Now my problem is, if I call GetProductInfoAsync
I get the product details back, but if I call PurchaseAsync
it says it can not find the product! @wickedw did you see this issue?
I'm making progress which is good, but still not quite there.
The app has to be Published as well. Mine was in Unpublished, once published the billing worked great.
This is not a bug, I'm just looking for someone who has debugged on a physical device.
Bug Information
Version Number of Plugin: 8.0.2-beta Device Tested On: Android - BLU B160V, Tracfone Simulator Tested On: N/A Version of Jetbrains Rider: 2023.3.4 Version of Maui: 8.0.20 Versions of other things you are using:
Steps to reproduce the Behavior
Expected Behavior
n/a
Actual Behavior
n/a
Code snippet
var purchase = await billing.PurchaseAsync("MY_SUB_ID", ItemType.Subscription);
What I think is happening is, I've signed the AAB as a Release build and that is tied to the Subscription, so when I run a Debug build on the device, the signatures don't match and I can't purchase the subscription.
Can anyone provide the steps to Debug this successfully? Thanks, and @jamesmontemagno this package is sweet, thank you for making this!!