The first time the user starts our app, we ask him to allow the notification permission.
If he did accept it, in iOS, we can go to the Settings->our app and see the Notifications that can be disabled or reanabled.
Though, if the user refuses the permission at the start up of the app, it can't be activated anymore in the Settings of the app because... it does not show up!
Is it a normal behavior?
Beside deleting the app or "Reset Location & Privacy" (from Settings->General->Reset), does it mean I need to check every time the user starts the app and ask again? It does not make sense and will be very annoying.
Any suggestions to try?
Thanks
Related
I want that whenever the app is opened for use it should check gps status of the device and if it is off, it should ask for the permission and if the user clicks ok, it should enable it automatically. But it asks for the permission only once when app is installed for the 1st time. How to do it in flutter, please someone explain.
I have and app using location updates. I need to notify user once the app is killed from background, manually or by OS.
Is there any way that I can show an alert to the user that the app is not running now. Is there any tweak? Please help.
Im am currently developing an app that can access the user Address Book. The first time I tried the app on my device, I got the ABAddressBookGetAuthorizationStatus alert showing and working. My problem is that now I would like to debug what happens if the user denies the authorization, but, even If I delete the app from the Xcode organizer, every time I install the app again for debug, the phone remembers that I already authorized the app to access my contacts. To make things clearer, I would like to know how to reset this authorization so that I can get the alert shown again and so respond to the deny event... Any help over this would be very much appreciated!
reset it the settings app of the iphone/ipad (or mac)
The iPhone app I'm writing has an option in the SETTING page: "ask for password when launching this app". (As a security measure.)
If the user types in the correct password... the app runs.
If the user types in the wrong password... the app needs to immediately exit.
There isn't any kind of "immediately exit this app" in any framework (that I can find).
What is the app-store legal way to do this?
http://developer.apple.com/library/ios/#qa/qa2008/qa1561.html
There is no API provided for gracefully terminating an iPhone application. Under the iPhone OS, the user presses the Home button to close applications. Should your application have conditions in which it cannot provide its intended function, the recommended approach is to display an alert for the user that indicates the nature of the problem and possible actions the user could take - turning on WiFi, enabling Location Services, etc. Allow the user to terminate the application at their own discretion.
Just display a screen that says "The password you entered is invalid." Not sure why you wouldn't allow them to try again, though - I'd find being made to relaunch the app each time I make a typo quite frustrating.
There is none. Applications are not supposed to exit. What you can do, however, is what an application I wrote that needed network access does: present a UIAlertView with no buttons so that the user is forced to quit the app (press the home screen button).
Just keep in mind that with iOS 4.0 and multitasking, you’ll have to give the user another opportunity to enter the password if the application is put into the background and then restarted.
You can use
exit(0);
although not recommended as explained by others.
I read more post regarding iPhone notification, and I have a simple question....
Where a device receive a notification (so I can display a message contains the message notificatio ti advise the user).
I understand that message is managed by the application.
The question is:
...when my application receive the notification is it possible to start it?
Or in other world the application became run when receive the notification or it simple became active only to manage the message and at the end of notification management the app return to sleep?
The main application windows is opened on the device ?
Many thanks in advance
Lukenukem
Ciao
With push notifications you can prompt the user to take action, which if they agree (by tapping the "open application" button), will open the application automatically.
The caveat is that you can't do this without the users consent. They have to tap the open application button for your app to open. There's no way to open the app automatically without the user's action, nor is there any way to open, perform the required actions and quit the app automatically.
The apps dont "sleep" they are either running or not (till 4.0 OS that is), im assuming you are asking about push notification, what happens when a user receives a notification is that they can choose to close it, or go ahead and "view" the notification which can cause the app to open automatically...thats as far is it goes in the current system i blive...