Is there a way to add functions to IOS through an app (preferably that can be done in Xcode) that also work outside of the app itself? For example (while the app is running in the background) every time a user presses the spacebar in safari, any entered text will be copied to the clipboard. Thanks!
No - this is not possible and could lead to apps intercepting sensitive data like bank account password etc. You can receive other notifications like push notifications and gps data though.
Related
We have setup some NFC tags which contain a deeplink opening our app.
I would like to know if it is either possible for the notifications created when reading the tag to erase the previous ones, or to do it from the app once one of these system notifications is tapped.
I tried looking into UNUserNotificationCenter.current().getDeliveredNotifications(), but the array doesn't contain any, so I guess iOS handles them differently.
Thank you for your help
There is nothing you can do in your app because these aren't notifications from your app.
I am not sure why this would generally be an issue because I would expect that after scanning the NFC tag, the user would typically tap the notification to open your app, which will remove it.
You will only be left with multiple notifications, as you show in your screenshot, if the user is scanning NFC tags and then ignoring the prompt to open your app.
I want to implement a password screen on my app. Dropbox and 1Password's iPhone apps do this. When you leave and come back it will lock the app, and this also works for if the app is active and you lock the device and unlock it - the password screen will show.
My thought was to use applicationDidBecomeActive but this triggers in asinine cases, like just pulling down Notification Center, which shouldn't lock the app, nor does it in Dropbox or 1Password.
How are they accomplishing this?
I believe what they're actually leveraging is the kSecAttrAccessible attributes of Keychain services, possibly kSecAttrAccessibleWhenUnlocked in this case, to get this behavior in Dropbox and 1Password.
https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/
I don't think you'll be able to get that information via the app delegate's methods directly. You'll want to combine what you know about the app becoming active from the app delegate with the security attributes available to the keychain.
Is there a way to open an app from the lock screen without putting in the password? Like the phone app can be called when a missed call notification is present. Is this possible?
I have dabbled with various ideas to make the main functionality of my app work. Through my research I cannot find an answer to my dilemma.
I want the user to be able to use the app without unlocking the phone or once in the app not being able to quit the app without a password essentially locking the phone from other uses except the main functionality of the app.
I know there are private frameworks that would allow it but is there a way to do it with Apple's approval?
No. This would be a security issue as you could send an APN and potentially allow someone to get into a locked device without the user's approval.
I have a couple apps on the Apple App Store and would like some way to send announcements to users whenever I want. Basically, I want to remotely change the text of an IUAlertview and only trigger it to appear if I want it to (upon app opening and only if I updated the message).
So far I have no problem making the IUAlertview appear on when the app opens, and I can easily program an NSUserDefault flag to only make the IUAlertview appear under certain circumstances, but really have no idea how to dynamically change the UIAlertview text without resubmitting my app to Apple continuously.
Can someone please explain how this is done? Thanks!
One way to do this is to have your app periodically (or upon each launch) check a file on a website that you control and if there is changed text (or a version number, or newer date than the last time an alert was displayed) there, then display that changed text in your UIAlertView.
I am new to programming for iOS and need some guidance on how to link to a website after an app gets deleted. For example, when a user clicks the "X" button, removes the app and any data it stored, the code should open a website.
Is this possible?
No, Apple does not allow you to hook in the SpringBoard to detect app deletion.
There is no work around, it's not possible.