Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminated and locked screen state #8

Open
morfair opened this issue Nov 12, 2021 · 2 comments
Open

Terminated and locked screen state #8

morfair opened this issue Nov 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@morfair
Copy link

morfair commented Nov 12, 2021

Can the plugin work in terminated and locked screen state with FCM?

@morfair morfair added the enhancement New feature or request label Nov 12, 2021
@Alezhka
Copy link
Owner

Alezhka commented Dec 12, 2021

As you can see here notifications are handled with onBackgroundMessage even if the app is terminated. Maybe your problem is that you are not sending a Notification but a "Data only" message. In that case you have to set the field "priority": "high"

@liquidiert
Copy link

Hey @Alezhka could you provide a working example with FCM? Cause when I try to show the notification I just get this exception:

Unhandled Exception: PlatformException(not_configured, Not configured, null, null)
StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
FlutterIncomingCall.displayIncomingCall (package:flutter_incoming_call/flutter_incoming_call.dart:67:5)

Don't really know what is missing here. The configure method has to be called only once right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants