Just like the Calendar app on the iphones and ipods, how do I make the Icon change per day?
I assume this is for an iOS app. The answers is, you can't. The Calendar app has access to functionality in iOS that us mere mortal developers cannot access. You may be able to pull this off with a jailbroken phone, but I've never tried that.
Since changing the icon is not officially supported, if it's numerical information you want to show, you can use the Notification Badge instead.
Updating iOS badge without push notifications
So you could make it show today's date in the badge, and schedule the badge to update at midnight, or show the current temperature and schedule it to update hourly.
There is a new solution for this situation.
You can use
setAlternateIconName(_:completionHandler:)
iOS 10.3 is out with xcode 8.3.
check out solution here
Related
In android we can do an Intent to add an alarm to the default alarm app installed on the device example.
I wonder if it's possible to achieve something similar on iOS?
Regarding to Alarm App, Here you have answer from Apple support and it's related with iOS sandbox.
As far as I know the rationale for this has never been publicly documented. However, the iOS sandbox does not, in general, allow app A to make changes that affect app B or the system as a whole.
In Apple docs you can find description how to set up calendar alarms.
After I install and start my iOS app on device or in the Simulator, the red badge at the corner of the app's icon shows a 5 digits number.
I haven't noticed it for months, then installed some stuff to enable local notifications (linked the standard "PushNotificationsIOS", installed "react-native-push-notifications").
When I saw the bug, I removed everything notifications-related, and yet now I see it no matter how far I go back in my commits history. The number used to change after every notification, but now it is a stable 61'051 after a fresh install.
I would bet that the device is still sending thousands of notifs from an old bug, and the number is the result of a modulo.
What can cause the badge to show up with such a number? What did not get uninstalled properly?
Otherwise, can I remove the badge altogether?
I believe that you scheduled a number of local notifications and would like to get rid of them. Even that you removed all of the notifications related code, it does not mean that already scheduled notification won't be fired. So you have to manually clean them in your code.
If you use iOS 10+ notifications, this may help you:
let center = UNUserNotificationCenter.current()
center.removeAllDeliveredNotifications()
center.removeAllPendingNotificationRequests()
Apple documentation
I want to limit the number of item is shown on notification center,before iOS 9 we can set number in notification setting, but now Apple inc. take it out. how to set the number,can we use programming way to do?
You're right. This feature is no longer available in iOS 9. Please send feedback to Apple requesting this feature back!
http://www.apple.com/feedback/
Starting in iOS 7, my app's entry in Notification Center has sounds defaulting to off for some users. Since my app is an alarm clock and needs to use UILocalNotifications all the time, this obviously is a major problem. Does anyone know what might have changed to cause this problem? And is there anything that can be done to address it?
I have an app that uses notifications too (timing meeting agenda items), and I agree that notification sounds are critical for an app like this. But app can't override the settings in Settings -> Notification Center, so the user must set the notification sounds there.
What I found was that the settings stayed the same when I upgraded the phone to iOS 7, but a re-install of the app can trash them - if the app was deleted before the upgrade. Deleting the app and re-installing (on iOS7 and earlier) doesn't change the notification settings.
I have developed one application. In that, i need to setup alarm everyday or selected days. It should be repeat up to changes by us again. So i took one button in my app for in-built iphone alarm window. Once i click the button, in-built alarm should come in my app. So would you please help me for this problem. Thank you in advance.
Use local notifications to set up alarms
Its not possible to Access build Alarm in iOS Devices.
The only way to create Local Notifications are used to create Alarm Apps in iOS.