Use offline profile when deploying to the Mendix app?

0
I am trying to use the offline profile via Mendix app.   To fully understand offline and online profiles, I have built a very simple app with just an hybrid phone app online profile and hybrid phone app offline profile. Now I am trying to get the offline profile to work using the QR code from the Mendix desktop modeler. I have two unique pages where I can identify the profile by setting the title to 'OFFLINE" and 'ONLINE'. These pages are: ToDo.Home_Phone_Default_offline ToDo.Home_Phone_Default_online Despite double checking the navigation setup under project settings and checking the 'Use offline profile' checkbox when viewing the app, I am still getting only the online profile and page whenever I view the app via the Mendix app. Am I misunderstanding how the offline profile works, is there something I am missing or could this be a bug in the mendix app?      
asked
3 answers
1

Hi Wouter,

 

There is a possibility that the Mendix app is restricted to just the online profile as it is also strictly set to portrait mode (which I experienced earlier).What I did was connecting to headless local browser (make sure you machine port is open for external machines and using same wifi) by going first normally over the browser to your localhost and making a start screen icon ( "put on start screen"). And then you should be able to load your app, I expect also the offline profile.

May you can try that.

 

answered
1

From what I know; currently that checkbox doesnt work, mendix havnt implemented that yet or not correctly yet.

What you can do to view your app local in offline mode is go to: 

http://localhost:8080/index-phone-preview.html?profile=HybridPhoneOffline

 

What you can also try is building a local app with the offline boolean on: You can read here how to do that;

https://docs.mendix.com/howto/mobile/debug-a-mobile-app

answered
0

After researching all combinations, the behaviour can be summarized as follows:

Both the offline and online profile for the same device (either phone or tablet)  need to be available for the checkbox to appear.

Whenever the checkbox is used, the Mendix app still takes the online profile.

It seems that the checkbox itself is not functional?

 

answered