I'm new to AppStudio and QML. How would one accomplish this inside QtCreator? We'd like to deploy an app that opens by default with an mmpk that's compiled with the app. Is there a sample that shows this?
Thanks,
Matt English
Matt English - Did my last post answer your question or are you still having this issue?
Yes, once the app has been downloaded it stays on your device. And it doesn't need to be connected with the Portal/AGOL. If there is an app update to be downloaded you need to go back and log in to your account to download the update. Again once downloaded it will work the same way as it would if you were signed out of the Portal.
-Nakul
I'm just starting to wade into AppStudio, so I have a pretty basic question about this workflow. I should probably test first to see, but since the 'Player' app on a handheld device needs to reach out to Portal/AGOL to grab the uploaded App, is this workflow actually offline? Or can you grab the App from Portal/AGOL onto your device once when you have connectivity, and subsequently launch it in offline mode without needing a connection to Portal/AGOL?
FYI if you alter the code of your sample to look for a different mmpk then upload the app to ArcGIS online you still get the Yellowstone.mmpk whe you use the Player app. This is the part that has me confused.
see comment above.
I know this is gonna seem dumb but how do you add a data folder in your project in QtCreator? Can't figure this out. If I add it in File Explorer it doesn't show up in the project tree. Sorry for the basic question, I'm a newbie to this.
That known location is within the app not outside the app (see image below). To set up your project just drop the mmpk in the data folder of your app. And then follow the same code to copy the mmpk to the folder as used in the sample. The reason behind the copy is because when you include mmpk within your app you cannot use local relative path in your code since on devices like iOS and Android the apps have access to only virtual file system. So we will have to copy the mmpk internally once the app opens.
This is explained here
Working with Offline content · Esri/arcgis-appstudio-samples Wiki · GitHub
I hope this helps.
Nakul
That sample copies the mmpk from a known location outside of the app to a created data folder no? How do I set up a qmlproject to include the mmpk in the project from the get-go? When I open that sample with AppStudio player it seems to copy the mmpk from a location within the Player app, not the sample app itself.
The "Open Mobile Map" sample comes with the mmpk file (Yellowstone.mmpk) within the app. Check the data folder within the app folder. Hence the mmpk gets compiled with the app.
This sample downloads the mmpk. What if we want to include the mmpk with the app so that it can work completely offline? How do we set up a qml project and a folder structure so that the mmpk gets compiled with the app?
We have a sample which demonstrates that. Go to New App> Search for Open
For more advance implementation on how to include mmpk and switch between offline and online look into the Quick Report template source code (RefineLocationPage.qml)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.