alert/notification in locked screen - iphone

I want to do a simple alert as per given time from the application,alert is also show if phone is locked. and when press ok then go to application view(if phone is locked). if we can not navigate to the application programmatically, then i can do manually do the screen unlock. but when i do the unlock the application should open. so is there any way to do like this?
Yes i know the i can do it with local notification but my question is : when i click "View detail" or any other button + my phone is locked - so can i go to my app.

I think your are looking for Local Notifications see About Local Notifications and Push Notifications

Related

iPhone - Sending the app to the background

In my app, when it runs for the first time, it shows a UIViewAlert and offers you to see the preferences for the app - and the user has 2 choices - yes or no. If the user hits no the alert fades away and the application continues running. I want to set it in such a way, that if the user hits yes, my app will go to the background, the settings tab of the app will be opened (I added a settings bundle to the app). Is it possible to do such a thing? Thanks!
No, this is not possible. But you can create a settings view in you app and show it instead of trying to open the settings app.
Normally, you do want to encourage users to use your app as long as possible, and making them quit your app yourself is not the best way to achieve that.
No, this isn't possible.
But you could use InAppSettingsKit and modally show a view controller with the settings inside the app.
You can find out more here - http://www.inappsettingskit.com/

Can we write the action for Home button in iphone

I am going to develop an application which will be posted in cydia. My requirement is after unlocking the iphone when the user clicks the home button then my application need to be popedup(run) ..
is it possible to do this?
if yes how?
You can do this without any extra code by changing the settings in Activator. The app doesn't need to be in Cydia, either.
Confirm you have Activator installed from Cydia.
Go to the Settings app, followed by Activator.
Choose which environment you want the action to run in: Anywhere, Home Screen, in an app or Lock Screen.
Scroll down to “Home button” and tap the action you want.
Scroll down again, until you see the app you want. Tap it and confirm there is a check mark next to it.
Now your app will start every time the action occurs. If you want this to be automatically set when your app is installed, however, you'll need to include the libactivator header in your code and use its API to set the action. Because the header isn't included with iOS, you'll need to make the app for Cydia.

How to make the iPhone show the location authorization popup again after dismissing it?

I'm trying to integrate the [CLLocationManager authorizationStatus] but ever since the pop up showed once on my app, I tried everything to make it show it again. I deleted the app from the phone, changed the name of the app, change the bundle id, name and app name. It keeps remembering it.
Anyone got an idea?
On the phone, open Settings, goto General, scroll to the bottom, tap Reset, tap "Reset Location Warnings". It's the phone that remembers the settings, not the app.

iPhone Local Notification loop: reset fireDate after device shows notification alert

after studying apple's "Local and Push Notifications in Depth" and loads of forum postings,
i still cannot figure this out:
my application schedules a notification in 10" at startup in didFinishLaunchingWithOptions.
if the app stays open, didReceiveLocalNotification is called after 10" and i can start another notification there. good.
if the app is in the background, the system alert pops up.
if i click "View", didReceiveLocalNotification is also called and i can schedule the next notification. good.
if i click "Close", nothing is called so far and i cannot renew the notification.
BAD.
i wonder, how i can capture the Close button event from the system's local notification alert popup.
any ideas?
TIA
dave
You cannot.
You can use recurring notification or schedule up to 64 for local notifications in advance and cancel/reschedule as needed.

multitasking and return to application

on iphone with multitasking and iOS 4.x i run my app it work properly, now if i hit the home button (send a sms) and then double click the home button to return to my app i've notice that the app run like the first time not continue where i left it what is the solution to return to the point where you click the home button.
thanks
You might want to make sure you're implementing the multitasking app delegate callbacks- check out the protocol reference: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html.