-
Notifications
You must be signed in to change notification settings - Fork 74
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
onCallAccepted and onCallRejected events from onBackgroundMessage #6
Comments
for the current moment we have only one callback |
@TatankaConCube thanks for replying. Yes this is where I got stuck, I am not able to receive |
we provided the sample app, where we implemented behavior similar to yours, did you check it? |
@TatankaConCube yes I checked that, followed same steps. But not able to detect root cause of the behavior at my side. May be it is because of my old flutter version. |
hm, I do not think so. Did you do any changes to your |
As app was not opening after clicking on Accept OR Reject notification action buttons, so I tried to add |
I am not sure but I suspect that this issue is because of old flutter version and old |
@chetansharmapsi can u explain how u used this, i am still not able to get over this package. |
After updating to version 2.0.1 I have the same problem. This is my log in logcat:
In version 0.1.0-dev.1 my app opened |
@mayder the root cause was localized, the issue will be fixed in the next release |
@mayder the version 2.0.2 was released, try it |
Ok, Thanks |
@TatankaConCube i am trying to accept call or reject call on terminate state but its not pick or reject can u help me out this /// Function type for handling accepted and rejected call events /// {@template connectycube_flutter_call_kit} /// {@macro connectycube_flutter_call_kit} static ConnectycubeFlutterCallKit get instance => _getInstance(); static ConnectycubeFlutterCallKit _getInstance() { static int _bgHandler = -1; static Function(String newToken)? onTokenRefreshed; /// iOS only callbacks /// end iOS only callbacks static CallEventHandler? _onCallRejectedWhenTerminated; static CallEventHandler? _onCallAccepted; /// Initialize the plugin and provided user callbacks. void init(
} /// Set a reject call handler function which is called when the app is in the /// Set a accept call handler function which is called when the app is in the @pragma('vm:entry-point')
}
} /// Sets the additional configs for the Call notification
} /// Returns VoIP token for iOS plaform.
} /// Show incoming call notification
} /// Report that the current active call has been accepted by your application
} /// Report that the current active call has been ended by your application
} /// Get the current call state
} /// Updates the current call state
} /// Retrieves call information about the call
} /// Cleans all data related to the call
} /// Returns the id of the last displayed call.
} static Future setOnLockScreenVisibility({
} /// Report that the current active call has been ended by your application
} /// Returns whether the app can send fullscreen intents (required for showing
} /// Opens the Setting to grant/deny permission for running the fullscreen Intents
} static void _processEvent(Map<String, dynamic> eventData)async {
await ConnectycubeFlutterCallKit.setOnLockScreenVisibility(isVisible: true);
} // This is the entrypoint for the background isolate. Since we can only enter const MethodChannel _channel = MethodChannel( // This is where we handle background events from the native portion of the plugin.
}); // Once we've finished initializing, let the native portion of the plugin class CallState { class BackgroundCallbackName { here i am calling it in my home screen |
Hello,
I am trying to integration this awesome solution. I am able to integration incoming call notifications. But not able to receive
onCallAccepted
andonCallRejected
events when app in is background andprocessCallNotification
started formonBackgroundMessage
. Do we need to do some extra configurations to able to receiveonCallAccepted
andonCallRejected
events when app in is background? Thanks.The text was updated successfully, but these errors were encountered: