Phonegap App Works in iOS 6 but not iOS 5 - ios

All that happens in iOS 5 is the 'DeviceReady' and 'Load' events being fired and all of my files are being loaded
My stack includes:
Cordova 2.2.0rc2
Phonegap ChildBrowser
Phonegap InAppPurchaseManager
BackboneJS
UnderscoreJS
jQuery 1.8.1
jQueryMobile 1.2.0
RequireJS
ParseJS
I can see that the files have loaded because I have the corresponding JS objects:
CDV
window.plugins.childBrowser
window.plugins.inAppPurchaseManager
Backbone
_
$
$.mobile
require
Parse
However, the step that isn't happening is RequireJS loading the main.js file. And why this doesn't happen for iOS 5 when it happens for iOS 6 is extremely confusing.
Any ideas on why this may be happening? I'm very open to trying things.
Thanks a lot!

You could use Weinre to debug the application remotely. This blog post at phonegap.com explains how you can use Weinre to debug your application. It should display any JavaScript errors that your app might produce.

Related

Angular route is not working with Cordova iOS

I'm facing an issue with Cordova, Cordova-ios 6.2.0 and Angular 12.0.
When I'm building my app with Cordova and launch it in an emulator (or with a device), I'm arriving to a white screen.
I did some research and try some "fix" but nothing worked.
Finlly, I've find that it could be because of the balise.
So, I tried to play with the tag and modify the href with ., ./, / but nothing worked.
I've tried without and it worked, but without routing.
Has someone already had this problem?
The Angular router needs the app to be hosted on a "proper" HTTP scheme and does not work with file: URLs. You can check how your app runs, if you open the JavaScript console for your app running on an iOS device with Chrome and typing location.href. If you see file: you need to set up a custom scheme.
Please checkout the documentation and this announcement https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html

phonegap 3.0 console.log plugin http:localhost/!gap_exec 404 NOT FOUND

I've installed the console.log plugin "$ cordova plugin add org.apache.cordova.console" to my phonegap 3.0 project.
When I do console.log("xxx") in xcode, it work fine without any problem / error.
However when I test it in a web browser. The error "http:localhost/!gap_exec 404 NOT FOUND" appeared in the web browser console. When I comment out the console.log("xxx"), this error is disappear.
I just wonder whether it is really work fine in xcode. coz sometime xcode won't display javascript error.
Is there any debug tools for develop phonegap apps for ios / android?
Any cordova(phonegap) plugins is not for the web browser. when we install the console plugins it works on actual device because deviceready event fires but in case of web browser deviceready does not fire thus plugins are not working so, if you are doing so then please remove cordova.js file from your html and try in web-browser. but when you are ready with device include that file it is mandatory.
http:localhost/!gap_exec 404 NOT FOUND errors simply means that cordova(phonegap) does not find the actual device environment.

FusionChart is not displaying in iPad Phonegap Project

Hi I'm developing a Phonegap based iOS Project in which i'm having a section where a fusionchart has to display, if i run my index.html in browser it is working fine but in iPad with in that section Graph is loading message will come but the graph is not at all visible even if i wait for more than 10 mins.
How to render this fusion-chart in my iPad screen.Any help is thanks in advance.
I am not sure of how you are rendering it or how much data you are rendering, however, I have created a small sample which works in XCode iPad simulator.
Please find the sample project from: http://www.sudipto.net/download/ios/phonegap/app/fusioncharts/fusionchartsxt.zip
NOTE: I have mostly followed the steps from http://docs.phonegap.com/en/1.7.0/guide_getting-started_ios_index.md.html#Getting%2520Started%2520with%2520iOS
and
http://docs.fusioncharts.com/charts/contents/FirstChart/UsingPureJS.html
If viable at this stage: Uninstall Phonegap and replace it with Apache Cordova. Phonegapp is a dodgy and profit driven release of the most excellent Cordova by Apache ...
Apache Cordova website
cordov Framework Missing IN This

add an activity indicator to show when the app is busy in jquery mobile, phonegap / cordova

I want to display an activity indicator when my app is busy on ios. So far I haven't been able to get it working.
I have tried using:
navigator.notification.activityStart();
Which seems like it's not supported in most recent versions of Phonegap/Cordova.
Does anyone know how to get this working with Phonegap and Jquery mobile?
I was accidentally removed in 1.5 but will be back in 1.6. If you just grab the code from the 1.4.1 JS version and paste it into the 1.5 version it should just work as well.
I had this same problem. Looks like the iOS notification stuff was once a part of the main distribution but now it's a plugin that you have to add to your app. I found the plugin here:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/NotificationEx
There is a README there with accurate install instructions for recent versions of PhoneGap / Cordova. I got it working pretty quick once I found the plugin.

PhoneGap 0.9.6 (Blackberry) + Sencha Touch 1.1.0: deviceready does not fire

I'm trying to build an app that uses PhoneGap 0.9.6 and Sencha Touch 1.1.0 for Blackberry. (The app is already running fine on iOS and Android).
Unfortunately the crucial deviceready event does not fire anymore once I include the Sencha Touch files. This is how I tested:
Build the PhoneGap example app as described on http://www.phonegap.com/start#blackberry using the BlackBerry WebWorks Packager 2.0.0
Edit index.html so it's shorter and add alerts in init() and deviceInfo() and run the example on the Blackberry emulator 6.0.0.227. (Could not figure out how to add a code block with HTML so please go to http://pastebin.com/rUU1bDbL to see the modified code.) Everything is still working.
Include the css and js of Sencha Touch 1.1.0: http://pastebin.com/Y4Vydby1 After that change the function deviceInfo does not get called anymore.
According to this thread a similar problem with jQuery Mobile can be solved by changing the order of the includes but every combination I tried had the same problem.
Is this a general problem? Is someone successfully using PhoneGap 0.9.6 and Sencha Touch 1.1.0 on Blackberry?
Temporary solution: revert to PhoneGap 0.9.5.1
This seems to be a problem encountered by most people trying to work with Phonegap/Sencha on Blackberry recently.
We found that the basic PhoneGap Sample demo would break as soon as we included the sencha.js library, even though we were not even using it. I.e., the Sample demo runs fine on Blackberry, but if you then include sencha.js it no longer operates properly.
Someone reported that they resolved the problem by reverting to 0.9.5.1 version of PhoneGap. That worked for us, but 1.0.0 does not.
http://groups.google.com/group/phonegap/browse_thread/thread/3ed0192e44a49ad1/6be7980f9164c455?lnk=gst&q=blackberry+sencha#6be7980f9164c455
We would love to see this fixed so that we can be running the latest version of PhoneGap.
The issue has popped on on various forums lately, but doesn't appear to have Phonegap's attention yet.
e.g., https://github.com/phonegap/phonegap-blackberry-webworks/issues/44#issue_comment_form ("No one is assigned")
This seems like a major problem because it makes it impossible for anyone to do anything on a new Blackberry that uses PhoneGap/Sencha. I know there have been a lot of other things fixed between 0.9.5.1 and 1.0.0 so I am worried about fielding an app using the older version.
Keith Levi

Resources