Search Posts

Category: android

Print using thermal printer via bluetooth in ionic1

I am trying to print order from thermal printer via bluetooth in ionic1 and I just want to by pass print preview option and print direct on click on print button. Please help me in find the way to print. I want the printing app like POS PRINTER DRIVER ESC/POS I also tried to implement this but ad ( POS PRINTER DRIVER’s title ) is showing on top of print receipt and I want to […]

Cannot open external URL on Android device using ionic

I am using Ionic to build an android app. I have an element with ng-click which calls a function doing the following: $, ‘_system’, ‘location=yes’); This should open the device’s default browser with the url. Yet when I run this on an Android device and click the element nothing happens. I have hooked up a debugger and still get no errors in the console and definitely execute that line. Source: AngularJS

Need help in Google Analytics tool on a Windows 10 app that uses Ionic 2

I am using Ionic 2 with Angular 2 as my base. Can anyone suggest me a good analytics tool that can be used that can work for all 3 mobile platforms i.e. Windows, iOS, & Android. I did check Google Analytics but for some reason it did not work well with Windows 10 app. Is there any other tool that can help me on this. In case you think Google Analytics is the tool to […]

Phonegap: FileUploadOptions() is not working

I’m working on angularJS v1.2 and building its APK via In my config file it is giving error while adding <plugin name=”cordova-plugin-file-transfer” /> file transfer plugin. This is why i can’t use use FileUploadOptions() to upload files. I have tried var fd = new FormData(); fd.append(“file”, results[i]); var objXhr = new XMLHttpRequest(); objXhr.addEventListener(“progress”, updateProgress, false); objXhr.addEventListener(“load”, transferComplete, false); objXhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // Typical action […]

Unable to add TLS 1.2 protocol via Socket Factory in Ionic Application

I am trying to hit a server with TLS 1.2 enabled, using Android 4.1.2 Motorola device, but it gives me “Falling back to SSLv3 as the host is TLS intolerant” error. I tried enabling it using SocketFactory but it seems like Angular $https calls do not use the native HTTPsURLConnection for making the server calls. Can somebody help me with how to enable TLS support in Android 4.1-4.4, for an Ionic Hybrid Application Source: AngularJS

Angular ng-hide/ng-show directives not working

I have an issue which presents on an Android 4.x device, but not on a newer device. I have no idea why, but I’m hoping someone can help. I have a list using ng-repeat. Each item uses ng-include to load a template dynamically (this is a generic, reusable dialog). <ons-list-item ng-repeat=”item in items | filter:filterItems(searchTerm) as filtered” ng-click=”options.selectItem(item)” style=”font-size: 14px; padding: 0;” tappable> <div class=”left” style=”width: 100%;”> <ng-include src=”‘app/dialog/smartpick/’+options.itemTemplate” style=”width: 100%; padding: 0px 16px;”></ng-include> </div> […]

Android httpURLconnection to spring secured angularJs webapp still unauthorized

Hi I have following code in my back end for web security configuration using spring boot security starter: @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http .csrf().disable() //.and() .httpBasic() .and() .authorizeRequests() .antMatchers(HttpMethod.GET, “/*”).permitAll() .antMatchers(HttpMethod.GET, “/api/geolocation”).permitAll() .antMatchers(HttpMethod.GET, “/GeoLocationHandler”).permitAll() .antMatchers(HttpMethod.GET, “/api/user/{userId}”).authenticated() .anyRequest().authenticated(); } } and in my android I have this URL url = new URL(MainActivity.API_URL + “/user”); Log.i(TAG, url.toString()); httpURLConnection = (HttpURLConnection)url.openConnection(); httpURLConnection.setDoOutput(true); httpURLConnection.setRequestMethod(“POST”); httpURLConnection.setUseCaches(false); httpURLConnection.setRequestProperty(“Authorization”, “basic […]

Next Page »