I started programming half a year ago. Before that I had nothing to do with it. The reason for this is a project work, in which I have undertaken to write an alarm clock app. I have familiarized myself with the program Flutter, but now just do not get on. My goal is the following:
A simple app, written with Flutter in Visual Studio Code, with a "+" button, with which you can add a new alarm time. At this time the alarm should ring and I get a notification. You can think of it in terms of setup, like Apple's alarm clock app, but much more straightforward. My app also has a second view where the time is shown. However, I have managed to do this. In the attachment I send pictures of my current App. View of my app first page
I would be very grateful if someone could help me with this. I have been trying for so long and have looked at just about every tutorial. I am on the verge of despair as I need to be done with it soon as well.
Related
Hey all I’m new to the world of Xcode and building apps.
I am wondering if it were possible to have an app run in the background and have it listen to the photos library and if it finds a new photo has been added it would automatically upload that to some type of rest api call without the user having to interact/do it manually?
This will only be used in my household so I’m not looking to get it into the App Store or go through any approval process that apple does if it were going to be in the App Store.
So before I spend too much time looking around - is this possible with iOS 14+? Only thing I have come across that remotely sounds like something that would work would be this PHPhotoLibraryChangeObserver but I’m not sure if the user has to interact with it in order for it to be used or not? I’m open to any suggestions you more experienced Xcode programmers have about the above.
I'm creating a keyboard application in iOS. The usage of this application will be very specific:
1. From the text messaging application
2. From the browser, when I hit 'Share'
So, the app itself won't do anything from the menu. My question is, do we absolutely have to need to have an icon in the menu, or can I not have one? I had an icon and only displayed the company logo, but when I submitted it to Apple, they responded saying it doesn't give good user experience and rejected it.
I have seen similar questions, but these were from way back in 2012-14. I am wondering if something has changed (I'm a novice dev, this is literally my first time doing iOS).
I'm trying to make kind of a reminder app and for that to work I'll need it to auto start when the phone comes on in order to track the time. Was thinking of using Messaging Center but that would only work when the app is active and running already. I'm using Xamarin.forms so would appreciate if someone could point me in the right direction.
Android has an AlarmManager that can start a service at specific times.
iOS has no such feature, and hence it can't be done on iOS due to security restrictions.
The only think I could think of, is to schedule a LocalNotification on iOS that the user would then have to press to open the app, but at least it would be a reminder of sorts. Not sure if that will suffice.
I'm a free developer and I use my swift application on my iPhone 7. I'm using Swift 3 and iOS 10.
So the problem is, sometimes (like 2 of 10 times) when I start the app, iOS freezes like 5 seconds before my app actualy comes to the screen. In this time I only see the app icon is in the highlighted state. This only happens with my own app, not with other apps.
My app also does nothing special on startup and this only happens on the real device, the debugger in Xcode always starts immediately.
So is this a normal behavior? And does it work properly when I decide to put it on the App Store?
Thanks in advance.
I have had this happen to me before. No, this does not happen when it is put out on the App Store. One way to get around this is to use TestFlight. You can upload your archive to apple and select on the 'TestFlight' tab of your app. Click on internal testing and then click on your email and the version of the app you want to test. You should then get an email on your Apple ID telling you to test the app, and it will let you download it. Good question :)
To test the same version which would have been uploaded to the store quickly, change the build configuration to release. To do so, click on your app's name (top left), press edit schema, click the build configuration dropdown, also deselect debug executable. (make sure to turn it back when you're going to debug, or create a new schema with the above settings to let you switch quickly in the future)
You might also try using instruments, that lag on startup might happen if you're trying to load many things in memory on your initial view controller's viewDidLoad or app delegate's didFinishLaunchingWithOptions load, especially when trying to load big files such as images, videos or large plists. You might want to try using instruments (the time profiler instrument specifically) in order to check it out.
I'm trying to create a kind of alarm clock app with the swift but I could not figure out how to set an alarm model. I've tried UILocalnotification but I don't want my users to be involved the flow of alarm app other than setting the alarm. Then tried NSTimer and NSRunloop etc. but that didn't work either since those don't work when app gets background. So is there any alternative ways to do that? Any help and suggestion would be appreciated, thanks.
I have been doing research on this for quite some time now. But didn't find any concrete way to do it. You have to use one of the following from the list and make a logic to awake the app from the background.
For the alarm you can go through the blog here. It's having the details, which you can use to make a logic with UIApplicationExitsOnSuspend in info.plist file.
As already suggested, since iOS 7 the only way to have an App running in background is allowing one of the Background Modes.
Background modes
You can find them in the Capabilities section in your project settings. As long as your App does not fall under one of these, you are out of luck :(...
I once tried to write a similar App to yours, and there is really no way to do that right now.
Cheers,
TK