Search This Blog

Tuesday 29 December 2015

iphone distribution has not been trusted on this iphone (or) iOS 9: How to trust enterprise developer profiles

In ios9, you may receive a message when trying to open an app from enterprise stores of some companies. In that case you need to trust that enterprise from settings,

Settings->General->Profiles
select the enterprise profile and tap on trust.

Reference:
https://support.apple.com/en-us/HT204460
http://blog.aceontech.com/post/123970856398/ios-9-how-to-trust-enterprise-developer-profiles

Thursday 10 December 2015

Enabling click to call and mail in android using ionic/cordova

by default in android tel and mailto are blocked in cordova/ionic.

to enable click to call/mail feature you can use one of below ways:

Option 1:

a. Install whitelist cordova plugin
       ionic plugin install cordova-plugin-whitelist
b.add the below lines to config.xml of your project
   <access origin="tel:*" launch-external="yes" />
   <access origin="mailto:*" launch-external="yes" />
now when you give your phone the below way, it will copy the number to dailing pad.
      <a href="tel:{{Contact.phone}}" style="margin-top: 10px;" class="button icon-left ion-ios-        telephone">{{Contact.phone}}</a>

Option 2:


$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|sip|chrome-extension):/);

add it in the app.js, dont forget to add $compileProvide dependency.