35 questions
1
vote
1
answer
120
views
React Native: Lock Screen Audio Widget Disappears on Pause (react-native-track-player)
I'm building a React Native app that plays audio using react-native-track-player. Everything works well when the audio is actively playing — I can see the media widget on the lock screen, control ...
2
votes
1
answer
329
views
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) ...
3
votes
0
answers
1k
views
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 ...
0
votes
1
answer
637
views
Text gets cut off in accessoryCircular lock screen widget
I am working on an accessoryCircular (lock screen) widget that shows 2 values; a formatted $$ value and a 3-letter word.
The $$ value can be anything (e.g., $0 or $200K or 400M or 500B). I am ...
0
votes
1
answer
402
views
SwiftUI: Timer.publish not working on Lock Screen widget iOS 16
I am implementing timer on lock screen widget using Timer.publish and .onReceive on Text. But the timer is not firing. let ...
2
votes
0
answers
424
views
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()....
2
votes
1
answer
1k
views
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 ...
0
votes
0
answers
466
views
how to bring a Widget snapshot in "Add Widget" list?
How can we add a widget snapshot in "Add Widget" list as I have marked in red below?
Once I create a widget I can see my app available under the list however not able to make it appear as a ...
0
votes
2
answers
1k
views
SwiftUI lockscreen widget Gauge accessoryCircular modifier how to set value to empty like weather 0% Precipitation probability
I tried set value to 0, -1, and 999999, and didn't work.
My code:
Gauge(
value: -1,
label: { Text("label") },
currentValueLabel: { Text("4") },
minimumValueLabel: { ...
1
vote
1
answer
2k
views
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 ...
4
votes
1
answer
2k
views
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:
...
0
votes
2
answers
1k
views
iOS 16 Lock-screen Widget: can we add a deep link to the widget
I want the user to be able to tap on a lock-screen widget created by my app and deep link to my main app (eg, so that my main app can take some action)
I have been able to do this with Home Widgets, ...
2
votes
1
answer
1k
views
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, ....
1
vote
2
answers
251
views
How can I remove the @available tag in the this Swift struct?
I have the following code in my WidgetBundle class, but I want to remove the @available tag since as is, if the user is not iOS 16, they won't have access to Home Screen or Lock Screen widgets at all.
...
7
votes
1
answer
3k
views
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
...
5
votes
0
answers
2k
views
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 ...
1
vote
1
answer
684
views
Android LockScreen Widget
Can we show any widget on the lock screen as per the latest android sdk? or
How we can draw a layout on lockscreen?
Reference Application: https://play.google.com/store/apps/details?id=app.medicalid....
1
vote
1
answer
199
views
How to make my WearOS app work on LockScreen?
How do I make my WearOS app work on LockScreen? My app reacts to tapping the smartwatch on an NFC tag. I hear about widget, but it's almost dead now. Is lockscreen programming still possible in ...
0
votes
1
answer
410
views
Create an alarm clock on lock screen
I would like to make my own alarm clock app, but I can't figure out how to display an activity on top of the lock screen - like the alarm screen here.
Even after some research, I have no idea what I ...
4
votes
2
answers
2k
views
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 ...
0
votes
1
answer
749
views
How to create lock screen notifications in my app?
I'm trying to create a custom notification in my android app with an image that will also be visible when the phone is locked.
Right now, Im building push notifications which are visible on the ...
1
vote
0
answers
26
views
Is it possible to have my app accessible from the iphone lock screen the same way *Medical Id is available?
I want to know if it is possible for my app to display information to the user EVEN if they haven't unlocked their iphone lock screen. I want it to act similar to the way the Medical ID information ...
2
votes
1
answer
1k
views
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/...
15
votes
1
answer
9k
views
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)...
0
votes
2
answers
2k
views
How to set android Lock Screen Wallpager via Intent
I see many people have asked about this problem like here, here and ... but I can not find any solution.
However, I see some background app on playstore can do it.
My purpose is that I want to ...
3
votes
0
answers
109
views
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 ...
0
votes
2
answers
1k
views
How to make lock screen widget wallpaper android
Actually I am working on music player widgets, I made home widget for music player and it is working fine,but when I play any song I need to show that song image on android lock scren, I tried ...
0
votes
1
answer
292
views
How to integrate any weather widget in lockscreen apps in WP 8.1?
I have developed a lockscreen app for window phone 8/8.1, that's released in the windows store, but lot of my friends suggested that I should integrate the weather widgets with customize options like ...
1
vote
1
answer
2k
views
Provide custom lock screen method
I'm looking for a way to create a custom lock screen method, but was unable to find any official informations about in the API docs. Stock android currently ships with different methods such as PIN, ...
1
vote
1
answer
388
views
android setting up lock screen widget
I need to develop an app including feature to add widget on lock screen.
I tried that on 3 devices so far -
1) Samsung Galaxy s4 (KitKat 4.4) - It worked well, if the lock is swipe screen lock,
...
1
vote
1
answer
192
views
Android Multiple API Integration
I need to know how to build an Android app targeting android:minSdkVersion="8" but also include features available in Latest Android API's as well. So when a user runs the app on FROYO basic ...
1
vote
0
answers
168
views
widget in the lockscreen
I want to add a widget in the lock screen. On HTC ONE (android 4.4.3) I've added it, but somehow it's not on the main screen, you have to scroll to the second screen to see it and on Huawei Ascent P6 (...
0
votes
0
answers
229
views
Can i show a widget or notification that user can interact with on lock screen?
Is it possible to show some kind of widget or notification that the user can interact with without having to unlock his phone ? such as the media player on the HTC phones [Didn't use any other brand :)...
3
votes
1
answer
3k
views
Cordova/PhoneGap lock screen music controls [closed]
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 ...
10
votes
3
answers
18k
views
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-...