Jump to content

soAutoPlatformSwitch DEMO


Abaksoft

Recommended Posts

  • 1 year later...
On 11/24/2017 at 11:41 PM, Abaksoft said:

Hello  friends,

 

Here is an easy sample

for switching between Desktop and mobile version.

Best regards.

 

NB : Replace Const  MyIP = 192.168.1.3   by yours  (on MainModule)

Hybrid2.zip

Hi 

This is really helpful , I wanted to thank you was looking for this

Regards

Link to comment
Share on other sites

  • 2 weeks later...
On 9/12/2019 at 1:19 PM, Abaksoft said:

Hello Ammar,

Thx, you are welcome :)

Cheers Mohammed

 

Hi Abaksoft

I wanted to add that this was working perfectly in application running as single exe, but when added to production server with hyper-server running as dll and application as exe 

it works after random  (1 to 4) tyres, I am not sure but  I think this is related to the fact that more than one copy of the application is running and when user reload the application he may be redirected to another Object or (session) which has [SoAutoPlatformSwitch] still enabled so it goes back to mobile version.

going back from desktop to mobile working perfect

do you have any ideas for this issue?

best regards

 

 

Link to comment
Share on other sites

  • 4 months later...
2 hours ago, 55143681 said:

What is your destination?

what is the role?

Hello,

Do you mean : Why switching between mobile and desktop version ?

Answer :  somtimes you have not the full options of an application, on mobile.

Many web site  have this button on the botom.

Regards.

Link to comment
Share on other sites

50 minutes ago, Abaksoft said:

Hello,

Do you mean : Why switching between mobile and desktop version ?

Answer :  somtimes you have not the full options of an application, on mobile.

Many web site  have this button on the botom.

Regards.

I see ,

you mean that I open my project with my phone in mobile mode,

if I want to see more ,I can swith to desktop mode with my phone,

Is that right?

Link to comment
Share on other sites

17 hours ago, Abaksoft said:

Yes :)

Then your desktop functions are a,b,c,d,e,f,

But your mobile functions are only a,b,

do not have c,d,e,f.

In another word,your project has a grid,

your desktop version have five fields,

but your  mobile version have only 3 fields.

Link to comment
Share on other sites

2 hours ago, 55143681 said:

Then your desktop functions are a,b,c,d,e,f,

But your mobile functions are only a,b,

do not have c,d,e,f.

In another word,your project has a grid,

your desktop version have five fields,

but your  mobile version have only 3 fields.

Yes, this is a good example.

Link to comment
Share on other sites

6 hours ago, 55143681 said:

If I want to have this type project,

which type project I should create?

A desktop project or a mobile project?

 

OK,

You can see the Demo Project :   C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\Hybrid

- To run the application as Desktop  (on your PC)  :   http://localhost:8077

- To run the application as Mobile  (on your PC) :   http://localhost:8077/m

But the application will  automatically detect the target  on a client side browser without do anything (as we have on ServerModule >  Options  [ soAutoPlatformSwitch ].

1.png

 

To Create Such Project :

1. Creat a New Project as usually you do

2. Add to the Project a Mobile Login and a Mobile Application MainForm, and  a Mobile Application Form 

That's all  :)

2.png

 

For this you have to get the Professional Unigui  Complete  Edition.

Regards.

Link to comment
Share on other sites

11 hours ago, Abaksoft said:

 

OK,

You can see the Demo Project :   C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\Hybrid

- To run the application as Desktop  (on your PC)  :   http://localhost:8077

- To run the application as Mobile  (on your PC) :   http://localhost:8077/m

But the application will  automatically detect the target  on a client side browser without do anything (as we have on ServerModule >  Options  [ soAutoPlatformSwitch ].

1.png

 

To Create Such Project :

1. Creat a New Project as usually you do

2. Add to the Project a Mobile Login and a Mobile Application MainForm, and  a Mobile Application Form 

That's all  :)

2.png

 

For this you have to get the Professional Unigui  Complete  Edition.

Regards.

I see,you are the best man for your detail answer.

Link to comment
Share on other sites

On 2/12/2020 at 9:42 AM, 55143681 said:

I see,you are the best man for your detail answer.

I think maybe there are some errors ,

The switch button in the loginForm should send a parameter forced=false,which means you need login

The switch button in the MainForm should send a parameter forced=true,which means you have logined.

Is that right?

Link to comment
Share on other sites

1 minute ago, 55143681 said:

I think maybe there are some errors ,

The switch button in the loginForm should send a parameter forced=false,which means you need login

The switch button in the MainForm should send a parameter forced=true,which means you have logined.

Is that right?

And If you use this method to switch between MainForm and MainmForm,

then If anyone know the parameter ,your system will be dangerous,

bad men can use the parameter to login in your system without user and password.

Link to comment
Share on other sites

On 2/14/2020 at 1:11 PM, 55143681 said:

bad men can use the parameter to login in your system without user and password.

 

Yes, you are right.

That was a simple example :  how to swtich between Desktop and Mobile version.

Here is in attachment an update sample, where you can use more security acces to the new session (Hashing your parameter).

Regards :)

Hybrid3.0.zip

Link to comment
Share on other sites

On 2/15/2020 at 9:11 PM, Abaksoft said:

 

Yes, you are right.

That was a simple example :  how to swtich between Desktop and Mobile version.

Here is in attachment an update sample, where you can use more security acces to the new session (Hashing your parameter).

Regards :)

Hybrid3.0.zip

Thanks a lot ,i will try it.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...