I tried to authorize a user in my App with the normal AppleMusic login popup.
music.authorize().then(()=>{
//do something
}
In the Webversion there poped up the Apple login form. But when I compile the App and run it on a device i think the popup is blocked or something.
How can I allow the Apple Music authorisation in my native app?
Related
Trying to get my consent screen verified, as my iOS mobile app uses YouTube's API to get their YouTube subscriptions (this falls under the 'sensitive' scope, not 'restricted'). Info on it can be found here -> https://support.google.com/cloud/answer/9110914?hl=en
The consent verification form requires an "Authorized Domain" and also a "Homepage" for the app. The problem is that this is a iOS app and I don't have a website or a URL to give this form.
The consent form:
What do I put in the place of the Authorized Domain and Homepage links?
or
Am I going about the verification process all wrong? Is there another way for mobile apps?
First, if you don't have a domain for it then it is impossible to remove the unverified stuff on your screen.
Second, the domain field is something like google.com, youtube.com where you going to attach the tag for verification. Which, this domain currently you don't have.
Third, the application homepage link is your website.
Lastly, from my experience no special cases for mobile and web process when it comes to that stuff showing on the screen.
The app will show that unverified screen once you are using a sensitive scope that requires app verification regardless if it's a mobile app or web app.
I am trying to make callback for mobile in laravel.
In current mobile version, when click signup, it goes to website and user signup. I am trying to make user back to app again after successful signup.
So I should make callback when click signup on site.How can I do this?
I have a Xamarin.Forms iOS/Android app and have to authenticate the user against a Microsoft Azure B2C AD.
I have added the Microsoft.Identity.Client NuGet and using this for authentication.
Login works fine and I am able to use the returned token to call an Azure hosted service of our own.
The trouble is that when I try to logout the user it does not work as expected.
If the user logs out and immediately after kills the app, the next time the app is started the login screen is presented as expected.
To kill the app on iOS I go to app-switcher with double click home button and the swipe up.
But if the user does NOT kill the app, but instead presses my login button (triggers a call to AcquireTokenAsync()) the sign in screen is NOT presented by Microsoft.Identity.Client but instead a valid token is immediately returned and the app is able to use this token for service calls, i.e. it is a valid token.
Next time the app is launched the token is no longer there and the login screen appear.
The strange this is that when I run the sample from GitHub/active-directory-b2c-xamarin-native I see the same behaviour. So I suspect it is a bug in the MSAL component from Microsoft.
According to the sample logout should simply be done with calling
PublicClientApplication.UserTokenCache.Clear(PublicClientApplication.ClientId);
I have also tried with adding
foreach (var user in PublicClientApplication.Users)
{
user.SignOut();
}
without any change.
Any suggestions?
Just add following line in Droid Project:
CookieManager.Instance.RemoveAllCookie();
in iOS,
foreach (var cookie in NSHttpCookieStorage.SharedStorage.Cookies)
{
NSHttpCookieStorage.SharedStorage.DeleteCookie (cookie);
}
and for more details visit this link https://developer.xamarin.com/guides/xamarin-forms/cloud-services/authentication/azure/
This is happening because the service does not support certain features that would result in a user sign out. This is still a work in progress.
I have made simple login Application in titanium alloy in which user have to login by username and password. I have noticed that after login in to App whenever user operate Application and suddenly he/she close Application from background mode, App automatically goes in Logged Out mode even he/she Did not manually Logged out from Application. How I can make settings in App so that After logged in, It always stays in Home screen titanium alloy window even after closing app from background.
Please suggest your comments in code or useful links
Thank You
Raj
You have to use share properties: Titanium.App.Properties
E.g:
if(Ti.App.Properties.getBoolean("userIsLogged", false){
//redirect home
}else{
// redirect login
}
//login e.g:
var successLogin=function(e){
Ti.App.Properties.setBoolean("userIsLogged", true);
};
In my WP7.5 app, I have redirect the user to google web page where is asked to giving the app permissions to access to his account, user click yes, but it redirects to a page where there is the code and user is supossed to copy/paste that to my app.
The Response is
Please copy this code, switch to your application and paste it there:
4/3oHAHtqSk1CqA3S8HlEsuQRaE08e.4nCBpXhR-R8WgrKXntQAax02U4CwcgI - Auth code
I want to, when user press ok, return to my app with that code, is there any way to do that?
-SheikAbdullah
If you're using the Browser control, here's a great CodeProject article on how to do it:
Google OAuth2 on Windows Phone