Questions tagged [lockscreenwidget]
35 questions
15
votes
1 answer
How to use Glide in remoteViews?
I'm using Glide for all loading images from server, but I'm having troubleshooting trying to set them in a correct way to notifications and RemoteControlClientCompat (that cool thing with lock screens). I am developing a music player, so every time…

Damia Fuentes
- 5,308
- 6
- 33
- 65
10
votes
3 answers
Media Control on Lock Screen like Google Play Music in android?
I had gone through Lock-screen Widget documentation, i implemented it but this is not what automatically place on main Lock Window. I searching for solution which provide Media Control over Main Lock-screen window (in Jelly Bean and above) like…

Tofeeq Ahmad
- 11,935
- 4
- 61
- 87
7
votes
1 answer
How can we add a Lock Screen Widget (requiring iOS 16) and still support iOS 15?
How can we add a Lock Screen Widget to an existing Widget Bundle and still support iOS 15? :thinking_face: for ex this won't compile
struct SecondExtraBundle: WidgetBundle {
@WidgetBundleBuilder
var body: some Widget {
…

GarySabo
- 5,806
- 5
- 49
- 124
5
votes
0 answers
How to show custom UI / widget on Lock Screen in Android
I have a requirement to show a customised screen over/on the lock screen in android. logically I want to show a screen (an activity) when phone is locked.
[]
I have tried multiple ways to achieve this functionality but no luck yet.
some links which…

ROSHANI SAHU
- 51
- 3
4
votes
1 answer
How do you get rid of the background color in iOS lock screen widget?
Using the following code:
var body: some View {
switch widgetFamily {
case .accessoryInline:
inlineAccessory
case .accessoryRectangular:
rectangularAccessory
case…

Ferdinand Rios
- 972
- 6
- 18
4
votes
2 answers
Display UWP control on lock screen
What I have done
I got the requirement that the user needs to be able to start my application through the windows lock screen. After searching the www it turned out to hook up hotkeys from the lock screen is very difficult (if not impossible).
Then…

HaaLeo
- 10,065
- 3
- 44
- 55
3
votes
0 answers
Perform ACTION_CALL on locked phone
I'm developing an app with a widget. Now I've my widget on the lockscreen and I need to make a call when the user taps on widget. Is it possible to do that with locked screen? Is there a permission for this?
Thanks a lot!

MGDiez
- 111
- 1
- 9
3
votes
1 answer
Cordova/PhoneGap lock screen music controls
I am creating a multimedia iOS/Android app using Cordova and would like have control over the application (previous, next, play/pause controls) when screen is locked.
Does someone know if there is a Cordova plugin allowing to do this or will I have…

user3832053
- 426
- 4
- 4
2
votes
0 answers
Can't get SVG image to work in IOS lockscreen widget
please consider the following widget view (the entry.icon is a string which points to a resource where the file is an SVG):
case .accessoryCircular:
VStack{
Image(entry.icon).resizable().padding().border(.red)
Text("IN")
}
The image works…

Mathias
- 3,879
- 5
- 36
- 48
2
votes
1 answer
How to set a custom font for accessoryInline iOS 16 Lock Screen widgets?
I want to set a custom font for inline widget text. I put the custom font to the accessory Rectangular and it's working well however, I am not able to set the font to the accessory Inline widget.
Here I attached an image of the custom font for lock…

Ravi Kotadiya
- 57
- 1
- 6
2
votes
1 answer
Android Notification not working for single click/tap on lock screen
I am putted my logic in android background service,which will be start on onClick action of my sticky notification.Everything working fine but problems are:-
When I am lock my phone and try to click/tap on notification it requires double click/tap…

Anil Ravsaheb Ghodake
- 1,587
- 2
- 27
- 45
1
vote
1 answer
SwiftUI WidgetKit Layout Inconsistency: Why does Text Alignment Break in Smaller Widget Sizes?
I'm new to WidgetKit and I'm trying to create a widget. I've constructed a simple grid to display the days of a month as shown below:
struct extenEntryView : View {
@Environment(\.widgetFamily) private var widgetFamily
var entry:…

MendelG
- 14,885
- 4
- 25
- 52
1
vote
0 answers
Accessory Widget Rectangular with Rounded Corners, Highlighted Background
My iOS accessory widget (a.k.a. iOS 16 "lockscreen" widget) supports both the .accessoryRectangular and .accessoryCircular families.
But since I want a "pill" shape for my rectangular widget (instead of the default sharp corners), I came up with…

Nicolas Miari
- 16,006
- 8
- 81
- 189
1
vote
1 answer
iOS 16 Lock Screen Widget along with Home Screen Widget
I am trying to add lock screen widget in existing app which is having .medium widget.
The problem is as soon as I add lock screen widget on device, home screen widget getting blank. Once I remove lock screen widget from device the home screen widget…

Mubin Mall
- 546
- 10
- 25
1
vote
1 answer
New Widget Families for Lock Screen Widgets in SwiftUI doesn't appear among supported families
I am trying to code new lock screen widget introduced with ios 16. I follow the steps on the link below, but new supported families of WidgetFamily class (.accessoryInline, .accessoryCircular, .accessoryRectangular) does not appear. What am I doing…

Ömer Karaca
- 880
- 1
- 8
- 13