-
Notifications
You must be signed in to change notification settings - Fork 0
Android Self-Managed Calls #19
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
Conversation
…tion for non-dimisss messages
…ncoming connection failing
…x issue using full screen intent
… message with payload.dimiss
…le times for the same call uuid
…e self managed (results in onShowIncomingCallUi() now working
…le answer and decline intents from CallNotification
…tMap" This reverts commit 6f78052.
… for receiveEvent
| } | ||
| } else { | ||
| if(permissionCounter == 2) { | ||
| Intent phoneIntent = new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be removed, I believe this is the CallingAccount permission that we no longer need for SELF_MANAGED. I would remove the CallingAccount permission from the phone and see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also a few permission requests in facetalk for android.permission.READ_PHONE_STATE and android.permission.READ_PHONE_NUMBERS which may not be needed anymore.
|
|
||
| disconnectConnection(callUUID, DisconnectCause.REJECTED); | ||
|
|
||
| showWebApp("declineCall", payloadString); // Controversial UX but doing so that we can tell the web app to reject the call (which may let the caller not it was declined) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to start the app without bringing it to the front? If that's possible then it might be better UX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see if this works without this, there is a possibly we could directly tell the facetalk backend to decline the phone call (would have to look into whether this is practical / makes sense to do).
I'll confirm what the desired UX is, alternatively we could reject/disconnect the connection, close the notification and do nothing (which would not let the caller know its disconnected).
|
For your sanity testing, please make sure to check all of the ringing + answer/decline scenarios of
|
|
I will be off for the next 2 weeks, I don't have much issue other than the old permissions needing to be removed. Plus this needing another ticket for the active call page when in the lockscreen, and verifying that it works when you toggle in/out of lockscreen when the call is active. |
|
Approved pending changes |
… notification if connection is already gone
…final (to prevent re-assignment)
…onding connection is ended
… and PHONE_NUMBERS
…ires READ_PHONE_NUMBERS permission
… and open relevant settings page
… and open relevant settings page
… and open relevant settings page
Must be accompanied by the "android-calls" branch of cordova-plugin-firebasex:
iotum/cordova-plugin-firebasex#8
Works in foreground, background, lock screen and even works if the app is shutdown.
(Android decides whether to display a top card for the notification, or to launch the full screen intent/activity instead)
Full-screen intents are only sometimes launched (with restrictions), can be disabled by user, etc. would look like this (and will be shown instead of above, works on lock screen too):
The CallActionReceiver responds to "rejecting" the corresponding connection, facetalk app (in MainActivity) is opened so that we can emit the "reject" event to it.
This is controversial - instead we could just mark the connection as disconnected, and close the notification (dont bring up facetalk web app)
More screenshots / diagram of UI:
https://docs.google.com/drawings/d/1ccL-BhMlYNlx5qHrQSK463Je2ATh-0CGDDGvTGk2F-w/edit