Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Missing Purpose String in Info.plist File Issues

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Missing Purpose String in Info.plist File Issues

    Hello,

    This topic has been discussed in the past and I have included the config.xml changes recommended, but to no avail. Specifically I have added config-file statements for the privacy related functions my app uses:

    <config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
    <string>This app will allow users to select photos from their photo library.</string>
    </config-file>

    <config-file platform="ios" parent="NSCameraUsageDescription" mode="replace">
    <string>This app will allow users to take pictures with the phone camera.</string>
    </config-file>

    <config-file platform="ios" parent="NSMicrophoneUsageDescription" mode="replace">
    <string>This app will allow users to use the voice to text feature.</string>
    </config-file>

    I have changed the location of these statements to be before the plugin declarations, immediately following the related plugin declaration (camera only), and at the end of the config.xml file, but before the </widget> statement.

    I'm using phonegap cli-8.0.0, but can't find any mention of this issue, either alternate solutions for 8.0.0 or being fixed (which it is obviously not). This is the last, but very persistent issue I'm trying to solve before launch. Any help is appreciated.

    Here' the last config.xml file I submitted:

    <?xml version='1.0' encoding='utf-8'?>
    <widget id="com.targetingconcepts.79w5q5sbbu" version="1.0.7" versionCode="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>Need It Find It Now</name>
    <description>
    Need It Find It Now
    </description>
    <author email="" href="">
    J Kotas
    </author>
    <feature name="http://api.phonegap.com/1.0/device" />
    <preference name="permissions" value="" />
    <preference name="orientation" value="portrait" />
    <preference name="target-device" value="handset" />
    <preference name="fullscreen" value="false" />
    <preference name="webviewbounce" value="true" />
    <preference name="prerendered-icon" value="true" />
    <preference name="stay-in-webview" value="false" />
    <preference name="ios-statusbarstyle" value="black-opaque" />
    <preference name="detect-data-types" value="true" />
    <preference name="exit-on-suspend" value="false" />
    <preference name="auto-hide-splash-screen" value="true" />
    <preference name="disable-cursor" value="false" />
    <preference name="android-minSdkVersion" value="19" />
    <preference name="android-installLocation" value="internalOnly" />
    <preference name="phonegap-version" value="cli-8.0.0" />
    <preference name="EnableViewportScale" value="true" />
    <preference name="MediaPlaybackRequiresUserAction" value="true" />
    <preference name="AllowInlineMediaPlayback" value="false" />
    <preference name="TopActivityIndicator" value="gray" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="iosPersistentFileLocation" value="Library" />
    <preference name="KeyboardDisplayRequiresUserAction" value="true" />
    <preference name="SurpressesIncrementalRendering" value="true" />
    <preference name="android-maxSdkVersion" value="" />
    <preference name="android-targetSdkVersion" value="" />
    <preference name="KeepRunning" value="true" />
    <preference name="ErrorUrl" value="error.html" />
    <preference name="LoadingDialog" value="Please wait, the app is loading." />
    <preference name="LoadingPageDialog" value="Please wait, the data is loading." />
    <preference name="LoadUrlTimeoutValue" value="20000" />
    <preference name="AndroidPersistentFileLocation" value="Internal" />
    <preference name="android-build-tool" value="gradle" />

    <!--splash screen plugin options -->
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="FadeSplashScreenDuration" value="500" />
    <preference name="ShowSplashScreenSpinner" value="true" />
    <!-- Android only splash screen plugin options -->
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreenSpinnerColor" value="white" />
    <preference name="pgb-builder-version" value="2" />
    <preference name="splash-screen-duration" value="5000" />
    <preference name="show-splash-screen-spinner" value="true" />
    <allow-intent href="https://*/*" />
    <allow-navigation href="https://*youtube.com/*"/>
    <allow-navigation href="https://*youtu.be/*"/>
    <allow-navigation href="https://*vimeo.com/*"/>

    <icon src="icon.png" />
    <splash src="splash.png" />

    <!-- icons -->

    <!-- Android icons -->

    <icon platform="android" density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
    <icon platform="android" density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
    <icon platform="android" density="hdpi" src="res/icon/android/icon-72-hdpi.png" />
    <icon platform="android" density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
    <icon platform="android" density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
    <icon platform="android" density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />

    <!-- iOS -->

    <icon platform="ios" src="res/icon/ios/icon-small.png" width="29" height="29" />
    <icon platform="ios" src="res/icon/ios/icon-small-2x.png" width="58" height="58" />
    <icon platform="ios" src="res/icon/ios/icon-small-3x.png" width="87" height="87" />
    <icon platform="ios" src="res/icon/ios/icon-40.png" width="40" height="40" />
    <icon platform="ios" src="res/icon/ios/icon-40-2x.png" width="80" height="80" />
    <icon platform="ios" src="res/icon/ios/icon-50.png" width="50" height="50" />
    <icon platform="ios" src="res/icon/ios/icon-50-2x.png" width="100" height="100" />
    <icon platform="ios" src="res/icon/ios/icon-57.png" width="57" height="57" />
    <icon platform="ios" src="res/icon/ios/icon-57-2x.png" width="114" height="114" />
    <icon platform="ios" src="res/icon/ios/icon-60.png" width="60" height="60" />
    <icon platform="ios" src="res/icon/ios/icon-60-2x.png" width="120" height="120" />
    <icon platform="ios" src="res/icon/ios/icon-60-3x.png" width="180" height="180" />
    <icon platform="ios" src="res/icon/ios/icon-72.png" width="72" height="72" />
    <icon platform="ios" src="res/icon/ios/icon-72-2x.png" width="144" height="144" />
    <icon platform="ios" src="res/icon/ios/icon-76.png" width="76" height="76" />
    <icon platform="ios" src="res/icon/ios/icon-76-2x.png" width="152" height="152" />
    <icon platform="ios" src="res/icon/ios/icon-83.5-2x.png" width="167" height="167" />
    <icon platform="ios" src="res/icon/ios/icon-1024-2x.png" width="1024" height="1024" />


    <!-- Windows Phone 8 -->

    <icon platform="winphone" src="res/icon/windows-phone/icon-48.png" />
    <icon platform="winphone" src="res/icon/windows-phone/icon-tile-62.png" role="background" />
    <!-- Windows Phone 8.1+ -->
    <icon platform="winphone" src="res/icon/windows-phone/square30x30logo.scale-100.png" width="30" height="30"/>
    <icon platform="winphone" src="res/icon/windows-phone/square44x44logo.scale-100.png" width="44" height="44"/>
    <icon platform="winphone" src="res/icon/windows-phone/square44x44logo.scale-240.png" width="106" height="106"/>
    <icon platform="winphone" src="res/icon/windows-phone/square71x71logo.scale-100.png" width="71" height="71"/>
    <icon platform="winphone" src="res/icon/windows-phone/square71x71logo.scale-240.png" width="170" height="170"/>
    <icon platform="winphone" src="res/icon/windows-phone/square150x150logo.scale-100.png" width="150" height="150"/>
    <icon platform="winphone" src="res/icon/windows-phone/square150x150logo.scale-240.png" width="360" height="360"/>
    <icon platform="winphone" src="res/icon/windows-phone/square310x310logo.scale-100.png" width="310" height="310"/>


    <!-- Launch images / splash screens -->

    <!-- Android -->

    <!-- Android legacy -->
    <splash platform="android" density="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" />
    <splash platform="android" density="port-mdpi" src="res/screen/android/screen-mdpi-portrait.png" />
    <splash platform="android" density="port-hdpi" src="res/screen/android/screen-hdpi-portrait.png" />
    <splash platform="android" density="port-xhdpi" src="res/screen/android/screen-xhdpi-portrait.png" />
    <splash platform="android" density="port-xxhdpi" src="res/screen/android/screen-xxhdpi-portrait.png" />
    <splash platform="android" density="port-xxxhdpi" src="res/screen/android/screen-xxxhdpi-portrait.png" />
    <splash platform="android" density="land-xxxhdpi" src="res/screen/android/screen-xxxhdpi-landscape.png" />
    <splash platform="android" density="land-xxhdpi" src="res/screen/android/screen-xxhdpi-landscape.png" />
    <splash platform="android" density="land-xhdpi" src="res/screen/android/screen-xhdpi-landscape.png" />
    <splash platform="android" density="land-hdpi" src="res/screen/android/screen-hdpi-landscape.png" />
    <splash platform="android" density="land-mdpi" src="res/screen/android/screen-mdpi-landscape.png" />
    <splash platform="android" density="land-ldpi" src="res/screen/android/screen-ldpi-landscape.png" />
    <!-- end Android legacy -->

    <!-- Android 9 patch -->
    <!-- end Android 9 patch -->

    <!-- iOS -->

    <!-- iOS legacy -->
    <!-- iPhone and iPod Touch -->
    <splash platform="ios" src="res/screen/ios/screen-iphone-portrait.png" width="320" height="480" />
    <splash platform="ios" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" height="960" />
    <!-- iPhone 5 and iPod Touch (5th generation) -->
    <splash platform="ios" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" height="1136" />
    <!-- iPhone 6, 7, 8 -->
    <splash platform="ios" src="res/screen/ios/screen-iphone-portrait-667h-2x.png" width="750" height="1334" />
    <splash platform="ios" src="res/screen/ios/screen-iphone-portrait-736h-3x.png" width="1242" height="2208" />
    <splash platform="ios" src="res/screen/ios/screen-iphone-landscape-736h-3x.png" width="2208" height="1242" />
    <!-- iPhone X -->
    <splash platform="ios" src="res/screen/ios/screen-iphonex-portrait.png" width="1125" height="2436" />
    <splash platform="ios" src="res/screen/ios/screen-iphonex-landscape.png" width="2436" height="1125" />
    <!-- iPad -->
    <splash platform="ios" src="res/screen/ios/screen-ipad-portrait.png" width="768" height="1024" />
    <splash platform="ios" src="res/screen/ios/screen-ipad-landscape.png" width="1024" height="768" />
    <!-- Retina iPad -->
    <splash platform="ios" src="res/screen/ios/screen-ipad-portrait-2x.png" width="1536" height="2048" />
    <splash platform="ios" src="res/screen/ios/screen-ipad-landscape-2x.png" width="2048" height="1536" />
    <!-- Retina 10.5 iPad Pro -->
    <splash platform="ios" src="res/screen/ios/screen-ipad-pro10-portrait-3x.png" width="1668" height="2224" />
    <splash platform="ios" src="res/screen/ios/screen-ipad-pro10-landscape-3x.png" width="2224" height="1668" />
    <!-- Retina iPad Pro -->
    <splash platform="ios" src="res/screen/ios/screen-ipad-pro-portrait-3x.png" width="2048" height="2732" />
    <splash platform="ios" src="res/screen/ios/screen-ipad-pro-landscape-3x.png" width="2732" height="2048" />
    <!-- end iOS Legacy -->


    <!-- iOS storyboards -->
    <!-- end iOS storyboards -->


    <!-- Windows 8 -->
    <splash platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" />
    <!-- Windows 8.1 -->
    <splash platform="winphone" src ="res/screen/windows-phone/screen.scale-240.png" />

    <access origin="*" />
    <feature name="https://api.phonegap.com/1.0/camera" />
    <feature name="https://api.phonegap.com/1.0/file" />
    <feature name="https://api.phonegap.com/1.0/media" />
    <feature name="https://api.phonegap.com/1.0/network" />
    <feature name="https://api.phonegap.com/1.0/notification" />

    <config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
    <string>This app will allow users to select photos from their photo library.</string>
    </config-file>

    <config-file platform="ios" parent="NSCameraUsageDescription" mode="replace">
    <string>This app will allow users to take pictures with the phone camera.</string>
    </config-file>

    <config-file platform="ios" parent="NSMicrophoneUsageDescription" mode="replace">
    <string>This app will allow users to use the voice to text feature.</string>
    </config-file>

    <plugin name="cordova-plugin-camera" source="npm" version="2.4.1" />
    <plugin name="cordova-plugin-console" source="npm" version="1.1.0" />
    <plugin name="cordova-plugin-media-capture" source="npm" version="1.4.3" />
    <plugin name="cordova-plugin-device" source="npm" version="1.1.7" />
    <plugin name="cordova-plugin-file" source="npm" version="4.3.3" />
    <plugin name="cordova-plugin-file-transfer" source="npm" version="1.5.1" />
    <plugin name="cordova-plugin-media" source="npm" version="3.0.1" />
    <plugin name="cordova-plugin-network-information" source="npm" version="1.3.4" />
    <plugin name="cordova-plugin-dialogs" source="npm" version="1.3.4" />
    <plugin name="cordova-plugin-splashscreen" source="npm" version="4.1.0" />
    <plugin name="phonegap-plugin-barcodescanner" source="npm" version="7.1.2" />
    <plugin name="cordova-plugin-whitelist" source="npm" version="1.3.3" />
    <plugin name="cordova-plugin-device-orientation" source="npm" version="2.0.0" />
    <plugin name="cordova-plugin-statusbar" source="npm" version="2.4.2" />
    <plugin name="cordova-plugin-android-permissions" source="npm" />
    <plugin name="cordova-plugin-inappbrowser" source="npm" version="1.7.2" />


    <platform name="ios" />

    </widget>

    #2
    Re: Missing Purpose String in Info.plist File Issues

    Using cli-8.0.0 is a bit sketchy with Alpha. I've been sticking with 7.1.0 and Build 1 or 2.

    I always put the Usage Description Strings after the plugins.

    Your description strings aren't very specific.

    Comment


      #3
      Re: Missing Purpose String in Info.plist File Issues

      As always, thanks for the response David. We performed all of our release testing on 8.0.0, but with Alpha version 5159-5132. Part of our issue was the sheer number of issues with the plist requirements that were posted on a number of venues. The referenced solution in the Alpha Release Notes appears to be incompatible with cli-8.0.0 but for anyone's future reference, here was the solution that worked: The source is: https://cordova.apache.org/docs/en/l...plugin-camera/ but you have to set/limit the search criteria to "8.x docs".

      <plugin name="cordova-plugin-camera" source="npm" version="2.4.1" />
      <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
      <string>App requires camera access to take pictures of items and boxes</string>
      </edit-config>

      <edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
      <string>App requires photo library access to use previously taken pictures</string>
      </edit-config>

      Comment


        #4
        Re: Missing Purpose String in Info.plist File Issues

        Sorry Joe... What you posted is what I ended up using. I was looking at one of my old config.xml files. The format had changed a while ago... and it doesn't matter which current cli version you're using.

        Like you... I remember it was tough to find. This is what I used in my last submission...

        Code:
        	<platform name="ios">
        		<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
        			<string>Your string goes here</string>
        		</edit-config>	
        		<edit-config target="NSLocationAlwaysUsageDescription" file="*-Info.plist" mode="merge">
        			<string>Your string goes here</string>
        		</edit-config>	
        		<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
        			<string>Your string goes here</string>
        		</edit-config>	
        	</platform>

        Comment

        Working...
        X