The company I work for have a mobile app on which our users can browse construction equipment documentation: PDF with operating manuals, technical specs PDF, word documents and so on. Among those, we also have “IFC” files – 3D models a user can download and view.
For the Android app, I just open the file with your application, OpenCascade CADAssistant by starting an Intent:
public void startBimIfcViewerActivity(Context context, String ifcFilePath)
{
String bimViewerAppPackageName="org.opencascade.cadassistant";
try
{
//check if bim viewer app is installed
context.getPackageManager().getPackageInfo(bimViewerAppPackageName, 0);
Intent i=new Intent(Intent.ACTION_VIEW);
i.setPackage(bimViewerAppPackageName);
i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
i.setDataAndType(AppFilesUtils.getContentUriFromFile(ifcFilePath), MimeTypes.APPLICATION_BIM_IFC);
context.startActivity(i);
}
catch (Exception ex)
{
Toast.makeText(context, “Please install OpenCascade”, Toast.LENGTH_SHORT).show();
if (DeviceUtils.isHuawei())
startBrowserActivity(context, "https://www.opencascade.com/products/cad-assistant/");
else startPlayStoreActivity(context, bimViewerAppPackageName);
}
}
For our iOS application, I don't know how to open your app.
I can redirect the user to the AppStore in order to download it, but I don't know how to open it and pass the IFC file to it so that it could render the file.
One manual way to achieve this would be like this: download the file to "Files" app, in the "CAD Assistant" folder, then ask the user to open CAD Assistant app then select the file. But, it's not automatic / not user friendly. How can I open the app automatically?
Do you have a deeplinking mechanism in your iOS app?
I saw that you have support packets to buy, but they seem to be targeted towards developers that are integrating OpenCascade library into their own app. I don't want to do this, I only want to download and open the file with an external file viewer like would do with PDF documents. If you don't have a deeplinking mechanism, and our company buys support units, are those units applicable to the current request (add deeplinking URL scheme in order to be able to open IFC files, then to publish an update on AppStore)?
Thanks.