Thursday, 21 April 2016

[FIX] ERROR Internal navigation rejected cannot access other urls - Cordova iOS


Make sure that your config.xml whitelist is ok

<allow-navigation href="http://*" /> 
<allow-intent href="http://*/*" /> 

 Those tags must be set. Specify your url to restrict the navigation.

run

cordova clean
and then
cordova build ios

Make sure that you have a provisioning profile when building otherwise the app will be stuck after the splash screen.

It's preferable to build on xcode AFTER runnin  "cordova build ios" since cordova will reparse your main xml. Avoid the modification of the xml for the specific platform and remember to backup your files before doing anything.

Wednesday, 20 April 2016

[FIX] - iPhone project’s minimum deployment target


When we try to run the iOS app on an older device we can get such info.
From the xcode project info we can change the setting but the problem (that's what happened for me) will persist.

To lower the development target we need to change
IPHONEOS_DEPLOYMENT_TARGET
in the file
build.xcconfig
located in

myproject/Resoruces/config/

for esample I added

IPHONEOS_DEPLOYMENT_TARGET = 4.0




Now xCode 7.3 runs without problems my app (sdk ios 9) the application on iphone 4 with iOS 7.1.2.
In my case it's a cordova project without particular plugins.

The xCode generated error:
iPhone runs iOS 7.1.2, which is lower than app's minimum deployment target. Change your project’s minimum deployment target or upgrade iPhone di businessweb’s version of iOS.

where are located the npm packages?

The npm packages are usually located in the folder:
 /usr/local/lib/node_modules/ 

npm runs
 /usr/local/lib/node_modules//index.js 

when loading the npm script that recalls 
../index.js

example:
#!/usr/bin/env node
require('./../index.js');

Older versions of Xcode - Direct download from Apple

Older versions of Xcode - Direct download from Apple.


Fix: Error Parse Generalized time, invalid offset

When you get this error while signing or listing the data from keystore the problem can be, as happened for me, that you have the wrong time set if compared to the keys in the store or you have generated a key with a lot of days (ex. -validity 1000000000).

Check the time/date settings on your system including bios (just to be sure that your time will be ok also after rebooting).

Create your keystore (backup anything if you don't know what you are doing) again with a common validity.
Usually it should be 365 or less but you can also use 3650 (10 years?).


Error keytool: java.security.cert.CertificateParsingException: java.io.IOException: Parse Generalized time, invalid offset

Twitter Delicious Facebook Digg Stumbleupon Favorites More