
Hello All,
I have written some code for the mobile client and want to test the same .How can I do it?I tried by opening mobile site in browser for my organization and tried to test but no javascript and Business Rules are getting called on mobile form in browser where as it is sucessfully getting call from the web browser.
Do we need to test the same in CRM mobile app? Or Can we test it on the browser also?
I have added simple alert using following code and calling "isMobileClient" function on load of the form.Its giving alert in online crm form but not in mobile form.
Xrm.Utility.alertDialog("hello out");
function isMobileClient() {
Xrm.Utility.alertDialog("hello in");
var isCrmForTablets = (Xrm.Page.context.client.getClient() == "Mobile")
if (isCrmForTablets) {
Xrm.Utility.alertDialog("hello");
// Code for CRM for tablets only goes here, 
}
else { // Code for web browser or CRM for Outlook only goes here. 
}
}
Your help is very very appreciated.Please help ASAP.
*This post is locked for comments
I have the same question (0)You need to test your code in mobile app only, because through browser, it display mobile express forms, not the CRM phone client.