danielsogl / awesome-cordova-plugins

Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
https://danielsogl.gitbook.io/awesome-cordova-plugins/
Other
2.4k stars 2.42k forks source link

AngularJS/vannilaJS struggles with Ionic Native V5.23 #3369

Closed gabn88 closed 3 years ago

gabn88 commented 4 years ago

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request

Current behavior: Bundle cannot be found in the releases, but has to be build following this steps: npm install && npm run build The bundle that is then created (ionic-native.js or ionic-native.min.js) does not work. It tries to create an object from unknow constructors, the constructors point to the AdMobFree and Intel Security plugins. To make it work, remove both the AdMobFree and Intel Security plugins from src/plugins and build again.

The bundle that you then have works, sort of. But if you want to use PushNotifications on angularJS, instead of using $cordovaPush, on has to use IonicNative.Push. The reason for this is that $cordovaPush gives back the already initialized push object, instead fo the PushOriginal object. I'm unaware if this has unwanted side-effects. If it has, please leave a comment below.

Expected behavior: When downloading a release one would expect to find a bundle that works with angularJS or plain vanillaJS.

Steps to reproduce: See current behaviour

Related code: No related code.

Other information: Ionic Native v5.23 is used. I think either the docs should be fixed, stating that angularJS and vanillaJS are not supported and you should use ngCordova instead, or the behaviour above should be fixed by either a) including a bundle that works in every release, or b) fixing the build process and documenting how to build, so a user can build the bundle themselves.

github-actions[bot] commented 3 years ago

There has been no recent activity and this issue has been marked inactive.