Alert when user opens website op mobile - mobile

How to show an alert to an user when he / she opens my website on a mobile phone?
I want to know this as I want to notify the user how to set the website application on his / hers mobile phone.

There are many scripts available to do this for you. YOu would have to check it on the server side and relay this information to your front end to alert the user.
this post might be of help.
Auto detect mobile browser (via user-agent?)

Related

open fb messenger with welcome message from url in javascript

I want to open face book messenger application in mobile app from url. I have done this part using this url https://m.me/user_name. Here user_name is the fb user name. Now i want to add some dynamic welcome message when open application in mobile. How it can be possible.
Consider using the Facebook Developer Messenger-Platform system. Allows for automation and interaction responses with fairly rich graphical elements.
https://developers.facebook.com/docs/messenger-platform

apiRTC.disconnect(); does not appear to work with cordova

I have setup both a classic ASP site and a cordova angularjs ionic app that allow video conferencing with apiRTC. When the user logs out of the web site apiRTC.disconnect(); works so a new apiRTC.init can be used when a different user logs in.
In the app, apiRTC.disconnect(); does not do anything so the user appears to still be online to other users, and when a different user logs in, it has no affect since init does not work.
Can you look at apiRTC.disconnect() under cordova and see if there is a general issue?
I have checked the issue by doing a test using our tutorial : https://github.com/apizee/ApiRTC-mobile and adding a button that call apiRTC.disconnect() on Android.
Others users receive the disconnection information and remove the user from the connectedUsersList.

What is the code used to redirect to mobile site and where does it go?

here is my what I am trying to do.
I have a .mobi site wayfieldfoods.mobi that is set up on a wordpress format. I am using a plugin that make the site mobile with custom menu wayfieldfoods.mobi/mlp/home.
my clients website is wayfieldfoods.com . How do I add (or redirect) wayfieldfoods.mobi to my clients site? if someone is using a mobile device and types in the url wayfieldfoods.com, I want the mobi site to display instead of the regular wayfieldfoods.com desktop site.
I spoke with someone earlier and they said that it's a code that has to be installed on the index page of my clients wayfieldfoods.com website in order for mobile access to the mobi site.
What is the special code needed to redirect to mobile traffic to my wayfieldfoods.mobi site.
(as a side note wayfieldfoods.mobi shows up on a desktop computer as a regular wordpress site with the default twenty eleven theme, but wayfieldfoods.mobi displays on a mobile phone with the mobile friendly website I set up. It works fine displayed on a mobile phone).
You can use Handset Detection to redirect mobiles to your mobile site (disclaimer : my startup). Browse on over and create a free account. There's a javascript snippet you paste into the of your homepage.
Hope that helps.

Is there anyway to provide a clickable link on a HTML page to save a contact to a mobile phone?

I'm looking to allow my users to my mobile web click on a link to straight away add my contact into their phone (iphone/android).
I know there's a tel scheme available and I'm currently using that on top. Is there anyway to provide First Name, Last Name, Email, Phone in a combined solution to store into my user's phone?
There is the Contacts API spec in conjunction with Permissions for Device API Access (you need to have permission to write or read contacts), but no browser supports it yet.
Mozilla Labs is working on it, but it is only in the desktop.
As for schemas there is http://schema.org/Person but this is only used by search engines, for now, maybe in the near future browsers "learn" to use these schemas.
There is also the hybrid web/native app solution with PhoneGap, but it is not a mobile web solution!
I think you can create your contact in .vcf. If user click the link to your vcf, your contact will be downloaded an then opened for confirmation to save into phone book

Internet Explorer download notification on HTTPS

I have a Silverlight application deployed on a HTTPS server. My applications generates reports that are saved as PDF files. Whenever a user tries to download a file from my application from IE, he gets a notification under the toolbar asking him if he really wants to download the file. If you agree, then IE reloads the page, sending the user back to the login page of my application. After logging again, the user can download any file, but this is very annoying for the user. How can I resolve this problem? Thanks!
If you know who your users are (condition), you might ask them to put your website under their list of Trusted Sites, which will avoid the annoying notification bars.
You need to trigger the download in such a way that it's obviously a user-initiated action. I'm not sure if Silverlight offers a method for this.

Resources