Comments (13)
class IncomingCallActivity
help me to create class IncomingCallActivity? any exemplo?
from flutter_callkeep.
displayCustomIncomingCall
is for usage without having the "Telephone Account" and the connection services. It simply creates a notification with a full screen intent.
In order to use it you need to create a secondary Activity in your app, using native code. Some quick steps that might not be complete:
-
Add the full screen intent permission
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
-
Add the activity to the Android Manifest:
<activity android:name=".IncomingCallActivity" android:exported="true" android:showOnLockScreen="true" />
-
Build the activity that will be showed when displaying the call. I used Android Studio for this.
public class IncomingCallActivity extends Activity ...
-
Trigger showing the screen, this can be done from a background isolate (e.g. Firebase
handleBackgroundMessage
as well!)await CallKeep.displayCustomIncomingCall( 'com.yourcompany.yourapp', // Change this 'IncomingCallActivity', icon: 'notification_icon', // Make sure you have this icon in your assets extra: <String, dynamic>{ // Here you can pass any key value pairs that you can read using `getIntent().getStringExtra("key")` in the native activity }, )
from flutter_callkeep.
@LinusU Thank you.
from flutter_callkeep.
@VictorUvarov android/app/src/main/res/drawable/notification_icon.png
from flutter_callkeep.
from flutter_callkeep.
@LinusU Where exactly does the icon have to be located?
from flutter_callkeep.
Hi,
I am from completely iOS background. I am not aware of android.
Can anyone give complete IncomingCallActivity with accept and reject callbacks.
I am using displayCustomIncoming call method instead of displayincomingCall() because i dont want to use "Telephone Account" and the connection services. Incoming call notification is coming, but i need accept or reject call backs when clicks on any of the buttons.
Please any one help me with complete IncomingCallActivity with accept and reject callbacks/actions.
from flutter_callkeep.
Thank you for your quick reply.
Yes. I have already used this project https://github.com/flutter-webrtc/callkeep and it is working fine for me. But the problem is " i dont want to use "Telephone Account" and the connection services". Thats why i am checking with displayCustomIncomingCall() with accept reject button action call backs.
from flutter_callkeep.
from flutter_callkeep.
Actually it is not clear to me.
I am working on video calling webrtc app. So when end user gets incoming call and clicks on answer button, i can open video camera screen and initiates the video call. If reject button, dismissing alert.
So, in my case nothing doing with android native phone accounts and call logs. And also unwantedly need to ask phone account and call logs permissions etc.
from flutter_callkeep.
from flutter_callkeep.
Okay. Got your point. I will check whatsapp and skype call with gsm call. Then i can move forward into this issue.
Thank you.
from flutter_callkeep.
from flutter_callkeep.
Related Issues (20)
- full example HOT 1
- Full screen not working HOT 2
- Android terminated application can't get incoming call HOT 3
- null safety support
- Support for Flutter 2.0 HOT 2
- How to receive actions from customcallnotification ?
- Nothing happens
- Does it work on iOS? HOT 7
- IOS screen is not visible HOT 1
- unable to run example project HOT 2
- call notification is showing but sound is not playing HOT 1
- package not supported for andriod 13 HOT 2
- flutter call keep not working in app terminated state in release mode but in debug mode its working fine. || Android HOT 4
- IOS Platform Error: flutter_callkeep/SwiftCallKeepPlugin.swift:152: Fatal error: Unexpectedly found nil while unwrapping an Optional value
- Incoming call does not show in background state in ios HOT 5
- call gets dismissed in 30 secs HOT 3
- java.lang.IllegalArgumentException: Drawable resource ID must not be 0
- [Android]: Function CallKeep.instance.endAllCalls(); not working when app in lockscreen HOT 1
- flutter_callkep not working in release mode but working fine in debug state HOT 2
- Incoming call notification customization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_callkeep.