ios platform 4.5.4) containing native ” Geolocation” plug-in. Since iOS 10 requires the NSLocationWhenInUseUsageDescription property in the App-Info.plist file, the plug-in documentation (Geolocation iOS Quirks) indicates that the following content should be included in the config.xml:
< /p>
need location access to find things nearby
So I added this verbatim as the first entry in
In the Cordova iOS phase of the build, it failed with the following ambiguous error:
(node:60604)UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: doc.find is not a function
(node:60604) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>Delete platform ios: Cordova platform delete ios< br>>Add edit-config to the platform name = “ios” tag
< platform name = "ios"> add me here< / platform>> run ready ios: ion cordova ready ios< /p>
I have an Ionic 3 application (Ionic CLI 3.19.0, Cordova CLI 8.0.0, android platform 7.0.0,
ios platform 4.5.4) which contains Native “Geolocation” plug-in. Since iOS 10 requires the NSLocationWhenInUseUsageDescription property in the App-Info.plist file, the plug-in documentation (Geolocation iOS Quirks) indicates that the following content should be included in the config.xml:
< p>
need location access to find things nearby
So I added this verbatim as the first entry in
During the cordova iOS build phase, it failed with the following ambiguous error:
(node:60604)UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: doc.find is not a function
(node:60604) [DEP0018] DeprecationWarning: Unhandled p romise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
< p>As mentioned in the comments above, the required steps are:
>Delete platform ios: cordova platform delete ios
>Add edit-config to platform name=”ios” In the tag
< platform name = "ios">Add me here< / platform>>Run ready ios: ion cordova ready ios