Comments (11)
If onDidReceiveIncomingPush is not called when the app is not running then how to get the payload data in this case. Can you let me know guys the possibilities to get the payload
from flutter_ios_voip_kit.
If onDidReceiveIncomingPush is not called when the app is not running then how to get the payload data in this case. Can you let me know guys the possibilities to get the payload
I have the same problem.
Is there any chance to get the payload from app terminated?
from flutter_ios_voip_kit.
from flutter_ios_voip_kit.
@saurav0171 Thank you for reporting.
onDidReceiveIncomingPush
is not called when the app is not running, because app is not yet running when didReceiveIncomingPushWith
is called. This wasn't well explained, so I'll add a comment in the next version.
On the other hand, onDidAcceptIncomingCall
can be called even if the app is not running.
This is because the app is already running when the incoming call screen is displayed for CallKit.
Please make sure the app is calling FlutterIOSVoIPKit.instance.onDidAcceptIncomingCall
in the Dart class(e.g.: main.dart) that is called immediately after the app is launched with VoIP notifications.
from flutter_ios_voip_kit.
from flutter_ios_voip_kit.
Moreover, when app is opened via Voip Notification, it runs from very beginning and FlutterIOSVoIPKit.instance.onDidAcceptIncomingCall didn't call.
from flutter_ios_voip_kit.
Can you please let me know the method which is triggered in dart file when the app first opens via Voip Notifications?
from flutter_ios_voip_kit.
Steps to reproduce:
1: Voip Notification hits when app is in terminated state.
2: Call picked and it went into app from the beginning and didnt go into
Is the incoming call screen of CallKit displayed at 2?
If you see the incoming call screen of CallKit, is your app running after tapped Accept button(swipe when iPhone is locked)?
Can you please let me know the method which is triggered in dart file when the app first opens via VoIP Notifications?
There is no such method. This is because when the VoIP notification arrives, the app isn't running yet, so I can't call the Dart code (If it is possible to call, it will be helpful to give a PR). If your app launches after you accept(swipe or accept button) on the incoming screen I think it will be triggered callbacks in main.dart.
import 'package:flutter/material.dart';
import 'package:flutter_ios_voip_kit/flutter_ios_voip_kit.dart';
void main() {
runApp(MaterialApp(
home: Home(),
));
}
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> {
final voIPKit = FlutterIOSVoIPKit.instance;
@override
void initState() {
super.initState();
voIPKit.onDidAcceptIncomingCall = (String channelId, String callerId) {
// Use local storage(e.g.: shared_preferences) to save the logs and check if it has been invoked.
};
voIPKit.onDidRejectIncomingCall = (String channelId, String callerId) {
// Use local storage(e.g.: shared_preferences) to save the logs and check if it has been invoked.
};
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('example'),
),
body: Container(),
);
}
}
from flutter_ios_voip_kit.
Thanks buddy. You are a true genius.
from flutter_ios_voip_kit.
from flutter_ios_voip_kit.
Hi @PeppeTapick, have you found solution? have the same problem(
from flutter_ios_voip_kit.
Related Issues (20)
- Can I get uuid/callerId when click accept from background
- whenever I received VOIP push notification my device getting disconnected HOT 1
- Unexpectedly found nil while unwrapping an Optional value HOT 1
- Getting voip token returns a null value HOT 14
- Foreground accept call
- How i can get payload when app is not running on background? HOT 1
- active discussion tab in github HOT 1
- Play sound
- IOS not auto wake up app when app turn off and have a call.
- Read custom key when accept incoming call
- VOIP not working when app closed (Background) in iOS 13 above HOT 6
- null safety version HOT 2
- Crash app when app is running on background
- Error:OpenSSL SSL_read: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca, errno 0 HOT 1
- Voip Token, Device Token, Nodejs Server
- iOS 16 with XCode 14 no support VOIP socket
- Calling type HOT 1
- FlutterIOSVoIPKit.instance.onDidReceiveIncomingPush
- how to get receive voip notification
- How To prevent showing a VoIP (Voice over IP) notification when your Flutter app is open on iOS
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_ios_voip_kit.