
Specifically, you need to override the viewport so that it does not use the default setting. This is not a bug in your web app, but it does require you to adjust a hidden iOS setting. There are black bars at the top and bottom of the screen.
#XOJO WEB BROWSER FULL#
However, if you have an iPhone 5 or later you may notice that the web app does not use the full screen height when you launch the app from the home screen. When you click on the icon on the home screen your app launches without any of the usual Mobile Safari controls. This creates an app on your home screen that uses the icon you specified for the web app. To add a web app to the iOS home screen, you open it using Mobile Safari and then click the "Sharing" button and choose "Add to Home Screen". When the user does this with a web app, the icon you have specified for the loading screen is used as the icon on the home page. With iOS and Android, the user can “bookmark” a web page to the home screen. Zooming is locked to 100%, which prevents the page size from changing allowing it to look best on mobile devices. You can use this to display a different page if appropriate. All Rights Reserved.The WebSession.OrientationChanged event allows you to know when the user has changed the device orientation. AccessToken)Ģ000-2022 Chilkat Software, Inc. System.DebugLog( "Access Token = " + oauth2. System.DebugLog( " OAuth2 authorization granted!") The saved JSON response looks like this: // // WriteFile( "qa_data/tokens/googleCalendar.json", "utf-8", False) Return End If // Save the full JSON access token response to a file. System.DebugLog( "Unexpected AuthFlowState:" + Str(oauth2. NumMsWaited = 0 While (numMsWaited 3) Then
#XOJO WEB BROWSER CODE#
Add the code to load the url in a web browser here. For example, // in C#: (url) // in Java: Desktop.getDesktop().browse(new URI(url)) // in VBScript: Set wsh=WScript.CreateObject("WScript.Shell") // wsh.Run url // in Xojo: ShowURL(url) (see ) // in Dataflex: Runprogram Background "c:\Program Files\Internet Explorer\iexplore.exe" sUrl // The QuickBooks account owner would interactively accept or deny the authorization request. Return End If // At this point, your application should load the URL in a browser. This returns a URL that should be loaded in a browser. Scope = "" // Begin the OAuth2 three-legged flow. CodeChallengeMethod = "S256" // These are the scopes for Google Calendar: // read/write access to Calendars // read-only access to Calendars TokenEndpoint = "" // Replace these with actual values. For example, in this case the Authorized Redirect URL would be // Your app should choose a port not likely not used by any other application. OAuth2 Dim success As Boolean // For Google OAuth2, set the listen port equal to the port used // in the Authorized Redirect URL for the Client ID. See Global Unlock Sample for sample code. This example requires the Chilkat API to have been previously unlocked.
#XOJO WEB BROWSER MAC OS#
Xojo Plugin for Windows, Linux, Mac OS X, and ARM
#XOJO WEB BROWSER HOW TO#
(Xojo Plugin) Get a Google Calendar OAuth2 Access Token See more Google Calendar Examplesĭemonstrates how to get a Google Calendar OAuth2 access token from a desktop application or script.
