Open danj565 opened 2 years ago
Maybe because user hasn't added your app to calling account.
if (!_callKeepInited) { _callKeep.setup( null, <String, dynamic>{ 'ios': { 'appName': 'CallKeepDemo', }, 'android': { 'alertTitle': 'Permissions required', 'alertDescription': 'This application needs to access your phone accounts', 'cancelButton': 'Cancel', 'okButton': 'ok', 'foregroundService': { 'channelId': 'com.company.my', 'channelName': 'Foreground service for my app', 'notificationTitle': 'My app is running on background', 'notificationIcon': 'Path to the resource icon of the notification', }, }, }, backgroundMode: true); _callKeepInited = true; }
Use this to fire up the permission so that user can add your app to calling account
Great library. thank you! For some reason I cannot get the callback methods to fire. The following line is always returning false regardless of my permissions / setup and I believe that is my problem.
telecomManager.getPhoneAccount(handle).isEnabled()
Here are my permissions:
And I also added the following to application: