Description
This happens every time when I start the app and go into the background and then when notification received and click on that this happens
W/IInputConnectionWrapper(18909): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(18909): getTextAfterCursor on inactive InputConnection
V/FA (18909): Connecting to remote service
D/FA (18909): Connected to remote service
V/FA (18909): Processing queued up service tasks: 1
V/FA (18909): Recording user engagement, ms: 17536
V/FA (18909): Activity paused, time: 64480659
D/EGL_emulation(18909): eglMakeCurrent: 0xd4b1a4e0: ver 3 1 (tinfo 0xd4b0f7b0)
D/FA (18909): Application going to the background
W/FirebaseMessaging(18909): Missing Default Notification Channel metadata in AndroidManifest. Default value will be used.
D/EGL_emulation(18909): eglCreateContext: 0xac539160: maj 3 min 1 rcv 4
D/EGL_emulation(18909): eglMakeCurrent: 0xac539160: ver 3 1 (tinfo 0xd4be3490)
V/FA (18909): Activity resumed, time: 64486708
D/EGL_emulation(18909): eglMakeCurrent: 0xd4b1a4e0: ver 3 1 (tinfo 0xd4b0f7b0)
D/EGL_emulation(18909): eglMakeCurrent: 0xac539160: ver 3 1 (tinfo 0xd4be3490)
V/FA (18909): Inactivity, disconnecting from the service
Activity
darshankawar commentedon Sep 11, 2020
Hi @mouryaavadhesh,
Please provide
flutter doctor -v
and a minimal complete reproducible code sample that shows the issue.Thanks.
mouryaavadhesh commentedon Sep 11, 2020
import 'dart:convert';
import 'dart:io';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/material.dart';
import 'package:vahak/colors/theme_color.dart';
import 'package:vahak/company/details.dart';
import 'package:vahak/config/route.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@OverRide
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State {
FirebaseMessaging fm = FirebaseMessaging();
GlobalKey navigatorKey = GlobalKey(debugLabel: "Main Navigator");
// This widget is the root of your application.
@OverRide
void initState() {
super.initState();
}
@OverRide
Widget build(BuildContext context) {
// visualDensity: VisualDensity.adaptivePlatformDensity,
),
}
static Future myBackgroundMessageHandler(Map<String, dynamic> message) {
if (message.containsKey('data')) {
// Handle data message
final dynamic data = message['data'];
}
}
}
mouryaavadhesh commentedon Sep 11, 2020
E:\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel beta, 1.19.0-4.1.pre, on Microsoft Windows [Version 10.0.19041.450], locale en-IN)
• Flutter version 1.19.0-4.1.pre at E:\flutter
• Framework revision f994b76974 (3 months ago), 2020-06-09 15:53:13 -0700
• Engine revision 9a28c3bcf4
• Dart version 2.9.0 (build 2.9.0-14.1.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at E:\sdk
• Platform android-R, build-tools 29.0.3
• ANDROID_SDK_ROOT = E:\sdk
• Java binary at: E:\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.0)
• Android Studio at E:\Android Studio
• Flutter plugin version 48.1.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.48.2)
• VS Code at C:\Users\moury\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.13.2
[√] Connected device (2 available)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 85.0.4183.102
• No issues found!
Process finished with exit code 0
mouryaavadhesh commentedon Sep 11, 2020
Find the detail I have posted above
darshankawar commentedon Sep 14, 2020
@mouryaavadhesh,
There's similar open issue describing your case, 88.
Please follow-up there for updates and any questions.
Closing this as duplicate.