Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
16
Erster Beitrag:
vor 2 Monaten, 3 Wochen
Letzter Beitrag:
vor 2 Monaten, 1 Woche
Beteiligte Autoren:
John Fligg, Fabrice Harari, kingDR, Yogi Yang, Arie, DW, Peter Holemans

Replication and Windows Phone

Startbeitrag von John Fligg am 24.09.2017 15: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.

Antworten:

Hello John,

Fabrice Harari has a open source replication example.

http://27130.foren.mysnip.de/read.php?27131,780123,780137#msg-780137

DW

von DW - am 24.09.2017 16:27
Hi

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

Best regards

von Fabrice Harari - am 24.09.2017 19:07
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.

von John Fligg - am 25.09.2017 08:04
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

von Fabrice Harari - am 25.09.2017 11:10
Thanks Fabrice. Does this work for iOS and the latest Universal apps?

von John Fligg - am 25.09.2017 12:41
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

von Fabrice Harari - am 25.09.2017 13:27
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

von John Fligg - am 26.09.2017 07:48
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..

von Arie - am 26.09.2017 08:03
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

von John Fligg - am 26.09.2017 08:10
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

von Fabrice Harari - am 26.09.2017 11:16
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

von Fabrice Harari - am 27.09.2017 11:40
OMG. Thank goodness I paid very little for my new MS phone. How very frustrating.

Thx

John

von John Fligg - am 27.09.2017 12:35
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 (IntelARM). 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

von Peter Holemans - am 27.09.2017 12:56
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?

von Yogi Yang - am 05.10.2017 05:25
M$ bought Xamarin as major mobileApp IDE dev for any native phones and
abandoned all mobile hardware productions and perhaps it's same story of Blackberry phones and pretty success in IoT dev.

Now, .Net Core and IoT from M$ are too raw to develop mobileApps abd it's good
for learning like building mobileApp for printing HelloWorld and getting
complex when building buzApp. Perhaps, the time you have master the
M$ with real buzApps dev and they have another new devTool and you have
to start from scratch again beginning to print HelloWorld and on and on ...


King

von kingDR - am 05.10.2017 15:06
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.