listen_call 0.0.1+1 copy "listen_call: ^0.0.1+1" to clipboard
listen_call: ^0.0.1+1 copied to clipboard

outdated

support background listen call phone in android

listen_call #

support background listen call phone in android

Permission

    /// requestPhonePermission
    ListenCall.requestPhonePermission;

background listen

    ///  callback function
    int a = 0;
    Future onPhoneCall(e) async {
        print(["onPhoneCall", e, a++]);
        print([
            callPhoneInfo["state"] as int,
            callPhoneInfo["incomingNumber"] as String,
            callPhoneInfo["deviceName"] as String
        ]);
    }

    /// init
    ListenCall.initBackgroundCall(onPhoneCall);
1
likes
0
pub points
21%
popularity

Publisher

verified publisherautopc.top

support background listen call phone in android

License

unknown (LICENSE)

Dependencies

flutter, flutter_easy_permission

More

Packages that depend on listen_call