George Christou | 6 May 10:09 2016
Picon

iframe not loading after upgrade to Cordova iOS 4.1.1

We recently updated to Cordova iOS 4.1.1. After the upgrade iframes stopped working for us (just shows a blank screen, it never loads). We suspected it might have been a security issue.


I followed the guide here without any luck:https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/index.html


I ended up whitelisting/allowing everything without luck


This is what I have in config.xml:

<allow-navigation href="*" /> <allow-intent href="*" /> <access origin="*" />


This is what I have in index.html:

<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval'; frame-src * 'self' 'unsafe-inline' 'unsafe-eval'; style-src * 'self' 'unsafe-inline' 'unsafe-eval'; script-src * 'self' 'unsafe-inline' 'unsafe-eval';">


And this is the iframe (loaded dynamically):

<iframe title="title" frameborder="0" src="http://www.google.com/" style="width: 100%; height: 100%;"></iframe>

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Steve Husting | 5 May 22:55 2016
Picon

Terminating app due to uncaught exception 'NSInvalidArgumentException'

In Xcode 7.3, I got the error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWebView setGapBetweenPages:]: unrecognized selector sent to instance 0x1f56d4e0'

Main.m is opened:
#import <UIKit/UIKit.h>

int main(int argc, char* argv[])
{
    <at> autoreleasepool {
        int retVal = UIApplicationMain(argc, argv, nil, <at> "AppDelegate");
        return retVal;
    }
}

Highlighted line begins with “int retVal”

I suspect that since it didn’t get beyond the splash screen, then the problem lies with the config.xml file? Is my logic right? Doing a search in the project pages for 'setGapBetweenPages' was unsuccessful.

Environment: 
Xcode 7.3
cordova -v = 6.1.1
cordova plugins ls = 
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"

Installed platforms =
  android 5.1.1
  ios 4.1.1

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Supporting IPv6-only Networks in iOS 9

 
Thoughts:
 
* IPv6 did not just come into wide use last week, as I pointed out to my friend who shared this blog post on Facebook.
* You should have stopped using IPv4-specific APIs a while ago -- are there even any out there?!
* You should not be hardcoding IP addresses into your production app at all - that has always been a bad idea.
 
I suspect that for most people, this new requirement will not be a big deal (or even really *affect* them).
 
And as Apple points out, this change was announced at WWDC 2015.
 
 
--
Lobos Studios | Phone: 877.919.4WEB | LobosStudios.com | Facebook.com/LobosStudios | <at> LobosStudios
Web Development - Mobile Development - Helpdesk/Tech Support - Computer Sales & Service
Acer Authorized Reseller - Computers, Windows and Android Tablets, Accessories
 
Steve Sobol - CEO, Senior Developer and Server Jockey
steve <at> LobosStudios.com
 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Steve Husting | 5 May 18:43 2016
Picon

Errors in Xcode on Analyze

In Xcode, when I do a Product > Analyze, I get the following errors. I don't know if there is a quick fix for them, or if they can be ignored, or whether bugs should be filed in Jira:

/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m:
  • /Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m:620:75: 'UIBarButtonItemStyleBordered' is deprecated: first deprecated in iOS 8.0 - Use UIBarButtonItemStylePlain when minimum deployment target is iOS7 or later
  • /Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m:748:19: Null passed to a callee that requires a non-null argument
  • /Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m:1021:1: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned int')
  • /Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m:1021:1: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')
/Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m:
  • /Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m:275:9: Value stored to 'landscape' is never read
  • /Plugins/cordova-plugin-splashscreen/CDVSplashScreen.m:278:9: Value stored to 'landscape' is never read
There are no other issues raised in Xcode. The Xcode app was off when I ran cordova prepare ios, double-clicked on the .xcodeproj file, ran Product > Clean, then got the above errors. 

Environment: 
Xcode 7.3
cordova -v = 6.1.1

cordova plugins ls = 

cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"

cordova-plugin-splashscreen 3.2.2 "Splashscreen"


Installed platforms =

  android 5.1.1

  ios 4.1.1

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Picon

RFID UHF reader.

Please tell me I can create applications on the Cordova to read and write RFID UHF  http://idcard.com.ua/handheld-uhf-reader-cmc-165m.html for such a device?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Scott J. Pearson | 4 May 14:25 2016
Picon

How to send a file down an iOS's or Android's cord to the computer?

I deal with folks in Africa who don't often have good Internet signal. They want to backup their data. Is there an easy way in PhoneGap to send a file down the cord of an iOS device or an Android into a computer?

Backing up our entire database (by backing up the entire device) does not help because data is encrypted. We need data to be decrypted into a file.

Thanks,
Scott

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Veronica Bendersky | 4 May 14:00 2016
Picon

Error building android when package name contains uppercase letters

I have a cordova app that I built without issues for years. The package name for this app is PackageFirst.PackageSecond (with uppercase and lowercase letters). 

Now when upgrading to Cordova 6.1.1 I cannot build this app. I have researched a lot, that is when I found that using the uppercase letters in the package name could be the problem, and the only solutions I found, tell me to change the package name and make it all lowercase.

Since this app is several years old changing the package name is not an option for me. 

Is there a way I can build this app with newer versions of Cordova?

I noticed that the PackageFirst / PackageSecond / MainActivity.java folders and file do not get created at src folder. 

So I tried this approach:

1) run cordova prepare android
2) manually copy these folders and file, with the correct uppercase/lowercase names matching the package name
3) run cordova compile command

The cordova compile command fails with this (showing only part of the trace):

BUILD FAILED    at com.android.dx.command.dexer.Main.run(Main.java:277)
        at com.android.dx.command.dexer.Main.main(Main.java:245)
        at com.android.dx.command.Main.main(Main.java:106)
Caused by: com.android.dx.cf.iface.ParseException: class name (PackageFirst/PackageSecond/MainActivity) does not match path (packageFirst/packagesecond/MainActivity.class)
        at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java: 520)
        at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)

Clearly it is trying to use a "path" which doesn't keep most of the uppercase letters.

Is there any way I can build this existing app without changing the package name to be all lowercase?

Thanks.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Rgb Aston | 3 May 16:36 2016
Picon

Can we use angularjs in phonegap app?

Can we just copy angular.js file in the folder and use it in index.html. Does it have any side effect?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Kerry Fang | 3 May 08:13 2016
Picon

Where is SQLite database stored on iOS device?

I am building an app for my phd project, and I'm going to do a trial on a number of people. Will be giving them
each an iPad to bring home for a few weeks which will help to store their medication adherence (so I will
store the date and time, and the medication names etc through a series of button clicks and checkboxes into
the database). The problem is how do I view the data stored in each device? I know how to view them when
running on a simulator on xcode, but not sure how to view each of them when I get the iPads back. I won't be
letting the users view these data themselves so I can't display the current database on the iPad screen.
And each users are taking different medication at different times too. So just wondering how to view each
of them when I connect each iPads to my MacBook or through the iPad itself? Thanks in advance

--

-- 
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap@...
To unsubscribe from this group, send email to
phonegap+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com
--- 
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
Rgb Aston | 2 May 21:41 2016
Picon

Can we use dhtlmx with phonegap as I want to create beautiful looking apps?

got to know about dhtmlx from here:
http://dhtmlx.com/docs/products/dhtmlxTouch/

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Kerri Shotts | 2 May 16:51 2016
Picon
Gravatar

Re: ExpressJS & Cordova testing app: The requested URL was not found on this server

PhoneGap is not a Node server, and does not have access to Node.js stuff like express. So if you point PhoneGap at "app.js" or expect PhoneGap to somehow start "app.js", you're out of luck.

"app.js" would be need to be running on a separate server, and your PhoneGap app would use XMLHttpRequest/Fetch/Web Sockets to connect to that server to send and receive data.

If the latter is what you're doing, then you'd just need to hard-code the server & port in those links that need to talk to the server. Ideally, make it a configurable setting so that you can easily switch between a test and production environment. 

On Saturday, April 30, 2016 at 4:07:11 PM UTC-5, Federico Martín Alconada Verzini wrote:
...

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane