Mobile HTML5 API integration support - html

Would mobile HTML5 support the following, and if not, why?
Device connected to the net
App loaded
App calls remote API and responds to request for API credentials
App receives session token
App requests data from remote API using session token
App pushes data to local database and screen
App closed
Device disconnected from net
App loaded
App loads data from local database
User inputs data which is added to the local database
App closed
Device connected to net
App loaded
App sync's remote/local data
App closed
Device connected to net
App closed
App push notifications enabled in device settings
Push notification sent to device from remote server
Native device prompt displayed for push notification

Maybe this will get you going on the right path? http://mobilehtml5.org/
There's no HTML5 feature called "push notification" nor, as far as I know, any way to create native notifications in iOS or Android from the browser. So right off the bat, that's going to be a tough one.

Related

clear http authentication cache from Chrome

I am sure this is not a new issue I am facing, but couldn't find any resolution yet.So, we have a ng2 app which uses Windows Authentication. It is implemented using Waffle libraries with Jersey RESTful service. We are implementing logout functionality, which seems to have an issue where browser is caching credentials, until all of it’s instances are closed.
When user launches browser for the first time (first instance of browser), it prompts for credentials as expected. When user clicks on “Logout” option from application, session is invalidated on server. But, next time when user refreshes URL or launches application in new tab, browser do not prompt for credentials.
In Internet Explorer, using document.execCommand(“ClearAuthenticationCache”) clears credentials stored for the user. Is there any equivalent code or way to clear http authentication cache from Chrome?

Who to create web service for windows push notification for windows phone 8?

While working with Windows Phone Push Notifications, I got myself stuck in the part of creating the "cloud web service" to receive the negotiated URL and retrieve updates to the mobile device.Is it possible to create this Web Service without using Windows Azure services (I don't want to pay anything, I just want to push with my services to my apps)? And how can I create this Cloud Web Service.
I haven't worked extensively with Windows Phone 8.1. Check this webpage for Windows Phone 8 -
https://msdn.microsoft.com/en-us/library/windows/apps/hh202970%28v=vs.105%29.aspx
You will get a URL for each device you want to get notification on through the app you create. Taking help from the above link, you can create a local server (Cloud Web Service) for testing push notifications for your test devices.

Windows Phone Push Notifications without a web service

I'm planning to develop windows phone app which can send my PC clipboard to the phone. I want to use push notifications for this. I found this paragraph on the msdn windows phone documentation library
After your Windows Phone client app has registered for notifications, you can send notifications to the app. Typically, this is done with a web service that keeps a collection of URIs to send notifications to, but it also can be done with any app that can send messages to the Microsoft Push Notification Service.
This seems to imply that I don't need to set up a web service. Is there some way I can send push notifications directly from my app to MPNS?
Yes, your desktop app can communicate directly with MPNS.
Use the same code as for the web service.

creating oauth login flow for java desktop application

I was watching the java quickstart video for the google drive API and in that video it is mentioned that when developing real time console application the login flow should be done by :
starting a web browser in the local machine.
opening the native browser and taking the user directly to the authorization link.
making the redirection link as the local host and then let the local server receive the code and then shut down the browser and continue with you app.
but i have no idea how to execute these steps any idea or guidance???
The tiny application on Java quickstart implements these steps. Use "urn:ietf:wg:oauth:2.0:oob" as your redirect URL.

Access to json/web service from javascript behind windows authenticated web site?

Is it possible to call json service from JavaScript which is behind a windows authenticated web site?
Ultimately, I would like to do this from phonegap but right now trying to do this from browser.
My first attempt was to open a window have the user authenticate against the server and was hoping subsequent JavaScript/ajax requests would send the authentication information with the request. I don't think this is working is desired. I certainly know from phonegap this is not working.