Phonegap working with Android but not with iOS, Error Code - ios

I am getting this error code when i open a phonegap html site in iOS:
gap:["Device","getDeviceInfo","Device341875241"]
gap:["NetworkStatus","getConnectionInfo","NetworkStatus341875242"]
gap:["App","show","App341875243"]
It is working with Android perfectly.. i am using cordova 2.7.0.
What´s that supposed to mean?
thanks!

You must add the correct cordova-2.7.0.js file that is specific to iOS. This error usually occurs when you add cordova JS file which is not specific to a particular platform. In other words, you should add the iOS specific cordova-2.7.0 JS file to your iOS PhoneGap project.
Possible scenario:
You might have wrongly included the Android specific cordova-2.7.0 JS file in your iOS project.
Fix:
Just remove the current cordova JS file and add the cordova-2.7.0.js file from iOS folder in the downloaded Phonegap-2.7.0 folder

Related

Ionic 5 - HTML view

We are building hybrid app using ionic 5, one of the requirement is to open the HTML files downloaded to the local app content folder. The HTML files has reference to js & css files. The difficulty we face is the HTML file opens successfully and the javascript & CSS reerred is not opening. we tried using inappbrowser, window.open, previewanyfule plugin most of them same result. need guidance in opening such files.
If you wish to run your ionic app on an android or iOS device you will need Cordova or capacitor.

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?

Embed Cordova-Webview and Plugin

I'm trying to embed Cordova in my native iOS application. I only need a tiny part of my application to use cordova. From now I managed to show a CordovaViewController with some HTML in there, but I can't find out how to add cordova plugins (ex. cordova-plugin-network-information) in the project.
I installed it using cocoapods, but I can't find in the Cordova's documentation how to wire it up with my www folder so that navigator.connection would not be undefined
Thank you for your help!

The app references non-public selectors in Payload/Cordova350.app/Cordova350

I have written and exported a Cordova 3.5.0 PhoneGap Application using the Telerik Platform. The app is using jQuery Mobile and an InAppPurchasing plugin.
The only other plugins used are Cordova Splashscreen and Cordova Statusbar.
I can run the app no problem when i install it via iTunes on to my iPad. However, when I submit the app via Application Loader, I get the following errors:
I was tempted to go in and edit/look for the lines that reference these 'non-public selectors' myself but the Cordova350 file is a unix executable file that when opened looks like bytes of hex codes.
I cant seem to find anything from googling around about anyone experiencing a similar issue. Is this just a setting somewhere I have forgotten to untick? Any help would be appreciated

Sencha app with Cordova on Xcode

I am trying to build a ios package using sencha and phone gap. I followed the steps here http://vimeo.com/56673251. I am able to build and run the package on ios simulator. However, I can only see the index.html page. All the model, view and controller folders with js files created by sencha are not copied there. So, I am not able to run the app which i built using sencha.
When i click on the app/view/Main.js i get error The requested URL was not found on this server.
Any help on this would be great.
I think that the problem is that they expect you to run only the "production" version of you app inside cordova. When you set production the microloader is not used and everything is compiled into one file instead. That should solve the issue.

Resources