Azure mobile HTML5 application - facebook authentication on iPhone in app mode

I have an HTML5 application that uses Azure mobile authentication to login (straight from the example code...provided below). It works fine in all desktop browsers and iPhone in Safari.  But from app / full screen mode, it does nothing (doesn't
ask for permission to show a popup window like it does in safari and no popup windows shows up) and I can wait forever and nothing happens.  If I invoke it a second time, it gives an error saying "Error: Unexpected failure"...perhaps because
the 1st attempt is still running?  Can anyone provide some assistance?  Thanks.
client.login("facebook").done(function (results) {
         alert("You are now logged in as: " + results.userId);
    }, function (err) {
         alert("Error: " + err);

I did some more research and found a site that uses an approach that overcomes this problem and also solves two other side effects with the current Azure mobile approach to authentication.  I think the Azure mobile team *might* be looking to do something
similar because there are some hints of other authentication options in the code (although difficult to read and be sure because the minimized code is obsfucated).  It might be just a matter of activating these in the code...
The solution: 
Go to http://m.bcwars.com/ and click on the Facebook login.  You'll see it works perfectly in iPhone Safari in "app mode" becuase instead of doing a popup, it simply stays in the current browser window.
This approach solves two other problems with the current Azure mobile approach.  First, the popup gets interpreted by most browsers as a potential ad and is either blocked automatically (desktop Chrome) ... and the user doesn't know why it's not working...or
gives a warning which the user has to approve (iPhone Safari in "browser mode") which is a hassle.  And if the user has a popup blocker, it gets more difficult and even more potential for the user not getting it to work properly.  The bcwars.com
method doesn't have this problem. 
Second, in iPhone Safari, when the popup window auto closes, the original page doesn't get focus if there are other browser windows open in Safari.  Instead, it's in the smaller/slide mode so they can choose which one to show.  If this happens,
the user has to go through one more sttep...click on the browser window to activate it and give it focus..again more of a pain and more potential for them to mess up and not do it correctly and need help.  The m.bcwars.com doesn't have this problem.
Azure options:
Looking at the Azure mobile code it looks like may already have the solution.  I can't read it easliy becuase it's minified/obsfucated, but it seems to have 4 options (including iFrame, etc.) for invoking the authentication, and only 1 (the "less
ideal one" of a popup) is being used.  An easy solution would be to set a property to allow one of the alternate authentications to work.  But I can't read it well enough to figure it out.  Another would be to hack the code (temporarily until
a fix is put up by Microsoft). 
Could I get some help there perhaps? 

Similar Messages

  • When powering off my iPod touch, any application (facebook, viber etc)installed using App Store won't work again

    When powering off my iPod touch, any application (facebook, viber etc)installed using App Store won't work again
    How to solve this issue?

    Try a hard reset first. Press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    If still no luck, try downloading and installing a new app from the App Store.  Doing so has cleared the issue up for several users.
    B-rock

  • I am having a problem. When I click on the Mobile Facebook icon it acts like it is going to start opening then it quits and goes back to the icon. So I can't use Facebook on my iPhone 4

    I am having a problem. When I click on the Mobile Facebook icon it acts like it is going to start opening then it quits and goes back to the icon. So I can't use Facebook on my iPhone 4

    Force quit the application and try again.
    Try a reset or restart of the device, trying the app after each step.

  • After installing the 64 bit version of itunes my iphone still won't sync. I get the explantation that I mobile driver application did not download and i need to remove and reinstall itunes (which I have done numberous times).  Any help?

    After installing the 64 bit version of itunes my iphone still won't sync. I get the explantation that I mobile driver application did not download and i need to remove and reinstall itunes (which I have done numberous times).  Any help?

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, does your device connect without that message now?

  • HT4928 what and where is the mobile application folder\ on the iphone 5

    what and where is the mobile application folder\ on the iphone 5

    You're looking at plugin settings. A plugin setting is not an Ultrabeat sample. Wrong place. Look in:
    /Library/Application Support/Logic/Ultrabeat Samples/
    unless you've moved it elsewhere...

  • Eventhought I enabled evrything on mobile notifications in Facebook, why don't I get anything on my Iphone?

    Eventhought I enabled evrything on mobile notifications in Facebook, why don't I get anything on my Iphone?

    Hi there,
    I would recommend taking a look at the article below and verifying that you have Facebook notifications enabled.
    iOS: Using Facebook and Twitter accounts
    http://support.apple.com/kb/HT5500
    iOS: Understanding Notifications
    http://support.apple.com/kb/HT3576
    -Griff W.

  • My iphone get freeze when I go to app store. I was trying to download the mobile version of facebook and eversince I tried, it says "Facebook will now begin to downlaod" and doesnt work at all... what should I do??

    I was trying to download the mobile version of facebook and eversince I tried, it says "Facebook will now begin to downlaod" and doesn't work at all... what should I do??

    same problem, worse i cannot turn on my iphone now

  • Where can I find Mobile tabbed applications with login authentication

    Where can I find Mobile tabbed applications with login authentication

    What?
    Perhaps describe what you're trying to do.  Your question makes no sense.

  • Integrating a PHP Web App with an Existing Azure Mobile Services and Mobile App

    I've got an existing mobile app that is integrated with Azure's mobile services. The mobile services are currently connected to Azure Active Directory with MFA enabled. I'd like to build a separate PHP-based web application (Azure VM) that uses this existing
    mobile service and authentication.
    I reviewed the Azure PHP SDK, but didn't see any tie-ins to the Mobile Service. Additionally, Azure has some great tutorials, but for mobile services they all seem to focus on iOS, Android, and Windows phone. Any insight into how to tie a PHP-app into this
    backend would be much appreciated!

    Although there isn't any client library for PHP, you can still access Mobile Service using the
    Azure Mobile Service REST API.
    Abdulwahab Suleiman

  • Azure Mobile Services and ASP Identity - Exception when using UserManager

    I've reviewed
    this post in the AMS forum and it doesn't really answer the question. I already know how to integrate authentication, but Identity implements a lot of boilerplate user management code that I don't want to have to reproduce.  My question is: Is it possible
    to use Asp Identity framework with Azure Mobile Services? Since AMS Back End has Microsoft ASP.NET Identity Core/Owin as dependencies, I would think that the answer is yes, that they are compatible?
    I have been progressing as if it were possible, but yet, now when I go to try to use the Identity UserManager, I am getting the exception stated in
    this asp.net identity bug. Are there references in Azure Mobile Services Back End to previous versions of Microsoft.AspNet.Identity that would result in mismatched assembly versions?
    I have tried uninstalling and reinstalling Asp.Net Identity, even to the pre-release of 2.2.0, but I am still getting the exception that it couldn't load the CultureAwaiter. I have asked in that post if the bug has been fixed, but from the scant evidence of
    the posts and lack of responses, I would think that the bug has been fixed.
    ibGib

    The bug referenced in the original post shows that the required version is 2.1. I found that when I published to Azure, even though I had the correct (2.1) versions of the NuGet packages installed, the loaded dlls were not the correct versions. I do not
    know if this is an Azure problem or an Azure Mobile Services problem.
    I came to this conclusion by looking at the loaded Identity dlls in a new, up-to-date mvc app, and then looking at the same loaded dlls while debugging in Azure. The Azure dlls are older versions than the up-to-date MVC app versions. I figure that somewhere
    along the lines, Azure Mobile Services is loading the incorrect version of the Identity dlls, even though I have the correct versions installed via NuGet. Maybe there is another explanation.
    But regardless, I should be able to use the up-to-date versions of Identity in order to address bugs in the Identity framework. It would be nice if an AMS person would clarify about the dll versioning. I did come across
    this SO comment by someone who seems to be an AMS guru, but it doesn't seem to make sense. It does, however, seem to corroborate my and BinLaw's observed behavior of the backend dlls.
    ibGib

  • How do I play youtube music videos from Facebook on my IPhone?

    Trying to play a youtube video posted on my Facebook on my Iphone and it keeps wanting me to install a youtube app. Which I did install, but it made no difference. It continues to want a youtube app installed each time I select the Youtube video from Facebook.  Although, on my desktop Windows XP pc it all works just fine when I select the video from from facebook, it goes straight into the music video and plays ok.  Does this problem have to do with youtube video needing Adobe Flash player? I have Flash on my desktop, but not on my IPhone.
    Any help will be appreciated
    Best Regards,
      Marvin

    Okay... No flash... understand...
    So I went ahead and installed YouTube app on my IPhone... but now when I select the youtube video from Facebook I get into youtube and I can see the video I 'm trying to play, but now a message appears over the video "The content owner has not made this video available on mobile. Add to playlist to watch it later on a PC."  At that point I was able to seach & select other videos by the artist (George Strait) off youtube and play them pkay on my Iphone, but not this particular one posted on facebook.  Oh well.. I've spent enough time on this one, I know when I can't get there from here..
    Thanks razmee209 for your help, its much appreciated..
    Marvin

  • Vc++ windows application retrieve files from iphone

    Hello,
    For the first time I am developing for iphone mobile.
    I have windows application which scans mobile phones.
    To scan an iphone files, I need to interact with it.
    How can I do this? Can anyone suggest some idea.
    I think iTunes can be used for communication
    in between mobile and windows application.
    Can we use iTunes sdk, for retriving files from iPhone.
    I dont understand from where to start.
    If you can provide me some feedback, I will be grateful.
    Regards,
    Shraddha

    Have a look here:
    http://forums.macrumors.com/showthread.php?t=526316
    or try:
    http://tinyurl.com/3cjgt5t

  • TS1702 I installed ios6.0.1 in I pad mini. When using Safari, G mail, Facebook,Mail the Apps stalls for quite sometimes and application is no perfect as other Apps. I don't know it is the cause of new processor in  ipad mini or ios 6.0.1.

    I bought Apple I pad mini by on line on 28-10-2012  and my Shipment notification is W270720457. The serial no is DLXJN5F9F193. I installed ios6.0.1 and when using Safari, Facebook, G mail. Mail, icloud it hang sometime and cease. Very slow in using application Facebook and G mail comparing to my previous i pad 2 with ios5. I don't know its the new processor in i pad mini or i0s6.0.1. Please give suggestion what to do.

    One suggestion would be to post in the iPad forum.  This is the iPhone fourm.
    D'oh!

  • I cannot read my messages on Facebook from my iPhone.  Sometimes the entire FB app just shuts down.  Yes, I have the latest version.

    I cannot read my messages on Facebook from my iPhone.  Sometimes the entire FB app just shuts down.  Yes, I have the latest version.

    You can delete and re-download the application. Other than that you need to check with the developer of the application

  • How do I know if my Edge Animate compositions will scale up or down to fit each mobile phone platform's resolution? iPhone 3s, 4, 4s, 5, and 5s all have different resolutions. Do I use .png or svg?

    I want to use Edge Animate to create native app in PhoneGap Build. How do I know if my Edge Animate compositions will scale up or down to fit each mobile phone platform's resolution? iPhone 3s, 4, 4s, 5, and 5s all have different resolutions. And do I use .png or svg?

    If you use responsive scaling it will definitely scale .
    For best practises regarding graphics refer
    Edge Animate Help | Best practices for graphics in Adobe Edge Animate

Maybe you are looking for

  • Using APEX_COLLECTION in a DB-Function??

    Hello, in Apex I would call a PL/SQL page process (anonymous block), which invoke a database function (called A). This db function, A, invokes a further db package via database link on a remote database. The package on the remote database writes its

  • How can you lower the number of days in IOS8 iPhotos deleted

    In IOS8 photos deleted stay for 30 days. Can you lower the number of days?

  • Sqlldr multiple files/tables

    Hello. I have sqlldr loading data from 5 different external files to 5 different tables working just fine. I'm using 5 control files, since each file has a different structure and different target table. So, I run Sqlldr 5 times using the proper cont

  • Archived redolog not applied in real-time : IN-MEMORY

    I created a DataGuard configuratiion in Oracle 11g so that the archived redolog are applied in real-time using the log writer. It seems to me that the last one is not applied : when consulting the v$archived_log table the last entry have the colunm a

  • Automating OS install in WDS with multiple boot image

    Hi, can someone explain to me if it is possible to completely automate a windows install in WDS with 3 different install and boot image. I am new to this and trying to learn everything i can. I have 3 unattended files attributed to each install.wim a