1. How to quickly add SHA1 fingerprint to Firebase?
You can generate SHA1-SHA256 by using this command
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
after that add the generated key to your firebase.
2. How to test Google Play Billing 8.0.0?
flutter build appbundle
Use in_app_purchase plugin; listen to purchaseStream and complete purchases properly:
in_app_purchase: ^3.2.3
// 1. Listen early in initState
_subscription = InAppPurchase.instance.purchaseStream.listen(_onPurchaseUpdated);
// 2. Handle updates
void _onPurchaseUpdated(List<PurchaseDetails> purchases) {
for (var purchase in purchases) {
if (purchase.status == PurchaseStatus.purchased ||
purchase.status == PurchaseStatus.restored) {
final valid = await verifyPurchase(purchase);
if (valid) {
deliverProduct(purchase);
}
}
if (purchase.pendingCompletePurchase) {
await InAppPurchase.instance.completePurchase(purchase);
}
}
}
You can also follow this youtube video for your reference:
3. Can I go to production in 36 hours?
Plan:
4. Can I submit to store without login system?