native IPA make file crashes but app works in player

354
6
05-10-2018 11:50 AM
EdwardRudd
New Contributor

I created a custom app based on the quick report in QT.  Using the latest versions.

the app works perfectly on the app player but hangs on the splash screen when I test the actual native IPA file for IOS.

any one else have this issue.

0 Kudos
6 Replies
ShobanaSuresh
Esri Contributor

Can you check if below capabilities required for Quick Report are set to true in your custom apps' appinfo.json?

{ "capabilities": { "audio": true, "bluetooth": false, "camera": true, "location": true, "microphone": true, "network": true, "storage": true, "fileSharing": false },

Thanks

Shobana

EdwardRudd
New Contributor

Yes

That worked, thank you so much.

I don’t understand why the audio and microphone needs to be set to true?

Strange

How did you figure this out?

Ed

0 Kudos
ShobanaSuresh
Esri Contributor

Hi Ed,

> I don’t understand why the audio and microphone needs to be set to true?

Quick Report supports audio recording and playback feature for media attachment which requires these capabilities to be set to true.

> How did you figure this out?

I work as a developer in the AppStudio team. Just to give you some details on why the app crashes when the capabilities used by the app are set to false,

In iOS 10, Apple enforced new rules for accessing user data. Apps need to define and provide usage description in Info.plist for all the privacy-sensitive data accessed by the app.

Reference:

https://iosdevcenters.blogspot.com/2016/09/infoplist-privacy-settings-in-ios-10.html

https://developer.apple.com/library/content/qa/qa1937/_index.html

When a capability is set to true, AppStudio's Make tool automatically creates an Info.plist file for the app and adds corresponding default usage description strings to it.

Custom usage description messages can be provided by editing appinfo.json as described in below documentation link.

https://doc.arcgis.com/en/appstudio/extend-apps/editappinfo.htm#GUID-F2509852-3517-4655-B49B-403155A...

Thanks
Shobana

0 Kudos
EdwardRudd
New Contributor

Hi Shobana

Thanks for the info

The part that confuses me is that I figured if I turned the video and audio capabilities to off that I would not need to have the json values set to true.

Im happy its working though

Ed

0 Kudos
EdwardRudd
New Contributor

Hi Shobana

I just realized that now the app requires wifi network or will not continue. I need this to work with cellular. Im assuming this is related to network = true?

You said it has to be set to true to work ?

Ed

Regards,

Edward Rudd

0 Kudos
EdwardRudd
New Contributor

I found the cause and corrected it

Sorry

0 Kudos