PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Replication and Windows Phone
Replication and Windows Phone
Débuté par John Fligg, 24 sep. 2017 17:27 - 14 réponses
Posté le 24 septembre 2017 - 17:27
I have an app developed for Windows Phone.

I have overcome most of the restrictions but I have 2 major headaches which are related.

1. There is no FTP command in W10
2. I use Replication but without FTP this cannot work. How can you perform replication using W10 Phone and an HFSQL database?

Without these I do not see how you can build any meaningful business app using the PCSoft tools.

If anyone has any thoughts and even some example code it would be very much appreciated.

Thx.
Posté le 24 septembre 2017 - 18:27
Hello John,

Fabrice Harari has a open source replication example.

http://27130.foren.mysnip.de/read.php…

DW
Posté le 24 septembre 2017 - 21:07
Hi

and it uses only a httprequest for the communication (Available nearly everywhere)

Best regards
Posté le 25 septembre 2017 - 10:04
Many thanks Fabrice. But how do I download it? I eventually found the page but when I click on Download it requests that I login to view a video. Thx.
Posté le 25 septembre 2017 - 13:10
Hi John

the "view a video" part is incorrect...
However, the 'login' part is correct.

So you need to create an account (free) if you don't already have one, login, and click on download again

Best regards
Posté le 25 septembre 2017 - 14:41
Thanks Fabrice. Does this work for iOS and the latest Universal apps?
Posté le 25 septembre 2017 - 15:27
Hi

iOS: yes (but I'm not sure the last published version contains the small change needed for that one (a utf8tostring conversion)
Universal apps/windows phone: not tested. Considering the size of THAT market, I haven't bothered spending the time.

However, you can at least use that example for the communication process, as httprequest DOES work in that environment.

Best regards
Posté le 26 septembre 2017 - 09:48
Fabrice please forgive me. I have never used HTTPRequest and looking it up had a thought.

I have extensive code myself for Windows, Android and iOS to deal with Universal Replication. I do not use the automatic tools from PCSoft. So that side of things is sorted and works perfectly. My ONLY problem is the transportation method in Universal Apps.

So I wondered, can HTTPRequest handle sending a file to and from the server? Universal Replication creates a relatively small file and wondered if I could transmit that either way? That's all that is needed. Local and Web Service code handles the rest.

Thx

John
Posté le 26 septembre 2017 - 10:03
John,

in that case I guess using HTTPDestination() together with HTTPRequest() will do. Check the help for an example.
You have to make sure your replication-file is somewhere on a webserver and then you can grab it from there using these 2 commands..
Posté le 26 septembre 2017 - 10:10
Ah thanks so much. Yes the Replication file is on the Web Server ready to transmit to the local device and on the local device ready to transmit to the server. Both the local code and Web Service then run the Re0plicaiton commands respectively.

John
Posté le 26 septembre 2017 - 13:16
Hi John

as I was saying in an earlier post, WXReplication uses httprequest to send and receive data.

What is sent is the content of a buffer and it of course doesn't matter what that content is.
Therefore, you just need to use floadbuffer/fsavebuffer to manage the file aspect, and the httprequest will do the rest.

Best regards
Posté le 27 septembre 2017 - 13:40
Hi again John

one other reason why I didn't invest any time in windows phones: Even Microsoft is abandonning them:
http://money.cnn.com/2017/09/26/technology/bill-gates-android-phone/index.html

Best regards
Posté le 27 septembre 2017 - 14:35
OMG. Thank goodness I paid very little for my new MS phone. How very frustrating.

Thx

John
Posté le 27 septembre 2017 - 14:56
Quote
Fabrice

one other reason why I didn't invest any time in windows phones: Even Microsoft is abandonning them

You're absolutely right. But Windows Universal Apps will replace it in the end...
The ultimate goal of Microsoft is having one application running on any form factor and platform (Intel<>ARM). Therefore: Universal.
The XAML (or HTML) based UI (in case there is an application UI) will just adapt to the form factor of the device, whatever it maybe.

Currently I'm for a specific IoT project building even standard C# apps running even on Raspberry PI (ARM) on Windows IoT (Another community driven M$ freebie) using .Net Core. Windows IoT

IMHO Apple will eventually be doing something similar and roll-out their iOS to be any Apple device compliant (Even laptops and desktops) as its new OS and phase out OSX one day.

The direction Microsoft is taking since Sathya Nadella is the new CEO is promising in many ways aiming for a true platform (.Net Core) that natively runs on any (most) processor architecture and on multiple operating systems using the same code.

To be continued...

Cheers,

Peter
Posté le 05 octobre 2017 - 07:25
Quote
Peter Holemans
The direction Microsoft is taking since Sathya Nadella is the new CEO is promising in many ways aiming for a true platform (.Net Core) that natively runs on any (most) processor architecture and on multiple operating systems using the same code.



To be continued...
That is interesting. You mean to say that MS's .Net core will compile an app for any OS?