Cordova Social Sharing

Issue I am using the cordova social sharing plugin. Here is my code. public shareTo(): void { var options = { message: ‘Check out this item’, subject: ‘Item’, url: ‘http://example.com’, chooserTitle: ‘Share via…’ }; SocialSharing.shareWithOptions(options); console.log(options); } I want to

Continue reading

How to host material icons offline?

Issue My apologies if this is a very simple question, but how do you use google material icons without a <link href=”https://fonts.googleapis.com/icon?family=Material+Icons” rel=”stylesheet”> ? I would like my app to be able to display the icons even when the user

Continue reading

cordova build Command failed with exit code EACCES

Issue Cordova build failed with error code : EACCESS $ cordova build android Running command: /home/user/proj1/platforms/android/cordova/build execvp(): Permission denied Error: /home/user/proj1/platforms/android/cordova/build: Command failed with exit code EACCES at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.EventEmitter.emit (events.js:95:17) at Process.ChildProcess._handle.onexit (child_process.js:795:12) ====================================== OS : Ubuntu

Continue reading

Cordova Websocket

Issue I am trying to learn using websockets in my app with ionic this one: https://www.npmjs.com/package/cordova-plugin-websocket and I copied the example below: var ws = new WebSocket(‘ws://echo.websocket.org’); $scope.sendMessage = function(){ ws.send(‘test’); }; ws.onopen = function () { alert(‘open’); }; ws.onmessage

Continue reading

Directives not working in ionic 3

Issue Directive example in ionic 3, method used previously are not working. Already tried the way in which directives where implemented in ionic 2. import {Directive} from ‘angular2/core’; @Directive({ selector: ‘test’, template: ‘./test.html’ )} export class MyDirective { } import

Continue reading

Is possible to call closeMenu method of ons-sliding-menu component from back button event?

Issue I want to close ons-sliding-menu when the user presses android’s back button. How can I achieve this? Current implementation is: var manager = { initialize: function() { this.bindEvents(); }, bindEvents: function() { document.addEventListener(‘deviceready’, this.onDeviceReady, false); }, onDeviceReady: function(){ document.addEventListener("backbutton",

Continue reading

Pages overlaps on navigation in Ionic4

Issue I have developed an application using ionic4. I am facing an issue during navigation the pages overlaps like below give picture. I am using NavController for navigation. public editUserProfile() { this.menuCtrl.close(‘side-menu’); this.navCtrl.navigateForward(‘/home/edit-profile’); } Any solution for this? Solution I

Continue reading

Angular 11, Ionic 5 , Capacitor 2 gradle sync error "Caused by: org.gradle.api.resources.MissingResourceException"

Issue I am getting the following error on npx cap open android Caused by: org.gradle.api.resources.MissingResourceException: Could not read script ‘/Users/adk/Documents/projectA/node_modules/cordova-androidx-build/src/android/cordova-androidx-build.gradle’ as it does not exist. I have cordova-androidx-build installed and cordova-androidx-build.gradle file is present in node_modules of my project. The

Continue reading

Build failing after upgrade cordova-android 10

Issue When I upgraded cordova-android@9.0.0 to cordova-android@10.1.1 I’ve got a build problem when I run cordova build android –release –buildconfig=build.json Problems: * What went wrong: Some problems were found with the configuration of task ‘:app:processReleaseGoogleServices’ (type ‘GoogleServicesTask’). – In plugin

Continue reading

How do I use cordova firebase.dynamiclinks plugin in Ionic 4?

Issue I want to use Cordova Firebase Dynamiclinks plugin : https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks#installation in my Ionic 4 App. There is an Ionic-native-plugin usage for this too : npm install @ionic-native/firebase-dynamic-links and usage : import { FirebaseDynamicLinks } from ‘@ionic-native/firebase-dynamic-links/ngx’; constructor(private firebaseDynamicLinks: FirebaseDynamicLinks)

Continue reading