to fix the crash on IOS with accessing the camera and files.
Here is what you need to put in the config.xml
<config-file platform="ios" parent="NSCameraUsageDescription" mode="replace">
<string>put your text here</string>
</config-file>
<config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
<string>put your text here</string>
</config-file>
To view PDF on your app you will need to do the following:
1- PDF server (https://mozilla.github.io/pdf.js/) i installed to directory: /AwareIM/PDF
2-plugin to view the PDFs (read about how to use it in npm site) add this line to config.xml
<plugin name="cordova-plugin-inappbrowser" source="npm"/>
3- js script to run the inappbrowser something like this🙁aware doesn't pass strings correctly here. so i needed to do some slicing.
function LopenBrowser(LbasedURL,RbasedURL) {
L = LbasedURL.toString().slice(0,-1);
R = RbasedURL.toString().slice(0,-1);
var url = 'https://yoursite/AwareIM/PDF/web/viewer.html?file=https://yoursite/AwareIM/TEMP_RESOURCES' + L + R + '.pdf' ;
var target = '_blank';
var options = "location=no,closebuttoncaption=the back button caption"
var ref = cordova.InAppBrowser.open(url, target, options);
}
4- from aware you need to export the document first (i did so to AwareIM/TEMP_RESOURCES) then call the script like so:
EXEC_SCRIPT 'LopenBrowser(/<<LoggedInRegularUser.LoginName>>/,/<<comunications.UID>>/)'
Thats it!
my application is live in google but still in review by apple.