Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 6-Sep-2018 15:18:25

neeleshp
Member
Registered: 1-Sep-2018
Posts: 18

Show dialogue to a first time user only

Hi,

Is it possible to identify the first open of the app.

I want to show a tutorial screen, but only the first time the user opens the app.

Can I define a global variable somewhere and check that everytime the app starts?

Offline

#2 6-Sep-2018 15:53:17

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,267
Website

Re: Show dialogue to a first time user only

Hello,

yes you can write a file that define your first app load using the xml config plugit.

Offline

#3 6-Sep-2018 16:18:38

neeleshp
Member
Registered: 1-Sep-2018
Posts: 18

Re: Show dialogue to a first time user only

The dialogue box is slightly out of bounds in the android screen. Can you suggest a workaround.

Here's the issue: https://imgur.com/I5WacyN

Offline

#4 6-Sep-2018 17:57:57

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,267
Website

Re: Show dialogue to a first time user only

hmm I see, I'll try to correct that soon ^^

Offline

#5 7-Sep-2018 08:28:03

neeleshp
Member
Registered: 1-Sep-2018
Posts: 18

Re: Show dialogue to a first time user only

Hi arkeon,

can you please help me create and read the config file for the first start of the app?

Tried with the global variable and also xml reader but no luck.

Thanks,
Neel

Offline

#6 7-Sep-2018 08:53:31

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,267
Website

Re: Show dialogue to a first time user only

here a sample: http://arkeon.be/scol/os3d/firststart.xos

the xml file is saved in tmp/config/scene.first start config.conf
so to try again you have to delete this file, you also have to delete it before you export the app so the file will not be exported and won't exist on the other devices.

Offline

#7 7-Sep-2018 12:35:20

neeleshp
Member
Registered: 1-Sep-2018
Posts: 18

Re: Show dialogue to a first time user only

Thank you arkeon smile.... works like a charm

Offline

Board footer

Powered by FluxBB