-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Error when do await FlutterCallkitIncoming.activeCalls(); #132
Comments
This error is caused when you are not connected to internet. Check your internet connectino and try again: |
This error is not caused because of lack of connectivity. I face this too in android. Also, there is nothing common between the link you provided and the log in this issue except that both are "PlatformException". |
Ok I am sorry for this I will look into it again |
Same error with version ^1.0.2+1 I'm downgrading to ^1.0.1+6 |
I am also facing the same issue. flutter_callkit_incoming: ^1.0.2+1 |
1.0.1+6 works for you? |
this error has nothing to do with internet connectivity, @hiennguyen92 please whats the way forward on this? |
try that fork : https://github.com/PaulBout1/flutter_callkit_incoming.git |
I can see that this repo is directly linking up to @hiennguyen92 original repo, but please what version its working for you let me downgrade my version |
and again, if i dare downgrade to lower version, am afraid I will start having some issue with the package |
Ok. I will check ut |
@hiennguyen92 please see this |
I'm also facing this issue. |
its having bugs |
get call not returning current call details |
I have fixed it for my project. fun getDataActiveCalls(context: Context?): ArrayList<Data> {
val json = getString(context, "ACTIVE_CALLS", "[]")
return Utils.getGsonInstance()
.fromJson(json, object : TypeToken<ArrayList<Data>>() {}.type)
} I just created a new function fun getDataActiveCallsForFlutter(context: Context?): ArrayList<Data> {
val json = getString(context, "ACTIVE_CALLS", "[]")
return Utils.getGsonInstance().fromJson(json, object: TypeToken<ArrayList< Map<String, Any?>>>() {}.type)
} and replaced the old one with it in "activeCalls" -> {
result.success(getDataActiveCallsForFlutter(context))
} here is my fork flutter_callkit_incoming. Hope it helps somebody. |
thanks @rohithmahesh3 , let me try it out. |
bro, there are many bugs in this version of the package do well to follow up closed issues and open issues in this repo so as to be current |
Please do not hijack the issue. Open a new issue to ask your question or search for existing ones |
go with current version, a lot of bugs has been fixed and do well to make some changes according to @rohithmahesh3 suggestion and that should help by the way @wahabsohail we are all learning, learn to learn |
you saved my time and everything its in order now. |
In release mode its returning invalid json ] |
Off topic. solution is here : #83 (comment) |
For production which is best version this : https://github.com/PaulBout1/flutter_callkit_incoming.git. or. https://github.com/rohithmahesh3/flutter_callkit_incoming.git. Please suggest |
|
E/flutter (31530): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(error, Unsupported value: 'Data(args={})' of type 'class com.hiennv.flutter_callkit_incoming.Data', , null)
E/flutter (31530): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter (31530): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter (31530):
E/flutter (31530): #2 FlutterCallkitIncoming.activeCalls (package:flutter_callkit_incoming/flutter_callkit_incoming.dart:72:12)
E/flutter (31530):
E/flutter (31530): #3 SIPUAManager.checkCurrentCall (package:calleriha/sip_ua/sip_ua_manager.dart:211:17)
E/flutter (31530):
E/flutter (31530): #4 _MyCallScreenWidget._buildActionButtons. (package:calleriha/sip_ua/callscreen.dart:409:41)
E/flutter (31530):
E/flutter (31530):
The text was updated successfully, but these errors were encountered: