Android Permissions: Where is "Don't Ask Again" stored? - android-permissions

Once a user denies a permission and checks the "Don't Ask Again" box, you can never grant permissions in the future.
I checked all files in /data/data/MYAPP and below but I don't see it.
Where do they hide this setting?

If the user checks the "Don't ask again" box then shouldShowRequestPermissionRationale will return false.
If this property is false you can show your own custom message box to the user. You can navigate them to their phone settings from this custom pop up. I think this is how google maps handles it at least
https://developer.android.com/training/permissions/requesting#java
Look at section "Request the permissions you need"

Related

Show Local Network Privacy Dialog

Is there any way to present again Local Network Permission dialog when user already denies access?
I am able to trigger this dialog first time, but if user later disables the permission to Local Network, I want to present again this dialog.
P.S : I saw apps that do this, so it is possible somehow...
#lorem ipsum was right, there is no possibility to ask again for permission. The app I had with this feature just imitated the permission dialog, but when you taped on OK, I was redirected to Device settings menu.

Swift CLLocationManager: How to change status from "Don't Allow" to "Allow" by popping up Authorization Dialog again

CLLocationManager requestWhenInUseAuthorization Authorization dialog works only for once.
How to change status from "Don't Allow" to "Allow" by popping up the same Authorization Dialog again.
So, as you already figured it out you can check for authorizationStatus. Once you check that the user has denied you access, you can always use custom alert (dialog) for telling the user, he/she needs to permit your app to use Location. A good way to do that is adding Alert option that navigates him to the Settings of your app, as you have found out, you can do that with: UIApplicationOpenSettingsURLString.
A good tutorial on this subject is: http://nshipster.com/core-location-in-ios-8/
Also, I would recommend you to take your time and look at the Apple doc site (this always helps me see the big picture): https://developer.apple.com/documentation/corelocation/cllocationmanager
You can't I don't believe, if the user has denied your app access to their location you have to instruct them to turn it on in their settings.

Default visibility settings on facebook publish permissions dialog

When asking a user for publish_actions permission in my facebook apps, facebook asks the user for the level of visibility fir these posts. like so.
However, for each app I get a different level set as the default in this dialog, in some "public" is set, some "friends" and some "only me".
I know I can change these in the user's app settings , but how can this default level be controlled from the app itself (seeing as I would like to ask for public permission by default ).
I dont mind the user selecting a different level in the dialog, but how is the default level set?
Any ideas will be appreciated.
In your app dashboard, go to App Details, section App Center Listed Platforms.
Click on Configure App Center Permissions, select Default Activity Privacy, and Save the setting.
(Your app does not need to be listed in App Center, nor do you need to submit your App Details for review for this setting to take effect.)
Edit: It seems they removed this setting, so now it is totally up to the user to select their desired privacy setting when they are asked for publish_actions permission; suggesting a default value does not seem possible any more.
As #CBroe pointed out it can be set in the app center permissions on the app dashboard.
details here

Use of facebook app has been restricted?

Without being logged into Facebook, when we open https://apps.facebook.com/gaanaworld/ url it shows error message (Use of app "Gaanaworld" has been restricted)
(Error while loading page from Gaanaworld)
But after logging in, it works fine. Please help as soon as possibly why it shows error message before login.
Go to Advanced, and make sure that "Let users without a location see my app" is not checked. This happened to me. I don't have any country selected, and had this checkbox ticked. Even though it seems like it should accept all users, it seems that FB needs user to be logged in before it knows that (s)he does not have a location. I.e. it seems that "no location" is not the same as "any location".

What happens when a user clicks "Stop Publishing Activity from <appname>" and "Remove <appname>"?

I've noticed on Facebook that posts that have been made from a 3rd party app have the above mentioned menu options when clicking the "Edit or Remove" button in the top right corner of each post on your timeline.
I am curious what the implications are if a user selects "Stop Publishing Activity from " or "Remove "?
Is there a way to detect when this happens? Does it register data in insights?
Does it just revoke the app's permissions to publish to the user's wall?
Removing an app triggers a call to the callback URL you can set up for exactly that purpose in your app settings.
And stop publishing will just revoke the related permissions, I’d guess.