-
Notifications
You must be signed in to change notification settings - Fork 0
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
Need your help! #1
Comments
Did you get to do it? I'm also having that issue |
Hi, yes, you can edit this function to turn an image into a string, and then send the string to the android widget
Then deserialise the image in the WidgetProvider using Kotlin:
|
thanks, working! |
please do you have a working ios process for this? |
Please do you have a working ios process for this? |
Hi, I don't have code for iOS yet. I had issues with the widget showing up on an iOS device, which I don't think are related to the homewidget package. I followed the instructions on the homewidget GitHub page: https://github.com/ABausG/home_widget The code I had in the widget swift file is below. It was/is test code to get a basic widget working. But as I said, on an iOS device or emulator, the widget did not show up to be able to add to the home page. I haven't worked on this yet as I'm redoing my app from the ground up to be more efficient. Will get to this in time and post more once I do - but it will be a while. ` struct Provider: TimelineProvider {
} struct SimpleEntry: TimelineEntry { struct LocalWeatherWidgetEntryView : View {
} @main
} struct LocalWeatherWidget_Previews: PreviewProvider { |
@nino-finch might be able to help, as I'm pretty sure he got it working. |
THANKS FOR THIS @roly151 , REALLY APPRECIATE THE FAST RESPONSE |
alright, I hope @nino-finch gets to see this and repond, thank you! |
@roly151 good day bro, i'm here again lol, sorry for disturbing. Please I want to ask how you did the loadData() method for the widget? |
Hi, Can you explain a bit more? I'm not quite sure what you need? Cheers |
Okay, I want the qr code selected and sent to widget to stay fixed in the inapp qr code image view when the user closes and opens the app. Let me elaborate a bit; normally the qr code i send to the widget stays fixed whether app is closes, but it's not the same for the inapp qr code image. So basically i'm trying to keep the qr code in the widget also in the app to show that yeah this is what is currently on your widget unless you want to change it. Note: I use qr code generator, so I parse a text into a textfield and update the qr code, get the image and send to the widget, so by default when you open and close the app the qr code generator refreshes to a pre default qr code from the generator. I do hope you understand. if not let me know. |
If I understand you correctly, when you send the QR code to the widget, you also need to save the QR code image to file on the device? That way, when you close the app, it is saved, and you can load it when the app is opened? Is that correct? |
Yes exactly.. that right. |
You don't need home_widget for that. Just look up a package to save a file to the phone. Then when you load your app, check if there is a QR code saved to file and load that code then save it to the widget? |
I later got it to work by using Authentication and generate the qr code based on the current user signed in so the qr code always stays. |
Hi sorry this is not really a bug report for AusWeather repo but I couldn't find any other way to reach out to you.
Was looking at your post here ABausG/home_widget#34 and was curious if you could share more on how you implement the ImageView on the homewidget library?
Thanks and really appreciate your response!
p.s: sorry again to use this inappropriately, I'd be very happy to connect through email too! My email is [email protected]
The text was updated successfully, but these errors were encountered: