Fix notification event data
This commit is contained in:
		| @@ -48,6 +48,9 @@ public class NotificationActionReceiver extends BroadcastReceiver { | ||||
|                     } else { | ||||
|                         dataToSend.put("type", "fire_event"); | ||||
|                         requestData.put("event_type", "ha_client_event"); | ||||
|                         JSONObject eventData = new JSONObject(); | ||||
|                         eventData.put("action", actionData.getString("action")); | ||||
|                         requestData.put("event_data", eventData); | ||||
|                     } | ||||
|                     dataToSend.put("data", requestData); | ||||
|                     String stringRequest = dataToSend.toString(); | ||||
|   | ||||
| @@ -16,10 +16,8 @@ import 'package:http/http.dart' as http; | ||||
| import 'package:charts_flutter/flutter.dart' as charts; | ||||
| import 'package:flutter_markdown/flutter_markdown.dart'; | ||||
| import 'package:flutter_custom_tabs/flutter_custom_tabs.dart'; | ||||
| //import 'package:firebase_messaging/firebase_messaging.dart'; | ||||
| import 'package:flutter_secure_storage/flutter_secure_storage.dart'; | ||||
| import 'package:device_info/device_info.dart'; | ||||
| //import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | ||||
| import 'package:in_app_purchase/in_app_purchase.dart'; | ||||
| import 'plugins/dynamic_multi_column_layout.dart'; | ||||
| import 'plugins/spoiler_card.dart'; | ||||
| @@ -161,7 +159,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.md'; | ||||
| const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.0-b2.md'; | ||||
|  | ||||
| Future<void> _reportError(dynamic error, dynamic stackTrace) async { | ||||
|     // Print the exception to the console. | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| name: hass_client | ||||
| description: Home Assistant Android Client | ||||
|  | ||||
| version: 0.0.0+1147 | ||||
| version: 0.0.0+1148 | ||||
|  | ||||
|  | ||||
| environment: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user