Mobile Web Browser Sound Notification - asp.net

Which API should I use to play sound notification from a Mobile browser for my web application.
Any Idea?
I don't want to use Flash or Silverlight Plugin.I used phonegap notification API, but it doesn't work on my iPhone.
You valuable thoughts would be highly appreciated.
Abdullah

Unfortunately the iOS browser has some limitations purposely built into it. One of them being that you can't play audio in javascript unless it comes as a direct response to user interaction (click/tap).
The reasoning for this limitation is unclear to me, my guess is that this is a deliberate attempt to cripple web apps and favour native apps.
This limitation is mentioned in Safari official docs here:
https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/PlayingandSynthesizingSounds/PlayingandSynthesizingSounds.html#//apple_ref/doc/uid/TP40009523-CH6-SW1
"On iOS, the Web Audio API requires sounds to be triggered from an explicit user action, such as a tap."

You could try playing the sound with javascript
Playing sound notifications using Javascript?

Related

Is it possible to test Meteor application on multiple mobile phones?

I am developing audio calling application in Meteor and I would like to test if I can call other logged in users, it doesn't matter if it is IOS or Android.
Is it feasible to do so? If not, are there any way I can go about to test the calling functionality?
I’d build production apps and distribute to friends with something like Testfairy. I could be one of your testers if it helps you.
You are clearly using webrtc technology so are your stun/turn servers configured correctly? I've read somewhere that a production build was required to access the device camera via the cordova plugin. That could very well be your problem.

How to build a desktop app from a web app whilst being able to capture the communication with the server?

I'm trying to transform a web application to a desktop one without rewriting the code. Two solutions I found that seem promising are Qt with WebEngine (WebView) and Electron. The thing is I would like to be able to capture the communication with server, for example database queries and stuff like that and treat it locally. Is that possible using either of that tools? If so do you have any tips on how to go about the issue?
Thanks in advance.
If you don't have enough time to build a desktop app, I recommend to build hybrid app. (Native App + Web). Use Cache, I am not sure about Web Database.
you can read these..
Web Cache
Web DB (it works on browser like Chrome, Safari, Android Browser...)
Just for future reference I decided on Electron and used onBeforeRequest function to capture the http requests.

What benefits come from using Progressive Web Apps (PWA) guidelines?

I was reading about advantages of PWAs, but I really can't understand why we have to use this technology. Is this similar to SPA? Or this is completely something else?
A Single Page Application (SPA) can be a Progressive Web App (PWA) but a PWA doesn't need to be a SPA. They are two different things. A PWA as defined by Google is:
Reliable - Load instantly and never show the downasaur, even in uncertain network conditions.
Fast - Respond quickly to user interactions with silky smooth animations and no janky scrolling.
Engaging - Feel like a natural app on the device, with an immersive user experience.
The Google PWA site is a good place to start learning about PWA and why and how you would build one.
https://developers.google.com/web/progressive-web-apps/
A SPA is simply a web app where a single page is loaded in the browser and all subsequent routing and page view rendering is handled on the client (browser) using JavaScript.
Properly combining the principles of PWA and SPA can result in a much improved user experience especially on mobile phones with unreliable internet connections.
Probably the best example today of a well implemented PWA is Twitter Lite. Check it out here:
https://mobile.twitter.com/home
...and read about it here:
https://blog.twitter.com/en_us/topics/product/2017/introducing-twitter-lite.html
A SPA is something different than a PWA. You can view PWA as an enhancement of your website. By adding a service worker and a manifest you can bring your website (SPA or not) out of the browser, work like a mobile app and make it perform better.

Is there away to start a phones native Navigation tool from Flex 4.5?

I am building a mobile application in Flex 4.5 and from this app I would like to start the device's native navigation tool, like Google Navigation for example.
Is there a way to open the Navigation App using Flex 4.5?
As far as I knew, there was no way to launch other applications from a mobile Flex App.
Some native apps can be opened using URLs. It is, basically, the Flash Platform version of saying "Let the OS Handle it." If you HTTP link to a video, for example, it may open in a native player or it may open in the browser.
You can open the native text messaging program using sms as the protocol. As far as I know, there is no universal URL to open navigation services.
This post alludes to the fact that linking to maps.google.com will do it.
You can look into using the AIR Geolocation services APIs; but that is intended for in-app usage not launching other apps.
You can try using StageWebView to open up google maps or something. I don't think there's a way to open the native navigation app because it might not be there and they're different for each device.

Social networking on smart phones?

I have to implement application that can post to the selected network I can select from the application drop down.
There are Objective-C frameworks for Facebook (Three20) and Twitter (Twitter-OAuth-Library & MGTwitterEngine).
A quick trip to Google find facebook-android-sdk for connecting to Facebook on Android.
As far as Twitter goes, you can find a whole list of APIs for various languages/platforms on Twitter's developer website.
EDIT
A second trip to Google finds this on developer.myspace.com for adding MySpace to an iOS app. Also, see this page and this page on LinkedIn's Developer Network.
Basically, LinkedIn is just using a JSON encoded API with OAuth. You should be able to handle that with any OAuth library.
EDIT2:
It seems that I've found another great library. Check out ShareKit, which helps with alot of what you're trying to do.
#appaspect and #moshe, this is an old thread so the question my no longer be relevant, but here's a new open-source SDK and social api service: Socialize http://www.GetSocialize.com . Full feature set at http://go.GetSocialize.com/features
DROdio

Resources