Closed unplugged216 closed 6 years ago
This issue relates to the Ionic Native Typescript wrapper for this plugin, which is created and maintained by Ionic. This repo contains only the Launch Navigator Cordova plugin itself, comprised of the native plugin implementation and pure Javascript API.
Therefore the issue should be raised against Ionic Native which contains the relevant Typescript code.
@dpa99c Ah, makes sense. It is literally a guid issue anyhow.
Resolution: add nix
to the import. import {LaunchNavigator} from '@ionic-native/launch-navigator/ngx';
Apparently, they need to update quite a bit. I will attempt to throw my two cents in over there.
Thank you.
That works for me, but now, I get this error when ionic serve
ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at OneSignal.startInit (index.js:79)
Facing the same issue here @Fomare
OneSignal.startInit
indicates the problem lies with the One Signal plugin.
As documented, this plugin requires a native mobile platform (iOS/Android/Windows 10) so will not work in the browser emulation invoked by ionic serve
@dpa99c Yes, correct it will not work in browser but it's giving same error after building the apk and checking in the android device.
@dpa99c @Fomare It's done.
We need to install the right version of launch-navigator according to ionic-native version..
npm i @ionic-native/launch-navigator@4.12.0
This has solved my problem..
I'm submitting a ... (check one with "x"):
Bug report
When adding 'LaunchNavigator' to providers inside NgModule the following error occurs.
Expected behavior: I expect this error not to occur? Following the instructions here https://beta.ionicframework.com/docs/native/launch-navigator/ and https://github.com/dpa99c/phonegap-launch-navigator Should work fine. I have been migrating an older ionic 3 app to a new fresh ionic 4 app. All worked prior in ionic 4.
Steps to reproduce:
Environment information
8.0.0
Available platforms: android ~7.0.0 browser ~5.0.1 ios ~4.5.4 osx ~4.0.1 windows ~5.0.0 www ^3.12.0
Ionic:
ionic (Ionic CLI) : 4.1.2 (C:\Users\ZacharyHarding\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.0.0-beta.13 @angular-devkit/core : 0.8.6 @angular-devkit/schematics : 0.8.6 @angular/cli : 6.2.6 @ionic/ng-toolkit : not installed @ionic/schematics-angular : not installed
Cordova:
cordova (Cordova CLI) : 8.0.0 Cordova Platforms : none Cordova Plugins : no whitelisted plugins (1 plugins total)
System:
NodeJS : v9.5.0 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 10
+-- @ionic-native/camera@5.0.0-beta.21 +-- @ionic-native/core@5.0.0-beta.21 +-- @ionic-native/geolocation@5.0.0-beta.21 +-- @ionic-native/in-app-browser@5.0.0-beta.21 +-- @ionic-native/launch-navigator@5.0.0-beta.21 +-- @ionic-native/push@5.0.0-beta.21 +-- @ionic-native/splash-screen@5.0.0-beta.21 +-- @ionic-native/status-bar@5.0.0-beta.21