Fix in-app purchase
This commit is contained in:
@ -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}");
|
||||
}
|
||||
|
Reference in New Issue
Block a user