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)
Related
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
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.
My app just got submitted to the app store and I just downloaded it, I am getting iAd's advertisements just like while I was developing it. Will is this showing up on other peoples devices? Or just on the devices that I have in my developer account?
There is a possibility that you've got a development version on the phone and that wasn't overwritten by your app downloaded from app store.
So, just try deleting the app from your phone and computer, and then try to re-sync.
Usually, you will not see your iAd ads on a device where you have installed any provisioning profiles.
In any case, to make sure that everything is working correctly, you should go to: http://iad.apple.com, log in, and check the status of your app (i.e., click on the app name at the bottom of the Summary page where you land).
If everything is ok, you should see a status message like in the attached picture. If not, the status message will mention "test ads". In this case, get in touch with Apple by going to itunesconnect and clicking the "Contact Us" link at the bottom of the page. They will fix it quickly.
I am integrating facebook into my iPhone application.
Single sign on method works when i sign in via safari.
But after i install facebook app and click "Connect to Facebook", app taking me to Facebook app. And there is a error message on top
" is misconfigured for Facebook login. press okay to go back to the application without connecting it to facebook"
What might be the problem?
Please advice, Thank you.
So, this is probably going to sound like two of the lamest potential fixes ever, but I just had this problem...
I went from using the previous version of Facebook iOS SDK to the newest one, and one of the few things changes I made was adding the FacebookAppID && 4*******7. So, I deleted the APP ID and tried again and it worked. I recommend you check the AppID and spelling of FacebookAPPID in your plist.
Do you have multiple versions of your App on your simulator or device? Delete the old one and it might fix it, it was kicking me over to an older version of my app, and trying to resign me into the app when I was already signed in.
Hope it works for you,
Eva
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.