[
https://issues.apache.org/jira/browse/CB-10631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15151197#comment-15151197
]
Thomas Allen commented on CB-10631:
-----------------------------------
Yes I understand it's not supported, but I guess the question is whether there
is a compelling reason to not include backward compatibility if it doesn't
break existing builds?
I don't profess to know the intricacies of Cordova or the App Store, but I have
been able to submit an app compiled with Cordova 5.4.1 to the app store using
Xcode 6.4 with an iOS deployment target of 5.1.1. It is my understanding that
iOS 5.1.1 is able to install a 64-bit binary even though it only uses the
32-bit part (the binary that Xcode creates includes both versions I believe). I
am able to install the same app on my iPad 1 (iOS 5.1.1), iPad 2 (iOS 7), and
iPad Air (iOS 8) and was able to pass the initial App Store validation (it is
waiting to be reviewed since I submitted it today). So I don't think it's
accurate to say that you can't submit a Cordova app with iOS 5 support.
Anyway I've forked the plugin and made the fix on my own branch so it's not a
deal breaker if it's not included in the main github repo. But it would be nice
to keep the latest version of the plugin without the additional step of
manually pulling in updates to our forked repo.
> device is not populated in iOS 5.1.1
> ------------------------------------
>
> Key: CB-10631
> URL: https://issues.apache.org/jira/browse/CB-10631
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Device
> Environment: iOS 5.1.1
> Reporter: Thomas Allen
> Priority: Minor
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> The device plugin doesn't work in iOS 5.1.1 because the unique device
> identifier uses identifierForVendor to get the device uuid. However this is
> not valid in iOS older than 6.0.
> In the method uniqueAppInstanceIdentifier, there is a reference to
> maintaining backward compatibility for versions that didn't use
> identiferForVendor. Unfortunately the code only works if the app had
> previously been installed on that device (because it looks for the CDVUUID
> that was previously stored on the device). If the install is new, this
> app_uuid is nil and it tries to use identifierForVendor.
> I realize that iOS 5 is no longer supported in Cordova, but since the code
> attempts to be backward compatible (based on the inline comments), I figured
> this could be fixed with a few lines of code (which I have done and will
> submit shortly).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]