Closed davidnardya closed 7 months ago
@davidnardya This isn't an SDK question, this is a more general Android development question... That being said, I don't believe you can make a full screen notification. At best, you can make a notification that when the user taps on it, it launches a full screen activity.
With the latest Android SDK (34) you can make full screen notifications more info can be found here..
https://developer.android.com/reference/android/app/NotificationManager#canUseFullScreenIntent()
https://developer.android.com/develop/ui/views/notifications
I would recommend modifying our Quickstart where we put up notifications and adapt it to fit your needs
Description
I am trying to change the incoming calls notification to present a full screen designed view and not a simple notification at the top of the screen. I understand Android OS now blocks services from starting the activity, and when I tried to use full screen intent there was no change to the size of the notification. I also tried to create a custom view for the notification but still no change.
Steps to Reproduce
Code
Here's the notification creation code:
Here's the custom view:
Here are the manifest permissions:
And the services in the manifest:
Please advise
Expected Behavior
Get a full screen view (matching the entire phone's screen)
Actual Behavior
Getting a small notification dialog at the top of the screen
Reproduces How Often
Always
Twilio Call SID(s)
Every call, but for example CAc8270d14e35c4c29507a963baa9bcaa2
Versions
All relevant version information for the issue.
Voice Android SDK
com.twilio:voice-android:6.4.0
OS Version
Android 12
Device Model
OnePlus 7 PRo