How to grant permission in Application class Xamarin.Android? - android-activity

I want to grant camera permission for the application using my Application class in my Xamarin.Android project. But I cannot call
ActivityCompat.RequestPermissions(this, _mPerms, 1);
within my Application class since this should be an Activity. So how should I call this method?

Related

Flutter google_sign_in how to get grantedScopes or check hasPermissions

I am using the Flutter google_sign_in package to sign the user in with Google (only requesting the basic scope permissions) and then in another spot in my app I need to check if the user has granted my application a certain scope (google photos access) so I can change my user interface to add a button to connect to their google photos if they have not granted access yet. The package does not seem to expose this functionality? How are other people handling this situation?

Can I Migrate To a Different Facebook App

I've inherited a web app has Facebook oAuth integration with Facebook. It uses Facebook for login as well as making API calls to graph for other purposes.
The original developers set up multiple apps per environment instead of making one parent app and using child testing apps. However, I cannot fund the production app. That is, I have the app ID and the secret, but can't find the actual app. I made some API calls to get the user ID of the person who set it up but he does not respond to my requests.
What are my options? Can I somehow migrate production to a new app? The facebook IDs the app use are app-scoped, so what I'd like to do is make the production app the one app both development/staging etc. use.
Besides for needing control over the production app, if I switch to use a different app for production, each users' facebook ID will be different and thus each existing user will be seen as a new, distinct user even if the user has already registered.

How I can auto login with SwiftyDropbox?

I have an app with SwiftyDropbox that function correctly, but I need to insert email and password for Dropbox every time that I use the app.
The app it's only for my use, it's not a security problem if the app auto-login in my account.
I don't find examples or documentation to make an auto-login with SwiftyDropbox. It's possible?
While the Dropbox API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files, it is technically possible to connect to just one account. We generally don't recommend doing so, for various technical and security reasons, but those won't apply if you're the only user anyway.
So, there are two ways to go about this:
1) Implement the normal app authorization flow as documented, and log in and authorize the app once per app installation. The SwiftyDropbox SDK will store the resulting access token for you, which you can programmatically re-use after that point each time using authorizedClient.
2) Manually retrieve an access token for your account and hard code it in to the app, using the DropboxClient constructor shown here under "Initialize with manually retrieved auth token".

How to check which App's scopes have been granted access and which not

This is my working scenario: i have created and successfully published an App on the Google Apps Marketplace / Chrome Web Store. Let's say some users did install this App on their own domains and are using my App. When they installed this App on their domains they granted data access to the scopes I declared for my App, for example scopes A and B.
Now let's say we went on improving our App adding a new feature and we released it. This new feature requires us to add a scope C to the App configuration. So let's add scope C and save the new configuration.
For those users who have already installed the App, scope C is "new" and needs to be granted access, while A and B are already granted.
Now we need to find a way to notify users about the need to grant access to the newly added scope before going on using the App (otherwise end users may incur in some issues).
The question is: is there a way to programmatically detect for a specific domain installation of our App which scopes have already been granted access and which ones not?
Assuming you have an access token you can use oauth2.tokeninfo() to determine which scopes a given token is good for.

MySpace Integration with iPhone

I made an iPhone application in which I have to implement myspace integration. I have created myspace application using developer.myspace.com.
And I am getting APPLICATION_SCHEME, CONSUMER_KEY & APPLICATION_ID using that application created. That I am using in my application to update status. I am not getting the following details:
(i) CONSUMER_SECRET
(ii) ACCESS_TOKEN_KEY
(iii) ACCESS_TOKEN_SECRET
(iv) PERSON_ID
And whenever I update status on myspace it is giving error 401 which means authentication failed. So, Can anyone tell me how to solve this issue?
The reference application which I have created is here.
Thanks in advance.
-->You need to register a unique URL Type within your .plist file.
--> Make sure to set the UrlScheme property of the context to the same value you are using in the .plist when you instantiate the MySpace class. This will allow the SDK to create an appropriate callback URL that will fire off your application when the user has authenticated. PLEASE DO NOT USE THE DEFAULT URLSCHEME.
-->You can check if the user is logged in by calling [mySpace isLoggedIn]
-->This checks if your app has an Access Token associated with the user for Offsite applications (Onsite applications do not need an Access Token, hence checking if they are logged in is mute).