Error: Type CodePush does not have 'ɵmod' property - cordova-plugins

Hi I was trying the codepush plugin in my cordova app.
I created the new blank app with Cordova angular and I install the plugins.
The problem is whenever I start using the plugin there's no error but after the splash screen, the scree turns white.
When I inspect it
Error: Type CodePush does not have 'ɵmod' property. shows.

Related

Quasar VueJS app with Cordova loads application on iOS simulator with blank page only

I am trying to deploy an iOS app from VueJS Quasar framework using Cordova. When I load the application on the dev environment ( with quasar dev ), it runs the application through a browser and works fine.
However when I "export" to cordova project on iOS platform, in xCode I get the following error in the console: "Failed to load webpage with error: Could not connect to the server" and the simulator loads an empty white blank page only.
The app has been built and tried on an iPhone as well, and it's the same reason: empty blank page.
We are using API in the background from another server as well, where we have set the CORS to allow *.
Note: exported to android platform it works nice.
Did anybody have this problem, and knows what the solution is? Thanks!

Xamarin IOS can't initialize visibility plugin

I have a Xamarin project with an ios and a android app. In both I want to use the MvvmCross Visibility Plugin. On Android it generated the proper bootstrap file and usage works fine. On iOS I created a own bootstrap file, but I always get the following message:
MvvmCross.Platform.Exceptions.MvxException: Could not find plugin loader for type MvvmCross.Plugins.Visibility.PluginLoader
Also I tried to call the plugin loader manually in the InitializeLastChance:
MvvmCross.Plugins.Visibility.PluginLoader.Instance.EnsureLoaded();
But this leads to the same exception.
How can I solve this?

Ionic - view console.log in iOS emulator

I am working on an ionic app for iPad. In order to test the app on Mac, I am using the emulate command
ionic emulate ios
This launches the application in iOS Simulator. However, I am not able to find the console.log that I have printed in the Ionic application. After launching, it prints the following logpath in the terminal. However, the console.log file does not exist in this path
logPath: /Users/kayasa/myIonicApp/platforms/ios/cordova/console.log
Upon some research I found that in order to view the console.log message, emulate command needs to be executed with -lc command. However, this command does not even start the application in Simulator correctly. The application launches with the white blank screen.
Then I also tried launching the app from within xcode itself. It does launch the app in Simulator but I can't find a way to see the console.log here as well.

iOS App icon and Splash screen aren't updating for PhoneGap Project

I am using PhoneGap 3.4.0 to create an app.
Within my Phonegap project I have added my own custom app icons here:
MyProject/www/res/icon/ios/icon-57-2x.png
MyProject/www/res/icon/ios/icon-57.png
MyProject/www/res/icon/ios/icon-72-2x.png
MyProject/www/res/icon/ios/icon-72.png
And I have added my own custom Splashscreens here:
MyProject/www/res/screen/ios/screen-ipad-landscape-2x.png
MyProject/www/res/screen/ios/screen-ipad-landscape.png
MyProject/www/res/screen/ios/screen-ipad-portrait-2x.png
MyProject/www/res/screen/ios/screen-ipad-portrait.png
MyProject/www/res/screen/ios/screen-iphone-landscape-2x.png
MyProject/www/res/screen/ios/screen-iphone-landscape.png
MyProject/www/res/screen/ios/screen-iphone-portrait-2x.png
MyProject/www/res/screen/ios/screen-iphone-portrait.png
MyProject/www/res/screen/ios/screen-iphone-portrait-568h-2x.png
I then run this via command line in the MyProject folder:
phonegap build ios
The app seems to compile correctly and I can open the app in xCode and run it in the iPhone simulator, the problem is that the simulator still shows the Cordova default app icon and splashscreen.
I have also replaced the files in the below directress before and after running phonegap build ios but that doesn't seem to fix it either either.
MyProject/platforms/ios/My Project/Resources/icons/
MyProject/platforms/ios/My Project/Resources/splash/
MyProject/platforms/ios/www/res/icon/ios/
MyProject/platforms/ios/www/res/screen/ios/
I've read over the documantation for Icons and Splash Screens but can't seem to figure out why it's not working for me.
Am I missing a step? Should I be running a different command?
Looks like I was doing everything correctly, however in Xcode, I needed to go to:
Product > Clean
...to clear out any old settings and cache.
I found this answer here -> https://stackoverflow.com/a/18868704/647621

InAppBrowser not launching

I've installed Phonegap using the npm and my app is working great, except when I call window.open to launch a website it does not give me the footer with the done button so my app get's stuck on the called web page.
I am using XCode to build an ios app.
I've used npm to add the InAppBrowser plugin. It added the to to the config.xml.
I've added the site to my whitelist in config.xml. The site opens fine, just without the done button/footer.
It added the InAppBrowser plugin entry to:
/#myapp#/platforms/#platform#/www/cordova_plugins.js
It added the InAppBrowser plugin folder in /#myapp#/platforms/#platform#/plugins/
The related SRC files for InAppBrowser are in the platform folder as well
(for example IOS plugin src files are: /#myapp#/platforms/#platform#/#appname#/Plugins/)
I added a console.log function to InAppBrowser.js to confirm that the plugin is loaded, but it does not generate a log entry.
I've tried many things to get the footer/done button to show without any success, but I seem to be missing something here.
I solved this problem by recreating the Xcode project using cordova (instead of phonegap). I went through all of the solutions several times with no luck, so I used the terminal to build a new cordova project, added the InAppBrowser to the project, then copied my code and assets from the old project to the new one. Launched the app on my ipad and it all worked just fine.
I don't suspect it's a problem with Phonegap 3.1.0. I think there was a project issue that kept it from working and starting over with a clean project did the trick.
All is well.
One note is that I saw postings that reported cordova interrupts the console.log function, so be careful with that. Alerts work just fine.

Resources