Connecting to Google Fit Consent Screen Denying one of multi permissions will not connect - cordova ionic application - cordova-plugins

My app is trying to connect to Google Fit. The user is prompted to pick a Google Account and once picked, the "Consent Screen" shows up requiring users to accept or deny each permission. There are separate screens for each permission. Once the user has gone through each permission pop up to accept or deny, a main screen appears that shows a list of all the permissions with check marks next to the ones that the user had allowed. If the user denies one or more of the permissions, it usually closes the pop up, shows a spinner, and then restarts the consent screen pop ups to force the user to go through each permission pop up and then continues to the main pop up of the whole list of permissions.

Related

How can a user reset permissions settings after declining the JS Geolocation request? (iOS Safari)

After a request is to made for the user's geolocation, using either navigator.geolocation.getCurrentPosition or watchPosition, the user is shown a native permission dialog.
If the user selects "Don't Allow" to the request to share their location, the API correctly responds with a PERMISSION_DENIED code.
However, if the user were to have pressed that by accident, and wishes to clear existing settings, what steps should they follow to do so?
This seems absurd enough to warrant a question.
With Android Chrome; the user can simply press the information icon and adjust the permission.
On iOS Safari, there does not appear to be a way beyond clearing all of Safari's cache and settings; thereby closing the site they were on in the first place.

Solution for apple's objection&rejection on our GPS based app?

We are developing an app that share user location on the map when they login and others can tap on their profile pic on map and start chatting with them .
Apple rejected the app with following reply :
"17.1 - Apps cannot transmit data about a user without obtaining the user's prior permission and providing the user with access to information about how and where the data will be used.
Upon further review, we found that your app enables the display of nearby users’ locations on a map but only prompts users on sign up or sign in for permission to show their location. If the user has signed in and previously agreed, then they are not prompted again until they log out. This is not appropriate for the App Store.
Specifically, it is not appropriate to display the user's location automatically without the option to decline if they have already signed in to access your app." We already tried to add multiple popup/confirm boxes for user permissions. what should be done to take care of this privacy issue ?
Should we add a button to manually checkin , everytime they want to update thier location ? this will defeat the purpose though if they have to click a button to update location to show where they are .
Or
Should we ask for permission to Show location each time App is opened since apple's objection is that it don't ask for permission again untill user is logged out and log in back ?
This is a speculative answer, since Apple has somewhat fuzzy replies, but this is my view:
Specifically, it is not appropriate to display the user's location automatically without the option to decline if they have already signed in to access your app."
You could solve it by:
* Sending a push notification when the user's location is being used (this could be annoying depending on app usage of location)
* Showing some info in a very visible place in the app, e.g. in the lateral menu, along with the option to reject to share your location (or otherwise, tell the user there that they can do so by logging out)
There must be other possible solutions, since the reviewer is a human being and the guideline broad and unspecific enough... But I think any of these options would work.

Phonegap prompt for permission

Is there a way on Phonegap to manually prompt for a permission?
Example:My app needs to access the device's contacts. So at first launch (on iOS), there is a popup asking the user to allow or deny the app to access contacts. If the user denied permission, the popup will never show up again and the app will be unusable.
So I need to consider two things:
Is there a way to get the current state of a permission? (i.e "is the app have permission to access contacts?")
Is there a way to prompt user again for permission?

iOS Location Services Alert - What is the delay between showing it?

Just a quick question here.
I am displaying the the alert for the user to allow the app to access location data, and I have this triggered from a switch.
When the user turns the switch on, the alert will be displayed.
If the user clicks disallow, is there a time restriction that Apple has before you can show that alert again?
Thanks in advance!
Once the user chooses not to give your app permission to access their location data, the user will not be able to grant your app that permission from within your app. Instead, the user must enter the Settings app and grant the permission from there. This is to prevent the app from bombarding the user with requests to use location data.

Facebook ios sdk authorize opens two permissions request dialogs

Calling authorize from our game (using Facebook ios sdk 2.x or 3.1) results in two permissions dialogs in the Facebook App. Similar odd behaviour is demonstrated in the web browser if the Facebook App is not present on the device but I will refrain from describing that specific case.
During testing we found that...
On iPhone
Accepting the first permission dialog results in a blank dialog with a cancel button. Clicking on cancel will dismiss the dialog, briefly show a second (exact duplicate) permissions dialog, and then return the user to the app. If the user returns to the Facebook app, they will see the second permissions dialog still there.
On iPad
Accepting the first permission dialog often results in a blank dialog with a cancel button. Clicking on cancel (or if the cancel dialog doesn't show at all) will show a second (exact duplicate) permissions dialog. Clicking 'Allow' on this dialog will return the user to the app.
Here are some images to help illustrate the ipad case:
First permission dialog shows: https://www.evernote.com/shard/s54/sh/3037a5b8-d55a-4bc2-ad11-a889202ca596/14f2e1241ee78c333c6cb2c8f978adfe
User clicks 'Accept' and then Blank cancel dialog shows: https://www.evernote.com/shard/s54/sh/8ef40f24-7291-4592-9faa-9e2f322c0652/66ae6f4e43192510a7beeb9fb154bd04
User clicks 'cancel' and then second permission dialog shows: (refer to first image... I hit my max 2 links already)
User clicks 'Accept' and flow returns to the game (also not shown)
I've since tried out the same steps using a popular Facebook game - Diamond Dash. On iPad you will see a similar double permissions dialog (minus the blank cancel dialog). If you 'Allow' the first permission dialog, control will return to the game. If you then go back to the Facebook App, you'll see the second permission dialog hanging around.
Ultimately the user can get through the multiple dialogs and go on to play the game... but certainly the flow is messy.
So my questions are:
1) How can we get rid of the blank cancel dialog after accepting permissions and
2) How can we get rid of the double permission dialog (or at the very least ensure that on iPad, the first permission dialog will return the user to our app)
I've searched through other posts related to blank fb dialogs and so far everything points to session expiry (or re-asking for permissions after already being granted) so I believe this is a new bug report.
A few of the things I've tried on the Facebook site admin page:
turned off enhanced auth dialog (no difference)
turned off authenticated referrals (no difference)
removed all permissions we ask for (no difference)
using or not using an url scheme has no effect
single and multiple bundle ids
removing the iphone app id
Any help at all would be greatly appreciated!
So after mucking with Facebook settings for awhile, it appears that setting the "Enhanced Auth Dialog" (in Advanced section) to true has fixed the problem with the blank cancel screen. The double permission dialog problem is still there, but since the second dialog is shown just before the user is flipped back to the game, it's not very disruptive.
Of note, new Facebook apps no longer have a setting for Enhanced Auth Dialog. I believe these newer apps force the setting to true.

Resources