Questions tagged [lockscreenwidget]

35 questions
1
vote
2 answers

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. struct WidgetBundler: WidgetBundle { …
bmeikle
  • 291
  • 1
  • 3
  • 5
1
vote
0 answers

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 can be displayed (if enabled) on a locked iphone.
user2591658
  • 21
  • 1
  • 2
1
vote
2 answers

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, password, pattern, face lock.. so I wondered if it…
user4614918
1
vote
1 answer

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, but doesn't work in case of pattern lock. Even in…
user2487487
1
vote
1 answer

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 functionalities will work. But the same app runs on KITKAT…
SurenSaluka
  • 1,534
  • 3
  • 18
  • 36
1
vote
0 answers

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 (android 4.2.2) I'm not able to add the widget on…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
0
votes
1 answer

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 formatting dollar values with a KMB if they exceed…
ppp
  • 713
  • 1
  • 8
  • 23
0
votes
1 answer

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 timer = Timer.publish(every: 1, on: .main, in:…
0
votes
0 answers

iOS 16 Lock Screen Widgets - Cannot Support RTL

I'm trying to add RTL support to my iOS 16 lock screen widgets (.accessoryRectangular family), but haven't been successful so far. This is my code: @available(iOS 16.0, *) struct MyAccessoryView: View { var body: some View { ZStack { …
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
0
votes
0 answers

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 snapshot or image. Any help will be appreciated. struct…
Meluha
  • 1,476
  • 1
  • 9
  • 12
0
votes
1 answer

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: { Text("9") }, maximumValueLabel: { Text("30")…
Deno
  • 43
  • 6
0
votes
2 answers

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, but the same method does not work with the Lock…
RawMean
  • 8,374
  • 6
  • 55
  • 82
0
votes
1 answer

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.free This application show icon on lock screen and…
0
votes
1 answer

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 Android app development? Thanks in advance.
mzichao
  • 3
  • 2
  • 6
0
votes
1 answer

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 should use to accomplish this. If you have any…
HypnoZ
  • 55
  • 1
  • 6