2018-10-21         Primo

ionic 3: black screen with Android App on device

Yesterday, I built and run my app on my Android device and this version worked fine.Since, I improved my app (content view and controller of some modules) and today, I have a black screen on device.Tests where app is OKWhen I execute ionic serveWhen I build another Ionic app (not this one) and run on deviceTests where app fails on deviceWhen I execute ionic cordova run android --debugWhen I use the same version like yesterdayWhen I try to rebuild a already tagged version (So qualified and tested)I think that maybe my build configuration is corrupted but I don't know how.I t...

 cordova                     2 answers                     98 view
 2018-10-21         Conrad

Can I Fastclick ReactJS running in Cordova

Does fastclick work with ReactJS's event system? It doesn't seem to be taking when run through Cordova onto iOS or Android. If not, is there another way of getting the same results. My app has no double-tap functionality so I'd like to remove that delay across the board, if possible... EditFacebook decided to not add support for defining custom event types and recommend you to use something like react-tappable so you can write something like <Tappable onTap={}>.Facebook's working on a solution in the form of TapEventPlugin, but it won't be made available until they...

 cordova                     6 answers                     102 view
 2018-10-21         Monroe

deviceReady event not fired

I am new to cordova and i am trying to get device id from deviceReady event which is not firing, after googling i got to know that i need reference Cordova.js file in my project so i did. after cordova.js included i am keep getting Uncaught module cordova/channel not found error,i tried adding channel.js and utils.js but keep on getting other errors.Please can someone help me to fix it. <script type="text/javascript" src="js/Jqury.js"></script> <script type="text/javascript" src="require.js"></script> <!--<script type="text/javascript" sr...

 cordova                     2 answers                     21 view
 2018-10-21         Valentina

How to set event listeners in Cordova plugin

I would like to ask on how you can set your own event listener in your Cordova plugin.I have this Share dialog for my Android and I wanted to have my Javascript to set a listener for onShareDialogDismiss or onShareDialogLaunchedWhat would likely to happen in Javascript would look like this.// Set a listener for dialog dismissdocument.addEventListener('onShareDialogDismiss', listenerCallback, false);// Set a listener for dialog launchdocument.addEventListener('onShareDialogLaunch', launchCallback, false);I have this code from Titanium, but it's using TiViewProxy class, would...

 cordova                     1 answers                     47 view
 2018-10-21         Newman

(Ionic) Write on NFC tag protected by a password using Cordova/Phonegap?

I'd like to know if it's possible to write on NFC tag protected by a password using Cordova/Phonegap ?I can read any tag and it doesn't matter if it is protected or not !But my main problem is in the question above, because I searched on Internet and there's no place where I can find a solution to this problem...I use Ionic 3.2.0 and Cordova for NFC To my best knowledge there is no password protection available for the NDEF format, which is the most used NFC-tag technology (see e.g., https://www.oreilly.com/library/view/beginning-nfc/9781449324094/ch04.html). From a tech...

 cordova                     1 answers                     71 view
 2018-10-21         Duke

cordova.InAppBrowser returns null url event '{type: "loadstop", url: null}'

I'm running cordova for the browser: cordova run browserI'm opening unsecured chrome browser in Ubuntu: google-chrome --user-data-dir=/tmp/temp_chrome_user_data_dir_for_cordova --disable-web-security --no-referrersBut loadstop event returns empty url: {type: "loadstop", url: null}(Also, I'm injecting and using cordova from an iframe)edits: --no-referrers flag doesn't affect the event returncan't test it in Firefox with security.fileuri.strict_origin_policy=false because don't let me inject cordova SecurityError: Permission denied to access property "cordova" on cross-origi...

 cordova                     1 answers                     46 view
 2018-10-21         Nancy

How get push notification in real time with Framework7 Cordova

I'm using framework 7 to develop an Android Hybrid Mobile Application and I almost did except push notification. Now, I don't know how to add push notification in framework7.Earlier, I developed a lot of PhoneGap Applications and I often use PhoneGap plugin add phonegap-plugin-push and this work like a charm for me.But my bad luck it is not working with framework7. (http://framework7.io/)Please guide me to add real-time notification. I solved my problem by using Cordova-push-plugin.here is the code.var myApp = new Framework7({ modalTitle: "VDST", // Enable Material...

 cordova                     1 answers                     17 view
 2018-10-21         Athena

Why Apache Cordova Visual Studio TypeScript Project generates two appBundle.js files

I have a strange behavior on my pc, my cordova typescript projects generate two appBundle.js files. I have the lates VS2015 TypeScript update installed and set <TypeScriptCompileOnSaveEnabled>False</TypeScriptCompileOnSaveEnabled> in the jsproj but in the project a seconds appBundle.js is created when i save a modified ts file.I use the tsconfig.json {"compilerOptions": { "noImplicitAny": false, "noEmitOnError": true, "removeComments": false, "sourceMap": true, "out": "www/scripts/appBundle.js", "target": "es5"}}This is how my project looks li...

 cordova                     1 answers                     68 view
 2018-10-21         Madeline

Debugging TypeScript Cordova application in VS 2015

A Cordova projects' typescript source is kept outside of the www folder. The generated map file points to source it cannot access. How do I set up a post-build event to copy the typescript source in the www folder and update the generated mapping file to enable the debugger to load the correct typescript source file when a breakpoint is hit?Figured out the first requirement, copying the typescript source files into the www folder. Edit the .jsproj project file and add the following:<ItemGroup> <TypeScriptSourceFiles Include="$(ProjectDir)scripts\**\*.ts"></T...

 cordova                     1 answers                     98 view
 2018-10-21         Michell

Ionic2 + cordova-plugin-sketch

This is the plugin I'm trying to use:https://github.com/blinkmobile/cordova-plugin-sketch Q) I'm trying to get the cordova sketch plugin working so I can annotate an image, but can't get this to initialise properly. What am I doing wrong?The page loads fine and I don't get any error alert, which is the second callback function you can see. Yes, I'm running on the device. I know cordova plugins don't work in the browser.Page:<ion-navbar *navbar header-colour> <button menuToggle> <ion-icon name="menu"></ion-icon> </button> <ion-title&...

 cordova                     2 answers                     19 view
 2018-10-21         Andy

How to move to next page after removing current page from stack in ionic 2?

I want functionality like android's finish() method. I have a splash image page. After it loads I move to home page after 1.5 secs. But when I do that I want the splash page to be first removed from the stack so that the home page doesn't have it to go back to.How can this be done? You can see the doc. Ionic 2 use its own nav module, but not router of angular2. NavController has a pop() function to remove a page from stack. [XXX]You can use remove function to remove the previous page from the stack in ngOnInit of the new page which is pushed.this.navCtrl.remove()OrIf...

 cordova                     2 answers                     35 view
 2018-10-22         Mignon

Unable to get UUID and Model ionic.Platform / $cordovaDevice both

I want to get uuid and model using ionic Platform plugin. This code var deviceInfo = ionic.Platform.device();is not working for me, it is returning an empty array. How can I get data in this deviceInfo so that I can get uuid by deviceInfo.uuid and model deviceInfo.model. I have also tried to use $cordovaDevice.getDevice() but this is giving error ReferenceError: device is not definedat Object.getDevice (ng-cordova.js:1956)this is the code I am using $ionicPlatform.ready(function() { var device = $cordovaDevice.getDevice(); //error here alert(device); $s...

 cordova                     1 answers                     103 view
 2018-10-22         Belle

Completion handler for initPublisher

We used to use:https://github.com/songz/cordova-plugin-opentok/But now we are updating to officially supported plugin:https://github.com/opentok/cordova-plugin-opentokI just notice, songz's version used to have a completion handler for initPublisher method:Code hereBut surprisingly, it was removed (the third param) in this new version from Opentok labs:Code hereJust wondering, how can we handle it now? Tokbox documentation shows how it is still available in js SDKOT#initPublisher TokBox Developer Evangelist here.Song's original plugin had three parameters for initPublish...

 cordova                     1 answers                     92 view
 2018-10-22         Martha

Howto integrate HockeyApp in Ionic as a Module

i'm trying to integrate hockeyapp as a module like in this topic :How to integrate hockey App with Hybrid mobile appBut i'm unable to make it work. I've added the cordova plugin https://github.com/peutetre/cordova-plugin-hockeyapp. it seem successfully integrated (when i'm building the app, the source are present), but i'm unable to use it.I'm a beginner with ionic, i've tried different thing, but none worked.the last i've tried it to make a module like this : angular.module('ngHockeyApp', []).factory('hockeyapp', function ($q, $window) { function start(success, failu...

 cordova                     1 answers                     58 view
 2018-10-22         Nick

OneSignal Disable notification for a period of time

At the moment in my clientSide, I'm able to disable / enable the notification, is there a way to disable notification for 1 hour or 2 hours ? For schedule enable/disable notifications first you need to implement Alarmmanager. After that you can set schedule for notification enable or disable time. Once you setup alarm manager then you can put your onesignal notification code OneSignal.setSubscription(true or false) to alarm receiver callback to enable or disable notification. Even you can set multiple schedules. For example :Disable notification from 10 pm to 6 am or Dis...

 cordova                     1 answers                     30 view
 2018-10-22         Elma

Notifications are not working in Android Oreo

I am using pushwoosh plugin for pushnotification in my cordova phonegap application.Actually the issue is that notifications are not coming in the Android O devices.Cordova Android Platform is :: 4.1.1Pushwoosh Plugin version :: 6.3.0can you please help me out to solve this issue.Android 8 is using Notification channel, so how to implement channel code in pushwoosh. Use Cordova Firebase Plugin. Its very simple to use. If you want to use this plugin visit https://github.com/arnesson/cordova-plugin-firebaseAnd check this video for tutorialhttps://www.youtube.com/watch?v=Dv...

 cordova                     1 answers                     35 view

Page 1 of 72  |  Show More Pages:  Top Prev Next Last