Fix in-app purchase

This commit is contained in:
estevez-dev
2020-06-13 11:05:06 +03:00
parent 1c686402d0
commit d09afc37b5
3 changed files with 5 additions and 6 deletions

View File

@ -160,7 +160,7 @@ EventBus eventBus = new EventBus();
//FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
const String appName = 'HA Client';
const String appVersion = String.fromEnvironment('versionName', defaultValue: '0.0.0');
const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.0-b2.md';
const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.2.md';
Future<void> _reportError(dynamic error, dynamic stackTrace) async {
// Print the exception to the console.
@ -249,6 +249,7 @@ class _HAClientAppState extends State<HAClientApp> {
positiveText: "Ok"
)
));
InAppPurchaseConnection.instance.completePurchase(purchase[0]);
} else {
Logger.d("Purchase change handler: ${purchase[0].status}");
}